7 Replies Latest reply on Apr 19, 2020 3:13 PM by eeEn_4618901

    new chip programming

    eeEn_4618901

      Hi, I designed a new circuit using chip. I want to program with miniprog3.

      When I choose GPIO for programming, where should I connect sdat and sclk?

      Is there a downside to my GPIO choice?

      I cannot select swd + swv. because I accidentally used the swd debug pins for the sensor.

      pastedImage_134.png

       

      Ekran Alıntısı.JPG

        • 1. Re: new chip programming
          MoTa_728816

          Hi,

           

          Even if you selected GPIO for Debug delect, you can download / program the device as usual.

           

          The only downside is you can not debug the project as far as the setting is GPIO.

           

          moto

          • 2. Re: new chip programming
            eeEn_4618901

            Hi Moto,

            When I choose GPIO there is no Sdat and sclk. Where can I connect the sdat and sclk pins of miniprog3?

            Ekran Alıntısı2.JPG

            • 3. Re: new chip programming
              MoTa_728816

              Hi,

               

              The pin config you are seeing is the setting of after the device is configured according to the project setting(s).

              But just after reset, all pins are reset to its default state.

               

              SWDIO:    P1[0]

              SWDCLK: P1[1]

               

              Should work for download/program the device.

              But once program started and initialized for the application

              they will lose the SWD functionalities.

               

              moto

              • 4. Re: new chip programming
                BiBi_1928986

                Hello.

                 

                As Moto mentioned, PSoC 5LP defaults to use:

                SWDIO:    P1[0]

                SWDCLK: P1[1]

                 

                When 5LP does not see SWD activity on P1[0], P1[1] pins during reset, it will look for activity on the alternate pins:

                SWDIO:    P15[6]

                SWDCLK: P15[7]

                These pins are also used for USB.  These pins might also be used in your project.

                 

                Regardless of which SWD I/O's you choose to try programming, make sure any I/O device connected to the SWD pin is not driving the PSoC pin.  If the I/O device drives the SWD pin, it will interfere with SWD communications.  You would have to disconnect that I/O signal from the SWD pin.

                 

                Good luck with your project.

                • 5. Re: new chip programming
                  eeEn_4618901

                  Hi,

                  I am trying to install a program with miniprog 3.

                  I read that it should be SWD. I set the 3.3V. I chose 5 p.

                  MINIPROG VTARG ==> PSoc VDD

                  MINIPROG GND ==> PSoc gnd

                  MINIPROG XRES ==> PSoc 15th pin

                  MINIPROG SCLK ==> PSoc SWDIO: P1 [0]

                  MINIPROG SDAT ==> PSoc SWDCLK: P1 [1]

                  I make the connections.

                  The solders of the pins of the psoc chip are also solid.

                  I couldn't program the chip. where am i doing wrong?

                  Ekran Alıntısı.JPG

                  • 6. Re: new chip programming
                    MoTa_728816

                    Hi,

                     

                    SWDIO:    P1[0]

                    SWDCLK: P1[1]

                     

                    You connected

                     

                    MINIPROG SCLK ==> PSoc SWDIO: P1 [0]

                    MINIPROG SDAT ==> PSoc SWDCLK: P1 [1]

                     

                    Seems to be opposite.

                    Please re-check your connection(s).

                     

                    moto

                    1 of 1 people found this helpful
                    • 7. Re: new chip programming
                      eeEn_4618901

                      Hi Moto-San,

                      It Worked. Thanks again.