Wrong computation of bitfield length from lsb/msb fields in SVD files
displays special function Registers (SFRs) while debugging
Status: Beta
Brought to you by:
ravenclaw78
When parsing SVD files the computation of the bitfield length from <lsb> and <msb> tags seems to have a bug.
in RegisterXMLParser.java:412
fbitlength = (byte) (Byte.valueOf(element_msb.getValue()) - Byte.valueOf(element_lsb.getValue()));
The computation should be msb-lsb+1, so an SVD entry of
<lsb>0</lsb> <msb>0</msb>
gets a bitfield length of 1 assigned.
Thank you for sending in this bug, I checked it in as r188.
It will be included in v0.2.6.