7 Replies Latest reply on Apr 28, 2019 4:54 AM by BiBi_1928986

    PSOC 4 doesn't reset on power up

    ignuc_2410326

      Hello,

       

      I've encountered a problem on PSOC 4 that the device doesn't reset on power up, only when I reset it manually (using PSOC programmer for example).

      I do have a bootloader function that I'm using in my design, so maybe it has something to do with it.

       

      I'm not quite sure what are the exact power up steps, but AN73617 (PSoC®Designer Boot Process, from Reset to Main) the device should enter reset of first power up.

      My indication for a working main loop is getting message over CANBUS (working after manual reset).

       

      Thanks in advance,

      Igal

        • 1. Re: PSOC 4 doesn't reset on power up
          JoMe_264151

          I would try to remove the bootloader first and test whether the project now runs. Probably the bootloader is waiting for an event that does not happen.

           

          Bob

          1 of 1 people found this helpful
          • 2. Re: PSOC 4 doesn't reset on power up
            VisonZ_71

            Chip won't miss power on reset during power up, you may try to use LED indicator or output IO to debug the code execution status difference between power up and manually reset.

            1 of 1 people found this helpful
            • 3. Re: PSOC 4 doesn't reset on power up
              ignuc_2410326

              VisonZ,

               

              What do you mean the chip won't miss power during power up?

              There is only 1 source of power to the board and everything "dies" when this power isn't connected.

              When I apply this power to the input, I see that all voltages are OK (5V) and also measure 5V on XRES pin of the MCU.

               

              According to the application note, the MCU should have kept the reset pin at 0V during power up until normal operation and then release it to be pulled up by the internal resistor.

               

              Igal

              • 4. Re: PSOC 4 doesn't reset on power up
                BiBi_1928986

                Hello Igal.

                 

                VisionZ is suggesting to use a simple LED, connected to GPIO, as an indicator to aid in debugging the issue.

                 

                The document you reference (AN73617) is not for PSoC 4 devices.  Have a look at AN73854, AN68272, AN86526.

                 

                Question: is the project configured to be bootloadable?

                AN73854 describes how to configure the project to be bootloadable.

                 

                Question: did you put a bootloadable component in the schematic?

                 

                Bill.

                • 5. Re: PSOC 4 doesn't reset on power up
                  VisonZ_71

                  Chip won't miss power on reset during power up

                  • 6. Re: PSOC 4 doesn't reset on power up
                    ignuc_2410326

                    Hi Bill,

                     

                    The project is indeed configured to be boot-loadable and I put a bootloadble component in the design.

                     

                    Igal

                    • 7. Re: PSOC 4 doesn't reset on power up
                      BiBi_1928986

                      Hi Igal.

                       

                      Sounds like you have the right approach for a bootloadable design.  Maybe a bit more detail would help us, if you don't mind.

                       

                      Are you using a Cypress KIT?  If yes, which one?

                       

                      If this is a custom hardware design, which PSoC 4 device are you using?  BTW, PSoC's do not have a bootloader installed when they leave the factory, unless they are part of a Cypress KIT.  A bootloader can be installed in a blank PSoC4 using either KitProg or MiniProg3.

                       

                      When manually reset through programmer, are you using KitProg or MiniProg3?

                       

                      Does this design use Power-On Reset, or XRES, to reset PSoc 4?

                       

                      Is the bootloader a custom design or the one provided by Cypress?

                       

                      Did you Build the bootloader and point to its .hex, .elf, generated files with Creator?  If these files are not pointed to by the application project/workspace properly, then it won't be loaded into PSoC4 when PSoC4 is being programmed.

                       

                      Have you tried a simple bootloadable Blink an LED project, using Cypress project + Bootloadable component?

                       

                      Bill

                      1 of 1 people found this helpful