Author Topic: Python CMSIS-SVD Parser  (Read 2653 times)

0 Members and 1 Guest are viewing this topic.

Offline twatorowskiTopic starter

  • Newbie
  • Posts: 3
  • Country: pl
Python CMSIS-SVD Parser
« 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

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.
 

Offline jeremy

  • Super Contributor
  • ***
  • Posts: 1080
  • Country: au
Re: Python CMSIS-SVD Parser
« Reply #1 on: May 04, 2019, 01:21:48 pm »
Very interesting. Thank you for sharing!
 

Offline Joebeazelman

  • Regular Contributor
  • *
  • Posts: 60
  • Country: yt
Re: Python CMSIS-SVD Parser
« Reply #2 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.
 

Offline zapta

  • Super Contributor
  • ***
  • Posts: 6613
  • Country: 00
Re: Python CMSIS-SVD Parser
« Reply #3 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'.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->