AdaCore / svd2ada

An Ada binding generator from SVD descriptions for bare board ARM devices.
GNU General Public License v3.0
64 stars 36 forks source link

Converting nrf52833.svd fails with CONSTRAINT_ERROR : Invalid access value read-writeonce #86

Open jeanparker opened 3 years ago

jeanparker commented 3 years ago

I am trying to use svd2ada for the nrf52833.svd file which is in the nRF5_SDK_17.0.2_d674dde sdk package.

It generates a couple of warnings and then fails.

raised CONSTRAINT_ERROR : Invalid access value read-writeonce

I found the culprit, the nrf52833.svd uses lower case for the register access type and this fails here:
https://github.com/AdaCore/svd2ada/blob/861c829c994e5192081bcd742532a147a25a1289/src/base_types.adb#L270

aiunderstand commented 1 year ago

This issue has been resolved in #97 using some minor manual changes compared to Nordic's original nrf52833.svd. It can now be generated using

.\svd2ada.exe CMSIS-SVD\nordic\nrf52833.svd -o FolderName