EEVblog® Electronics Community Forum

Electronics => Projects, Designs, and Technical Stuff => Topic started by: twatorowski on May 04, 2019, 09:41:04 am

Title: Python CMSIS-SVD Parser
Post 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.
Title: Re: Python CMSIS-SVD Parser
Post by: jeremy on May 04, 2019, 01:21:48 pm
Very interesting. Thank you for sharing!
Title: Re: Python CMSIS-SVD Parser
Post by: Joebeazelman on August 31, 2024, 01:20:51 am
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.
Title: Re: Python CMSIS-SVD Parser
Post by: zapta on August 31, 2024, 02:54:27 pm
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'.