2301564_en-US

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

2301564_en-US

2301564_en-US

S32K344 SVD File Bugs

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:

lu_in
LU_IN0 to LU_IN11
0x1


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.

NUMBER
Number of registers
0x1

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.

Re: S32K344 SVD File Bugs

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

Re: S32K344 SVD File Bugs

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!

Re: S32K344 SVD File Bugs

Hello @kscz ,

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

Thank you for reporting that.

Best regards,

Pavel

Re: S32K344 SVD File Bugs

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

Re: S32K344 SVD File Bugs

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

Re: S32K344 SVD File Bugs

The S32K388 SVD file has many, many more bugs - do I need to document these as well? Are there plans to update this one like the S32K344 as well?

Re: S32K344 SVD File Bugs

Hello @kscz ,

Thank you for reporting the issue. I forwarded it to the SW team and increased the priority. 

Best regards,

Pavel

标记 (1)
无评分
版本历史
最后更新:
3 周之前
更新人: