S32K344 SVD File Bugs

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K344 SVD File Bugs

1,200 Views
kscz
Contributor III

I pulled the S32K344 svd file ( S32K344.svd ) from the S32DS and I'm attempting to use it, but there appear to be hundreds of bugs in how the file is constructed.

For example, in the MUXSEL registers (from section 62.8.10 in the Reference Manual) are defined in the SVD file like so:
<enumeratedValue>
<name>lu_in</name>
<description>LU_IN0 to LU_IN11</description>
<value>0x1</value>
</enumeratedValue>


But the name field for all the enumerated values (LU_IN0 to LU_IN11) are all "lu_in" which causes errors when storing them as enumerations (multiple definitions of the symbol "lu_in"). Additionally - the enumeration doesn't even correctly cover the space. LU_IN should have values between 1 and 12 (0x1 to 0xC) and instead the enumeration only goes up to 0x9.

As another example, register MDACFG0 field NMDAR has an enumeration which essentially serves no purpose except to be broken.

<name>NUMBER</name>
<description>Number of registers</description>
<value>0x1</value>

Similar to the lu_in example, the enumerations all list "NUMBER" as the name of every enumeration.

Register RRCR0 has field RR_INITMOD which has essentially the same issue with an enumeration MOD_1_63 which also only covers a portion of the possible enumerated values.

Is there anyone I can reach out to in order to get this corrected? These issues are a pretty major impediment to our ability to use S32K3XX chips.

Tags (4)
0 Kudos
Reply
5 Replies

1,131 Views
PavelL
NXP Employee
NXP Employee

Hello @kscz ,

Unfortunately, at this time, there is no official NXP Rust support for S32K3.

You can create a small script to remove/rename duplicities before feeding the SVD to svd2rust.

Best regards,

Pavel

0 Kudos
Reply

1,123 Views
kscz
Contributor III

I'm a little confused - you are correct that I would like to use Rust with this chip, but the issues I've laid out here are fundamental to how anyone would use this SVD file - whether for CMSIS or Rust.

The enumerations for things like MUXSEL and RR_INITMOD only covering some of the possible values seems like a bug. The name field being the same for all the enumerations of any field seems like a bug.

I'm not trying to ask for explicit support from NXP for Rust, I'm asking for the SVD file to be fixed!

Tags (4)
0 Kudos
Reply

1,076 Views
PavelL
NXP Employee
NXP Employee

Hello @kscz ,

I see your point. I reported your query to the software team.

Thank you for reporting that.

Best regards,

Pavel

0 Kudos
Reply

885 Views
kscz
Contributor III

Any word on how long I should wait for an update?

0 Kudos
Reply

869 Views
PavelL
NXP Employee
NXP Employee

Hello @kscz ,

I haven't received an update from development team yet. I increased the priority.

Since the svd file is a part of RTD, I would expect the fix in the next RTD release.

Best regards,

