EEVblog® Electronics Community Forum
Electronics => Projects, Designs, and Technical Stuff => Topic started by: twatorowski on May 04, 2019, 09:41:04 am
-
Hey everyone!
Just wanted to announce the release of my CMSIS-SVD to Dictionary Parser written in Python. If anyone wants to create their own header files from the SVD files provided by the chip manufacturers this is a nice place to start. The code provided deals with things like: derivations/inheritances/array-list generations among the set of peripherals/registers/etc.. so that the result is a plain, fully expanded top-down nested tree without cycles or other "computer science funny business". This helps A LOT with header files generation.
Project link https://github.com/MightyDevices/python-cmsis-svd-parser (https://github.com/MightyDevices/python-cmsis-svd-parser)
Feel free to use it in your projects.
PS. I am currently working on my own *.h file generator for STM32 micros that will produce headers that match my coding/documenting style. All in all information from the SVD is not enough and some post processing needs to be done. I'll let you guys know how thing are progressing when I have something that is up and running.
Kind regards.
-
Very interesting. Thank you for sharing!
-
I tried to use your parser to output an expanded SVD from an ESP32s3 file, but it didn't work for entire sections like AES. The output still contained placeholders.
-
Have you consider posting it on pypi.org? It will allow a simple installation using the pip install command. You can post any package on pypi.org, it doesn't have to be 'mature'.