Dear Cypress,

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

cross mob
saba_4805981
Level 1
Level 1

I'm working on a project that needs to control PSOC debugger (KITPROG 2) automatically using Python like (open the debugger IDE, connect the debugger, set break point and so on) .

Is this doable ? if yes, Would you please provide me with the steps that I should start with and the debugger library ?

Your fast response is highly appreciated

Best Regards

0 Likes
1 Solution

saba,

You never mentioned what PSoC kit your are using.

I believe Modustoolbox has the ability to use Python to access the GDB server.  However, at this time, Modustoolbox can only work with PSoC6s and Cypress' WiFi products.

The link I provided earlier may have some clue as to using Python with the GDB server with regards to PSoC Creator.

Len

PS:  Here's another link I found regarding the debugger and Python:  KitProg3 PSoC5 programming using python

Len
"Engineering is an Art. The Art of Compromise."

View solution in original post

0 Likes
9 Replies
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

saba,

I'm not an expert in this subject but check out this link.   Maybe it can help.   PSoC Creator GDB server settings

Len

Len
"Engineering is an Art. The Art of Compromise."
0 Likes
AlanH_86
Employee
Employee
100 replies posted 50 replies posted 25 solutions authored

Is there some specific function in KitProg 2 that you need access to?  Or could it be done with KP3?

Alan

0 Likes

Dear Alan,

I want to control the PSOC debugger functions automatically using python,

like I want access to set breakpoint function so I need its interface from

the debugger library, the same for delete breakpoint , get variable value

(link we see in the watch view ) and so on ..

How can I interface with the debugger ?

Best Regards

On Mon, 26 Oct 2020 at 12:54, AlanH_86 <community-manager@cypress.com>

0 Likes

saba,

You never mentioned what PSoC kit your are using.

I believe Modustoolbox has the ability to use Python to access the GDB server.  However, at this time, Modustoolbox can only work with PSoC6s and Cypress' WiFi products.

The link I provided earlier may have some clue as to using Python with the GDB server with regards to PSoC Creator.

Len

PS:  Here's another link I found regarding the debugger and Python:  KitProg3 PSoC5 programming using python

Len
"Engineering is an Art. The Art of Compromise."
0 Likes

Yes KP3 talks to Python... that is exactly why I was curious about KP2

0 Likes

Ok, thanks for the answer.

You mean that If i'm using KP2 I will not be able to interface with Python

?

Best regards

On Mon, 26 Oct 2020 at 15:11, AlanH_86 <community-manager@cypress.com>

0 Likes

Im not saying anything other than I know the KP3 talks to Python....

0 Likes

Alan,

If I am correct, KP2s can be upgraded to KP3s via firmware.

However, can KP3s be used in PSoC Creator?

Len

Len
"Engineering is an Art. The Art of Compromise."
0 Likes

I think so.

https://www.cypress.com/file/452701/download

But there is no risk as you can switch batch and forth with the fw-loader

In general you are in mostly uncharted territory... but it should work... I just dont think that anyone has tried whatever it is you want to do.

Alan

0 Likes