svd
svd copied to clipboard
A CMSIS-SVD file parser
Hi! I'm new to embedded rust, and I probably just don't understand the cli options to svd2rust and how to get working output. An example from the SVD I'm using...
From [CMSIS SVDConv docs](https://arm-software.github.io/CMSIS_5/SVD/html/svd_SVDConv_pg.html#:~:text=Size%20of%20Register%20%27NAME%27%3A%27NUM%27%20must%20be%208%2C%2016%20or%2032%20Bits) Message Number | Type | Message Text -- | -- | -- M302 | ERROR | Size of Register 'NAME':'NUM' must be 8, 16 or 32...
In https://github.com/adamgreig/stm32-rs/pull/83#issuecomment-435731760 we found that duplicate fields in a register aren't rejected by svd2rust. (There are probably other duplicate conditions that could be caught, such as duplicate register names?) I'll...
I was handcrafting some svd (yaml) and early on ran into a generator issue. To reproduce run the following in an empty directory: ```sh cargo init simple_bit_field_failure \ && cd...
Proposed by `clippy`. Interesting to test on memory/CPU usage
Let's write here ideas for next major release: - [ ] Update to `serde-yaml` 0.9 (changes enum format) - [ ] Improve error system. More checks on different validation levels....
svd_parser 0.14.1 If a tag contains a XML comment the tag content is ignored. see tag `licenseText` Below XML has been validated against latest svd.xsd. How to reproduce: ```rust use...
Done: - `include_str` replaced with reading from file due to big RAM usage at compile time. Todo: - `SiliconLabs` dir too big and passes tests. Should be blacklisted. - Decide...