Pavel

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2301564%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K344%20SVD%20File%20Bugs%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2301564%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20pulled%20the%20S32K344%20svd%20file%20(%26nbsp%3BS32K344.svd%20)%20from%20the%20S32DS%20and%20I'm%20attempting%20to%20use%20it%2C%20but%20there%20appear%20to%20be%20hundreds%20of%20bugs%20in%20how%20the%20file%20is%20constructed.%3CBR%20%2F%3E%3CBR%20%2F%3EFor%20example%2C%20in%20the%20MUXSEL%20registers%20(from%20section%2062.8.10%20in%20the%20Reference%20Manual)%20are%20defined%20in%20the%20SVD%20file%20like%20so%3A%3CBR%20%2F%3E%3CFONT%20face%3D%22andale%20mono%2Ctimes%22%3E%3CENUMERATEDVALUE%3E%3CBR%20%2F%3E%3CNAME%3Elu_in%3C%2FNAME%3E%3CBR%20%2F%3E%3CDESCRIPTION%3ELU_IN0%20to%20LU_IN11%3C%2FDESCRIPTION%3E%3CBR%20%2F%3E%3CVALUE%3E0x1%3C%2FVALUE%3E%3CBR%20%2F%3E%3C%2FENUMERATEDVALUE%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CBR%20%2F%3EBut%20the%20name%20field%20for%20all%20the%20enumerated%20values%20(LU_IN0%20to%20LU_IN11)%20are%20all%20%22lu_in%22%20which%20causes%20errors%20when%20storing%20them%20as%20enumerations%20(multiple%20definitions%20of%20the%20symbol%20%22lu_in%22).%20Additionally%20-%20the%20enumeration%20doesn't%20even%20correctly%20cover%20the%20space.%20LU_IN%20should%20have%20values%20between%201%20and%2012%20(0x1%20to%200xC)%20and%20instead%20the%20enumeration%20only%20goes%20up%20to%200x9.%3C%2FP%3E%3CP%3EAs%20another%20example%2C%20register%26nbsp%3BMDACFG0%20field%26nbsp%3BNMDAR%20has%20an%20enumeration%20which%20essentially%20serves%20no%20purpose%20except%20to%20be%20broken.%3C%2FP%3E%3CP%3E%3CFONT%20face%3D%22andale%20mono%2Ctimes%22%3E%3CNAME%3ENUMBER%3C%2FNAME%3E%3CBR%20%2F%3E%3CDESCRIPTION%3ENumber%20of%20registers%3C%2FDESCRIPTION%3E%3CBR%20%2F%3E%3CVALUE%3E0x1%3C%2FVALUE%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3ESimilar%20to%20the%20lu_in%20example%2C%20the%20enumerations%20all%20list%20%22NUMBER%22%20as%20the%20name%20of%20every%20enumeration.%3CBR%20%2F%3E%3CBR%20%2F%3ERegister%20RRCR0%20has%20field%20RR_INITMOD%20which%20has%20essentially%20the%20same%20issue%20with%20an%20enumeration%26nbsp%3BMOD_1_63%20which%20also%20only%20covers%20a%20portion%20of%20the%20possible%20enumerated%20values.%3CBR%20%2F%3E%3CBR%20%2F%3EIs%20there%20anyone%20I%20can%20reach%20out%20to%20in%20order%20to%20get%20this%20corrected%3F%20These%20issues%20are%20a%20pretty%20major%20impediment%20to%20our%20ability%20to%20use%20S32K3XX%20chips.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2302681%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K344%20SVD%20File%20Bugs%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2302681%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F259211%22%20target%3D%22_blank%22%3E%40kscz%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EUnfortunately%2C%20at%20this%20time%2C%20there%20is%20no%20official%20NXP%20Rust%20support%20for%20S32K3.%3C%2FP%3E%0A%3CP%3EYou%20can%20create%20a%20small%20script%20to%20remove%2Frename%20duplicities%20before%20feeding%20the%20SVD%20to%20svd2rust.%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPavel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2303162%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K344%20SVD%20File%20Bugs%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2303162%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI'm%20a%20little%20confused%20-%20you%20are%20correct%20that%20I%20would%20like%20to%20use%20Rust%20with%20this%20chip%2C%20but%20the%20issues%20I've%20laid%20out%20here%20are%20fundamental%20to%20how%20anyone%20would%20use%20this%20SVD%20file%20-%20whether%20for%20CMSIS%20or%20Rust.%3C%2FP%3E%3CP%3EThe%20enumerations%20for%20things%20like%20MUXSEL%20and%26nbsp%3BRR_INITMOD%20only%20covering%20some%20of%20the%20possible%20values%20seems%20like%20a%20bug.%20The%20name%20field%20being%20the%20same%20for%20all%20the%20enumerations%20of%20any%20field%26nbsp%3Bseems%20like%20a%20bug.%3C%2FP%3E%3CP%3EI'm%20not%20trying%20to%20ask%20for%20explicit%20support%20from%20NXP%20for%20Rust%2C%20I'm%20asking%20for%20the%20SVD%20file%20to%20be%20fixed!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2304689%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K344%20SVD%20File%20Bugs%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2304689%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F259211%22%20target%3D%22_blank%22%3E%40kscz%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EI%20see%20your%20point.%20I%20reported%20your%20query%20to%20the%20software%20team.%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20reporting%20that.%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPavel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2320469%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K344%20SVD%20File%20Bugs%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2320469%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EAny%20word%20on%20how%20long%20I%20should%20wait%20for%20an%20update%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2320574%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K344%20SVD%20File%20Bugs%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2320574%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F259211%22%20target%3D%22_blank%22%3E%40kscz%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EI%20haven't%20received%20an%20update%20from%20development%20team%20yet.%20I%20increased%20the%20priority.%3C%2FP%3E%0A%3CP%3ESince%20the%20svd%20file%20is%20a%20part%20of%20RTD%2C%20I%20would%20expect%20the%20fix%20in%20the%20next%20RTD%20release.%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPavel%3C%2FP%3E%3C%2FLINGO-BODY%3E