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.
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.
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?
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.
I hope this will help you, please let me know if you have more questions.
Best Regards,
Celeste