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
> cargo run generate --svd .\field_array_test.svd
Finished dev [unoptimized + debuginfo] target(s) in 0.10s
Running `target\debug\chiptool.exe generate --svd .\field_array_test.svd`
thread 'main' panicked at '"pin%s" is not a valid Ident', C:\Users\ga29s\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.36\src\fallback.rs:708:9
stack backtrace:
0: std::panicking::begin_panic_handler
at /rustc/e9e1bbc7a820c472b39d3de54b3049bf14050655/library\std\src\panicking.rs:578
1: core::panicking::panic_fmt
at /rustc/e9e1bbc7a820c472b39d3de54b3049bf14050655/library\core\src\panicking.rs:67
2: proc_macro2::fallback::validate_ident
at C:\Users\ga29s\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.36\src\fallback.rs:708
3: proc_macro2::fallback::Ident::_new
at C:\Users\ga29s\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.36\src\fallback.rs:642
4: proc_macro2::fallback::Ident::new
at C:\Users\ga29s\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.36\src\fallback.rs:652
5: enum2$<proc_macro2::imp::Ident>::new
at C:\Users\ga29s\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.36\src\wrapper.rs:691
6: proc_macro2::Ident::new
at C:\Users\ga29s\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.36\src\lib.rs:952
7: chiptool::generate::fieldset::render
at .\src\generate\fieldset.rs:24
8: chiptool::generate::render
at .\src\generate\mod.rs:121
9: chiptool::gen
at .\src\main.rs:192
10: chiptool::main
at .\src\main.rs:105
11: core::ops::function::FnOnce::call_once<enum2$<core::result::Result<tuple$<>,anyhow::Error> > (*)(),tuple$<> >
at /rustc/e9e1bbc7a820c472b39d3de54b3049bf14050655\library\core\src\ops\function.rs:250
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: process didn't exit successfully: `target\debug\chiptool.exe generate --svd .\field_array_test.svd` (exit code: 101)
Until this is added I can manually modify the SVD file.
It doesn't look like it would take too much to add support for this, but it is late, and I may forget about this before fixing it.
The text was updated successfully, but these errors were encountered:
Sorry, I was not specific enough. I am not talking about merging multiple fields into an array, but instead generating code from an SVD containing a field array already. I've updated my top post to give an example.
Arrays of registers are currently supported, but the program does not support arrays of fields.
A strinpped-down example of an unsupported field array...
and the resulting error.
Until this is added I can manually modify the SVD file.
It doesn't look like it would take too much to add support for this, but it is late, and I may forget about this before fixing it.
The text was updated successfully, but these errors were encountered: