CMSIS .svd files...

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I sort-of thought that the .h files included in studio were automatically generated from the ARM-standardized CMSIS ".svd" files.

But in fooling around with parsing the .svd files, I don't see how this can be the case:

  1. The .svd files don't provide the division into the components/*.h  (I guess that they COULD...)
  2. PORTGROUP isn't mentioned anywhere in (say) ATSAMD21G18A.svd
  3. the elements of PORT are dimensioned "oddly" - it seems that registers are accessed via PORT.DIR[portnum] and similar instead of PORTS[portnum].dir, or something like that...

 

Am I missing something?

 

(The goal is essentially to generate assembly-style definition files instead of C .h files...)

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

All files including the svd and header files are generally generated from the atdf files.

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hmm.  I'm still not sure where "PortGroup" comes from...
There's no PortGroup in the .atdf, and I can't understand how "something" decides to concatenate Port and Group names when it doesn't do so for most of the devices...