- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
- Labels:
-
ModusToolbox General
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Have you tried to follow section 2.7 of the ModusToolbox User Guide, especially 2.7.3?
Best regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please provide the IDE screenshots and other relevant data so we could better investigate the problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!