using a Psoc 4 Custom board running on 5V wiil not debug

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
KeTa_1875721
Level 2
Level 2
5 replies posted First reply posted First question asked

Hi all,

using a Psco4, CY8C4245AXI-483 part

i have a custom board running on 5V

I can program the board with Psoc programmer and a miniprog3 fine, board runs, no hardware issues.

In creator 4.2 i cannot get the miniprog3 to connect to this board to debug it.

I set the port parameters to external supply so it DOES NOT power the board. SWD interface

I read thru every post and app note I can find, but this is not addressed as far as I can see.

running on Win 10..really crap here.

all actions to query the miniprog seem really slow for some reason.

So, what's the magic here? Spent way too much time on this to get this product shipped..

Thanks

Ken

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Dear Ken-san,

Since you can program the device with PSoC Programmer,

I think that the connection must be sound.

So I suspected a couple of things

(1) Port Setting of the Debugger

(2) The project under test

Since CY8C4245AXI-483 is same device on a CY8CKIT042,

I tested with my CY8CKIT-042 and MiniProg3.

I tried with some port settings using MiniProg3 with and without on board KitProg,

as far as the setting was correct I could program and debug the device.

So, right now, I would suspect the project you are using.

How about trying with my project attached?

Note: If you are using P0[2] for other purpose,

please change the pin to something else safe to assign.

If my project can be programmed without problem,

there might be something wrong with your current project.

I'd suggest you to create a new project and re-use source/header files.

If my project can not be programmed either.

Right now I don't have a good suggestion for you.

Following is/are what I tried this morning.

You can skip them if you are busy 😉

I created a minimum project

000-workbench.JPG

Only 1 LED (P0[2])

000-schematic.JPG

I connected MiniProg3 and CY8CKIT-042 with 10pin cable.

At first my port config was set to 5pin (unintentionally)

001-Select-Debug-Target.JPG

The response of Select Debug Target was extremely slow and I could not see the device.

002-Port-Setting.JPG

Then seeing the 10pin cable I changed the Connector setting to 10 pin

meantime, I removed the USB cable from the board to avoid KitProg and MiniProg3 conflict.

So I changed the Power to 5.0 V.

003-Port-Setting2.JPG

Then I could see the device

004-PortAquired.JPG

And I could start debugger

005-Debugger-Started.JPG

Next thing I tried was reset the Power to External and connected the USB cable to the board again.

006-Port-Setting-external-v.JPG

Then, still I could see the device and start debugger

007-Select-Target.JPG

008-Debugger-Started.JPG

Just to make sure I used PSoC Programmer and set pin to 5, which did not allow me to proceed further.

Then returning to the pin to 10, I could program the device.

009-PSoC-Programmer.JPG

Best Regards,

11-Oct-2019

Motoo Tanaka

View solution in original post

0 Likes
9 Replies
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi KeTa_1875721

Can you please send a screenshot of PSoC Programmer log when you program the device and MiniProg3 Port Configuration window of PSoC Creator which can be accessed as shown -

Tools -> Options -> Program/Debug -> Port Configuration -> MiniProg3

Please ensure that the VDDA, VDDD, VDDIO voltages are set at 5.0 V under Operating Conditions in System tab in PSoC Creator.

Refer to the following thread for further details regarding the same -

Re: Programming PSOC4 with external voltage

Thanks and Regards,

Rakshith M B

Thanks and Regards,
Rakshith M B
0 Likes

... and check in Creator-> .dwr file-> System view: that debug interface is set to swd and not to GPIO.

Bob

0 Likes
lock attach
Attachments are accessible only for community members.

Here is settings in Creator

Here is programmer after successful programing

Thanks

Ken

0 Likes

Hi KeTa_1875721

Can you please ensure that the settings highlighted in the image match with that of your project.

pastedImage_0.png

Thanks and Regards,

Rakshith M B

Thanks and Regards,
Rakshith M B
0 Likes

Thanks for answering, sorry I didn't respond quicker was busy.

Yes the settings match and I am quite familiar with SWD as I have debugged many M0 arms before, so I have to assume something else is not satisfied here that the debugger is looking for as opposed to what the programmer is looking for.

I tried this again.

When i select "select debug target" it takes 30 seconds before the dialog comes up???

If i hit any button it waits a long time before i get a response, so that has got to indicate a problem here..

System is Win 10 unfortunately, stuck with it. why is this so slow?

Ken

0 Likes
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Dear Ken-san,

Since you can program the device with PSoC Programmer,

I think that the connection must be sound.

So I suspected a couple of things

(1) Port Setting of the Debugger

(2) The project under test

Since CY8C4245AXI-483 is same device on a CY8CKIT042,

I tested with my CY8CKIT-042 and MiniProg3.

I tried with some port settings using MiniProg3 with and without on board KitProg,

as far as the setting was correct I could program and debug the device.

So, right now, I would suspect the project you are using.

How about trying with my project attached?

Note: If you are using P0[2] for other purpose,

please change the pin to something else safe to assign.

If my project can be programmed without problem,

there might be something wrong with your current project.

I'd suggest you to create a new project and re-use source/header files.

If my project can not be programmed either.

Right now I don't have a good suggestion for you.

Following is/are what I tried this morning.

You can skip them if you are busy 😉

I created a minimum project

000-workbench.JPG

Only 1 LED (P0[2])

000-schematic.JPG

I connected MiniProg3 and CY8CKIT-042 with 10pin cable.

At first my port config was set to 5pin (unintentionally)

001-Select-Debug-Target.JPG

The response of Select Debug Target was extremely slow and I could not see the device.

002-Port-Setting.JPG

Then seeing the 10pin cable I changed the Connector setting to 10 pin

meantime, I removed the USB cable from the board to avoid KitProg and MiniProg3 conflict.

So I changed the Power to 5.0 V.

003-Port-Setting2.JPG

Then I could see the device

004-PortAquired.JPG

And I could start debugger

005-Debugger-Started.JPG

Next thing I tried was reset the Power to External and connected the USB cable to the board again.

006-Port-Setting-external-v.JPG

Then, still I could see the device and start debugger

007-Select-Target.JPG

008-Debugger-Started.JPG

Just to make sure I used PSoC Programmer and set pin to 5, which did not allow me to proceed further.

Then returning to the pin to 10, I could program the device.

009-PSoC-Programmer.JPG

Best Regards,

11-Oct-2019

Motoo Tanaka

0 Likes

Thanks Motoo!

I will try this later when i get a chance

Ken

0 Likes
OtGo_1311741
Level 3
Level 3
First like received First like given

How is your reset line? We had this problem once, the circuit did not respond to debug operations and the cause was we had a big capacitor (do not remember value) in the reset line.  When we removed this and put a smaller value capacitor, the circuit started to work for debug.

0 Likes

There is no cap on the reset line. I tried a pullup but that did not help.

Data sheet says this part will program at 2.8-5V, however we have not

been able to program it at 5 volts, always fails for some reason. Always

programs at 3.3V ok..Could there be something wrong here with the chip

revision?

Ken

0 Likes