AdaCore / AdaCore/svd2ada

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

Open
#86 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ada
Stars
71
Forks
41
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/base_types.adb around line 270, then run svd2ada against nrf52833.svd from nRF5_SDK_17.0.2_d674dde. Check how register access values are parsed and verify that the lowercase read-writeonce value no longer raises CONSTRAINT_ERROR during conversion.

Written by the indexing model from the issue text.

Assessment

Domain
embedded-iot, tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.