You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[INFO svd2rust] Parsing device from SVD file [INFO svd2rust] Rendering device thread 'main' panicked at /root/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/proc-macro2-1.0.87/src/lib.rs:847:13: unsupported proc macro punctuation character '{' note: run withRUST_BACKTRACE=1environment variable to display a backtrace
执行指令: svd2rust -i ./GD32F4xx.svd
1)我用GD32F4xx.svd试了一下,会报这个错误
2)我通过https://github.com/rust-embedded/svd2rust/issues/581中的svd文件再次测试了一下,任然会出现同样的问题。
所以可以排除svd文件的问题。
软件版本:svd2rust v0.33.4
输出如下
[INFO svd2rust] Parsing device from SVD file [INFO svd2rust] Rendering device thread 'main' panicked at /root/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/proc-macro2-1.0.87/src/lib.rs:847:13: unsupported proc macro punctuation character '{' note: run with
RUST_BACKTRACE=1environment variable to display a backtrace
我用二分法排查了一下
似乎只要在xml文件中存在addressOffset标签
<addressOffset>0x4</addressOffset>
就会报这个错误
可能 这个问题与处理addressOffset标签的代码有关?
The text was updated successfully, but these errors were encountered: