2026-01-13 12:36 AM
Hi all,
Is there any way to retrieve a list of all peripheral registers Address and Names for a specific MCU?
I would like to have it as a json document,
My Approach right now would be to parse the MCU-Specific Header file in STM32 HAL. I would need to do it for many different MCUs, so I am looking for a possibility to have it done without huge manual effort.
I am wondering if there is any easier way to do this, like extract from SMT32CubeIDE? Or maybe it is somewhere available already?
Best Regards,
Dietrich
2026-01-13 12:41 AM - edited 2026-01-13 12:44 AM
2026-01-13 12:55 AM
Besides of the mentioned SVD file, the variant-specific device header (stm32xxx.h) contains definitions for all peripheral registers.
> I would like to have it as a json document, ...
Although I would question the idea behind this endeavour.
While many STM32 variants have seemingly share identical peripheral units and register, actual config or status bit values often differ syntactically and/or semantically.