-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
collect in cluster/array descriptions #178
Conversation
d1aaca8
to
20f62cd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fail with
_svd: stm32l4x2.svd
LCD:
RAM_COM6:
_array:
S?? : {}
RAM_COM6: fields cannot be collected into S?? array. Please, specify description
cc @Emilgardis |
What about #178 (review)? |
Sorry missed this comment. |
Saying about "RAM_COMx". It looks like there are missed high parts of "64-bit" registers. |
This is |
Thanks. I totally forgot about this example. <register>
<name>RAM_COM6</name>
<displayName>RAM_COM6</displayName>
<description>display memory</description>
<addressOffset>0x44</addressOffset>
<size>0x20</size>
<access>read-write</access>
<resetValue>0x00000000</resetValue>
<fields>
<field>
<dim>32</dim>
<dimIncrement>0x1</dimIncrement>
<dimIndex>0-31</dimIndex>
<name>S%s</name>
<description>S00</description>
<bitOffset>0</bitOffset>
<bitWidth>1</bitWidth>
</field>
</fields>
</register>
UPD. After last commit it produces: <register>
<name>RAM_COM6</name>
<displayName>RAM_COM6</displayName>
<description>display memory</description>
<addressOffset>0x44</addressOffset>
<size>0x20</size>
<access>read-write</access>
<resetValue>0x00000000</resetValue>
<fields>
<field>
<dim>32</dim>
<dimIncrement>0x1</dimIncrement>
<dimIndex>0-31</dimIndex>
<name>S%s</name>
<description>S%s</description>
<bitOffset>0</bitOffset>
<bitWidth>1</bitWidth>
</field>
</fields>
</register> but there is still issue with |
Looks good now <field>
<dim>32</dim>
<dimIncrement>0x1</dimIncrement>
<dimIndex>00,01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31</dimIndex>
<name>S%s</name>
<description>S%s</description>
<bitOffset>0</bitOffset>
<bitWidth>1</bitWidth>
</field> |
I have problem with this but I don't understand the problem _array:
DT?,DT[1][0]:
description: Battery powered domain data register %s
DT??:
description: Battery powered domain data register %s <registers>
<register>
<name>DT1</name>
<displayName>DT1</displayName>
<description>Battery powered domain data
register (BPR_DTx)</description>
</register>
<register>
<name>DT2</name>
<displayName>DT2</displayName>
<description>Battery powered domain data
register (BPR_DTx)</description>
</register>
<register>
<name>DT3</name>
<displayName>DT3</displayName>
<description>Battery powered domain data
register (BPR_DTx)</description>
</register>
<register>
<name>DT4</name>
<displayName>DT4</displayName>
<description>Battery powered domain data
register (BPR_DTx)</description>
</register>
<register>
<name>DT5</name>
<displayName>DT5</displayName>
<description>Battery powered domain data
register (BPR_DTx)</description>
</register>
<register>
<name>DT6</name>
<displayName>DT6</displayName>
<description>Battery powered domain data
register (BPR_DTx)</description>
</register>
<register>
<name>DT7</name>
<displayName>DT7</displayName>
<description>Battery powered domain data
register (BPR_DTx)</description>
</register>
<register>
<name>DT8</name>
<displayName>DT8</displayName>
<description>Battery powered domain data
register (BPR_DTx)</description>
</register>
<register>
<name>DT9</name>
<displayName>DT9</displayName>
<description>Battery powered domain data
register (BPR_DTx)</description>
</register>
<register>
<name>DT10</name>
<displayName>DT10</displayName>
<description>Battery powered domain data
register (BPR_DTx)</description>
</register>
<register>
<name>DT11</name>
<displayName>DT11</displayName>
<description>Battery powered domain data
register (BPR_DTx)</description>
</register>
...
</registers>
|
cc @kossnikita , @Emilgardis looks like solution is founded |
let's merge this |
Wait a little longer please. I haven't finished my tests yet. |
LGTM. Could you update changelog? |
Sure. |
replaces #177
cc @kossnikita