1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-30 08:51:19 +01:00
RIOT/dist/tools/PyCortexMDebug
Marian Buschsieweke 7b474698a8
dist/tools/PyCortexMDebug: Integrate GDB extension into RIOT
When running

     make RIOT_USE_PYCORTEXMDEBUG=1 debug

RIOT will now fetch PyCortexMDebug and instruct GDB to load that
extension on start. If additionally RIOT provides `SVD_VENDOR` and
`SVD_MODEL` to identify the SVD file to load, an
`svd_load $(SVD_VENDOR) $(SVD_CLIENT)` is also passed to GDB.

Co-authored-by: crasbe <crasbe@gmail.com>
Co-authored-by: Ann🐸 <git@annsann.eu>
2025-11-10 19:58:29 +01:00
..

PyCortexMDebug

This is the RIOT integration of PyCortexMDebug, a GDB extension that allows inspecting and interpreting memory of MCUs based on the info provided in SVD files.

This integration adds PRs 58 and 59 on top of the upstream code. To get the CMSIS database, run:

wget -O ~/.cache/cmdebug/cmsis-svd-data.zip https://github.com/cmsis-svd/cmsis-svd-data/archive/refs/heads/main.zip

Automating Loading of Correct SVD File

If SVD_MODEL and SVD_VENDOR are declared, the build system will inject an svd_load $(SVD_MODEL) $(SVD_VENDOR) command into GDB, so that users don't need to call that themselves.

Ideally, those variables are provided in cpu/$(CPU)/Makefile.include by inferring it from the $(CPU_MODEL) variable each board already provides.