Skip to content

How to debug a tock application over JTAG? #3371

Closed Answered by hudson-ayers
vChavezB asked this question in Q&A
Discussion options

You must be logged in to vote

There are instructions in the board-specific README's for several boards some of which is pretty generally applicable:

https://github.com/tock/tock/tree/master/boards/imix#debugging

https://github.com/tock/tock/tree/master/boards/nordic/nrf52dk#debugging

https://github.com/tock/tock/tree/master/boards/opentitan#qemu-gdb-debugging-earlgrey-cw310

None of those talk much about debugging apps specifically though, they all focus on kernel debugging. My experience has been that using add-symbol-file to add debug info has been sufficient for RISC-V apps, since they are fixed-position by default. The PIC approach you describe sounds like it should generally work fine for ARM apps

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@vChavezB
Comment options

@potto216
Comment options

@hudson-ayers
Comment options

@potto216
Comment options

Answer selected by vChavezB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants