Vector35 / Vector35/binaryninja-api

Cannot read GD32VF103.svd

Open
#7,610 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.3k
Forks
298
Avg merge
5d 5h
Merged PRs (30d)
19

Description

Version and Platform (required):

  • Binary Ninja Version: 5.2.8587-dev Ultimate (9fb3d7eb)
  • Edition: Ultimate

Bug Description:
Fails to load SVD file for GD32VF103:

[SVD] Failed to parse SVD file: In device `GD32VF103`
[SVD] 
[SVD] Caused by:
[SVD]     0: In peripheral `RTC`
[SVD]     1: In register `PSCH`
[SVD]     2: In field `PSC`
[SVD]     3: Parsing unknown access at 29634:15
[SVD]     4: unknown access variant 'write' found

Steps To Reproduce:

  1. Download GD32VF103.zip
  2. Open a file
  3. Import as SVD

Expected Behavior:
SVD file imported.

Contributor guide

No contributing guide indexed for this repository

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

Reproduce the failure by importing the attached GD32VF103.zip as an SVD file and inspect the SVD parser path that reports the unknown access variant write in peripheral RTC, register PSCH, field PSC. Done means the GD32VF103 SVD imports successfully without this parsing error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
embedded-iot, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.