WCT22C3A HEX file or S19 file flashing issues

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

WCT22C3A HEX file or S19 file flashing issues

815 次查看
zhusuce
Contributor I

Hello NXP:

 I am currently using the WCT22C3A to develop a wireless charging product and have encountered a problem. I request support for the following issue: Our product requires a two-stage boot process, hence we need to combine the PBL/SBL/APP into a single hex or s19 file for production line programming. We are using CodeWarrior with the following settings to generate the .S file.

zhusuce_0-1733214337465.png

zhusuce_1-1733214362504.png

We used srec_cat.exe to merge the generated .S file with two other .S files and then used Cyclone FX for programming. After programming, the software failed to start. Using CodeWarrior attach, we observed that the actual programming was done by writing every 32 bytes, with invalid data FF in between.

zhusuce_2-1733214420460.png

After we modified the configuration for generating the S19 file (by disabling the "Generate Byte Addresses" option), the programming process worked correctly.

 

Here are the phenomena we encountered, and our questions are as follows: Before combining our SBL and APP projects, we need to perform a CRC32 check and write the checksum into the project files. After disabling "Generate Byte Addresses," we cannot operate on the generated .S files using srec_cat.exe, and we have not found any tools that support this .S file. This .S file is not a standard S19 file. Is there a way to calculate the CRC32 and write it into the file as described above, and then merge the .S files? Or is there a solution to the problem of writing every 32 bytes?

 

 

0 项奖励
回复
1 回复

776 次查看
Celeste_Liu
NXP Employee
NXP Employee

Hello @zhusuce ,

Thanks for your post. I will help you as much as possible.

About how to combine multiple s19 files into one s19 files, you can refer to below community thread:
S32K3 Bootloader & App Hex file Merge Problem - NXP Community

Solved: How to merge two s19 files to one file? - NXP Community

There are also many other posts that provide good ideas. You can check them out in the community.

About how to calculate the CRC32 and write it into the file, you can refer to the "MCU_Build_Tools_Utilities" document, which can be found here: C:\Freescale\CW MCU v11.1\MCU\Help\PDF\MCU_Build_Tools_Utilities.

Celeste_Liu_0-1733394393311.png

 

I hope this will help you, please let me know if you have more questions.

Best Regards,

Celeste

 

0 项奖励
回复