AdaCore / AdaCore/svd2ada

SVD2ADA generates enumeration with duplicate values

Open
#92 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

After generating and compiling the code generated from the enclosed SVD file, the Ada compiler flagged an error because two of the names in an enumeration had the same value. I worked around the error by deleting the name from the enum and returning it from a function as an alias to the other name with the same value.

LPC176x - 5x SVD.zip

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 by reproducing generation and Ada compilation with the attached LPC176x - 5x SVD.zip and inspect the generated enumeration containing duplicate values. Confirm the expected handling of same-valued names, then verify the generated Ada compiles without the reported error while preserving the intended names or aliases.

Written by the indexing model from the issue text.

Assessment

Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.