Advanced debugging with GDB + SVD file (without an IDE!) #656
stnolting
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
GitHub user @bnahill provides an awesome project (https://github.com/bnahill/PyCortexMDebug) that allows to import SVD files right into GDB. This way you can conveniently inspect peripherals directly in GDB - no IDE required!
Although
PyCortexMDebug
is intended for ARM cores it also works with the NEORV32's SVD file as it follows ARM's CMSIS standard. 🎉Start GDB (directly calling the binary) or invoke it from one of the example projects using the makefile's
gdb
target.After GDB has started source the
gdb.py
script fromPyCortexMDebug-master/scripts
. This might take some seconds.Now import the core's SVD file. Use the absolute file path here.
Show a list of all provided peripheral. Note that this list does not show the actually implemented modules - it just shows all the information from the SVD file.
Inspect the SYSINFO module - show registers values in hexadecimal presentation:
Check
NEORV32_SYSINFO->SOC
to see the actual processor/SoC configuration.Beta Was this translation helpful? Give feedback.
All reactions