soc-hub-fi / keelhaul

Generate executable memory-mapped I/O verification test cases from IP-XACT or CMSIS-SVD files.
Apache License 2.0
0 stars 0 forks source link

Support for `derivedFrom` #17

Open RHamalainen opened 7 months ago

RHamalainen commented 7 months ago

If a peripheral is derived from another peripheral, the program outputs following

--- stderr
  Error: keelhaul internal error

  Caused by:
      0: error while parsing SVD
      1: CMSIS-SVD parse error --> ...
         SVD-file must contain 1..=1 registers-nodes, contained 0
hegza commented 6 months ago

I'm writing an svd-parser based backend. It supports automatic deriveFrom expansion. This should fix the issue.

hegza commented 6 months ago

If a workaround is required immediately, one could convert that to a soft error. Place the above output into an error!() -macro and continue.