J link segger debugger

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

cross mob
gean_3054931
Level 5
Level 5
10 likes given 5 likes given First like received

Hi,

i am using j link segger debugger to debug fx3 codes,i am checking program execution step by putting breakpoint,i am new to segger debugging,any documents regarding this debugging steps?i have successfully setup the j link segger.

how to check data inside the buffer using this segger?

when i connect segger,endpoints are not enumarating in the control centre,please solve this.

thank you.

0 Likes
1 Solution

Place a single break point at infinite for loop after CyFxBulkSrcSinkApplnInit(); in USB Bulk Source Sink.

You will see the device in the control center.

View solution in original post

11 Replies
KandlaguntaR_36
Moderator
Moderator
Moderator
25 solutions authored 10 solutions authored 5 solutions authored

What is the example that you are trying to debug?

Is it modified example project/ your own project?

Are you able to see the endpoints when you load the firmware to the RAM?

Regarding the checking the data in buffers:

1. Create a DMA Manual Channel

2. Place a breakpoint in Prod_Event of DMACallback

3. Copy the data into a variable of an array and check that variable data while doing step into

Hello,

its slavefifo example with modified for 16 bit gpif interface.

i am able to see the endpoints when i load the firmware to the RAM.

i am checking by putting the breakpoints ,at this time control centre not showing enpoints.

regards,

geethanjali

0 Likes

Share the screen-shots of the control center.

segger1.pngsegger2.pngsegger3.pngsegger4.pngsegger6.pngseger7.png

0 Likes

The USB connection with the host will be established after the CyU3PConnectState API.

It looks like there is something wrong with the usbstart API.

Are you seeing any debug print over the UART.

0 Likes

Hello,

CyU3PConnectState and usbstart both API returns success(0),we dont have uart with our custom board.

and i observed that many times USB_RESET event is occuring that whould be the problem?

regards,

geethanjali.

0 Likes

There will be USBSetup callback events that need to be served within some short time frame. It looks like the device is not responding in that tiime since you are doing step into in the debugger.

What is happening in your case, if you run the firmware, without putting the breakpoint (do not do stepinto in the debugging mode).

Note that there will be a break point at main function, by default.

If this is the case, are you able to see the device in the control center?

Hi,

If this is the case, are you able to see the device in the control center?

->its not displaying device in the control centre,this is my issues.what would be the problem?

thank you

0 Likes

In general, you will see the debugger stops at main function.

Remove the breakpoints in all other places and run the debugger.

Then, what is the observation?

You told that the device enumerates fine, when you load to RAM. But it is not enuemrating while debugging.

Have you tested any other example projects? If yes, what is your observation?

You told that the device enumerates fine, when you load to RAM. But it is not enuemrating while debugging.

yes,problem is when debugger will connect.

Have you tested any other example projects? If yes, what is your observation?

i tested for bulkloop example.for this also endpoint is not displaying while debugging.

its works fine when i load to RAM.

0 Likes

Place a single break point at infinite for loop after CyFxBulkSrcSinkApplnInit(); in USB Bulk Source Sink.

You will see the device in the control center.