eclipse-embed-cdt / eclipse-plugins

The Eclipse Embedded CDT plug-ins for Arm & RISC-V C/C++ developers (formerly known as the GNU MCU Eclipse plug-ins). Includes the archive of previous plug-ins versions, as Releases.
http://eclipse-embed-cdt.github.io/
Eclipse Public License 2.0
556 stars 129 forks source link

GD32F303 SVD BUG not show #610

Open xzbaijj opened 2 months ago

xzbaijj commented 2 months ago

2024-07-08_103619

TommyMurphyTM1234 commented 2 months ago

You haven't provided any description of the issue and the screenshot image links don't seem to work (they seem to link back to this issue).

You need to describe the issue as per the new issue guidelines in order to get useful feedback:

Prerequisites

In case you encounter problems while using the plug-ins, please consider the following:

If you still could not find a solution, if you have interesting use cases, if you have custom configurations, and generally if you have any experience that you want to share with others, use the GNU MCU Eclipse forum.

If you are convinced that you identified a bug (if you have doubts, use the forum), or you have a pertinent suggestion how to enhance the GNU MCU Eclipse plug-ins, continue and register an issue.

Description

[Description of the bug or feature]

Steps to Reproduce

  1. [First Step]
  2. [Second Step]
  3. [and so on...]

Expected behaviour: [What you expected to happen]

Actual behaviour: [What actually happened]

Versions

  • [plug-in version]
  • [Eclipse version]
  • [Java version]
  • [operating system]
  • [toolchain version]

Please understand that without being able to reproduce the bug we cannot identify your problem.


Note: Remove unnecessary text after reading, before entering your ticket.

TommyMurphyTM1234 commented 1 month ago

Duplicate of this?

the screenshot image links don't seem to work (they seem to link back to this issue).

The original post has been edited to fix the screenshot image link since I made this comment.

TommyMurphyTM1234 commented 1 month ago

Maybe related to, or the same issue, as mentioned here?

Maybe the workspace/.metadata/.log file contains some clues as to what's going on/wrong here?

xzbaijj commented 1 month ago

Yes, there are spaces at the beginning of the SVD file, which prevents normal use. Can the plug-in automatically handle the spaces at the beginning?

TommyMurphyTM1234 commented 1 month ago

I presume that the plugin caters for SVD files that adhere to the relevant schema:

Perhaps the SVD file in question with extraneous (?) spaces at the start of the file is not valid in terms of that schema?

If that is the case then presumably it's the SVD file and not the plugin that should change (be fixed)?

TommyMurphyTM1234 commented 1 month ago

I don't know where the master/authoritative version of this file lives but this version doesn't seem to have any spaces at the start of the file:

ilg-ul commented 1 month ago

Can the plug-in automatically handle the spaces at the beginning?

The plug-in uses standard parsers from the Java library; if your file fails, I would say it is non-conforming and should be fixed.

TommyMurphyTM1234 commented 1 month ago

OK - I guess that the Pack file mentioned here:

namely, this:

is the one that is being used and each of the SVD files contained therein do contain extraneous (?) spaces at the start of the files:

For example:

2024-07-09 12 25 19

I think that the validity or otherwise of these files can be checked using the arm CMSIS-Packs SVDConv.exe utility:

but unfortunately I cannot find how/where to download the CMSIS-Packs utilities and this page doesn't work for me and just says "Loading, please wait..." and never completely loads:

TommyMurphyTM1234 commented 1 month ago

Ah - found SVDConv here:

And running it on the aforementioned SVD files with the recommended --strict option generates many INFO, several WARNING and one ERROR messages for each of these files.

You probably need to flag the issue with GigaDevices (assuming that the relevant CMSIS-Packs file(s) originate from them?) so that they can fix any issues with their files.