How to use "make debug"

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

cross mob
ricardoquesada
Level 4
Level 4
First solution authored 50 sign-ins 25 replies posted

Hi,

I'm using ModusToolbox with PSoC6.

I know it is possible to launch the debugger from ModusToolbox IDE, but I need to use it from command line.

Any one know which settings should I use?

 

What I did so far:

I have 3 terminals:

Terminal A)

The only thing that I did was: `make debug`

 

Terminal B)

I connect  with OpenOCD using:

```telnet 127.1 4444

init; reset init

```

 

Terminal C)

I connect using gdb by doing:

```

${CY_TOOLS_PATHS}/gcc/bin/arm-none-eabi-gdb lego-psoc6-app.elf

(gdb) break main

(gdb)  target extended-remote :3333

Remote debugging using :3333
0x0000012a in ?? ()

(gdb) cont

```

And it gets stuck in 0x0000012a

I never reaches `main`

 

Any idea? Thanks!

 

 

0 Likes
4 Replies
Charles_Lai
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 sign-ins

Hi,

Have you tried to follow section 2.7 of the ModusToolbox User Guide, especially 2.7.3?

Best regards

0 Likes

yes. I mentioned that on my original comment. I doing "make debug", then I'm attaching GDB...  but I cannot debug it. Execution is stuck at 0x0000012a

0 Likes

Please provide the IDE screenshots and other relevant data so we could better investigate the problem.

0 Likes

Just to make it clear, debugging from the IDE works Ok.

I'm looking for detailed instructions regarding how to debug from command line.

 

I can provide an screenshot of the command line, but it includes exactly what I posted in my first comment.

 

Thanks!

 

0 Likes