Open yodaldevoid opened 8 months ago
arrays of fields are already supported, you use them like this:
fieldset/MODER:
description: GPIO port mode register
fields:
- name: MODER
description: Port x configuration bits (y = 0..15)
bit_offset: 0
bit_size: 2
array:
len: 16
stride: 2
enum: MODER
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.