Closed
Description
Hi, I'm trying to get svd2rust to work with this SVD file:
HC32L110.svd.zip
but it gives me the following error:
[INFO svd2rust] Parsing device from SVD file
[INFO svd2rust] Rendering device
[ERROR svd2rust] Error rendering device
Caused by:
0: can't render peripheral 'RAM', group 'No group name'
1: can't render register 'ICLR'
2: Field RAM.ICLR.ERRCLR is not writtable or readable
The contents of the SVD file are as follows:
<register>
<name>ICLR</name>
<description>desc ICLR</description>
<addressOffset>0xC</addressOffset>
<size>32</size>
<access>read-only</access>
<resetValue>0x0</resetValue>
<resetMask>0x1</resetMask>
<fields>
<field>
<name>ERRCLR</name>
<description>desc ERRCLR</description>
<msb>0</msb>
<lsb>0</lsb>
<access>write-only</access>
</field>
</fields>
</register>
I noticed that if I enter "read-write" in the access field, for example, everything continues without errors and the PAC is generated.
What do you think is the problem?
Metadata
Metadata
Assignees
Labels
No labels