Hi All,
I was using S32DS in my laptop everything was working fine building the project and i was able to flash as well. I installed S32DS same version in another PC and when i try to flash it i am getting a error like "Integrity check failed: checksum failure code 2)".
I am using same project(code) in both the PC's and when i compared the hex files there i can see first couple of line is been changed in the hex file generated in new PC. Instead of some number i can see zero's added in the first line, attaching the snapshot for the same.
Have i messed up any settings in the new PC or is there any thing i am missing kindly suggest.
Thanks in Advance.
There may be differences between elf files, due to different setup (optimizations and so). I suppose you have fresh installation, have you restarted your PC?
I have never seen mentioned error. Could you share some log or screenshots?
Hi David
Yes i have restarted the PC after installation.
Attaching the snapshots for your reference,
Flash_Success_Snapshot image was taken on working PC and flashed to the target and it is working as expected.
Error_snapshot image was taken on new PC while flashing there is a warning related to integrity check failed as high lighted in the same snapshot. After the warning it say done downloading app but nothing is happening its like controller is stuck somewhere.
Kindly check and let me know if i am missing something.
Thanks in advance.
Pradeep
Have you tried to flash .elf file directly? This error message happen after starting debug session, correct? Or it is during compiling?
No i have not tried flashing .elf file directly, i have no idea how to do it. I will check on this part.
Compiling, i am doing in S32DS so in compiling part there is no issue. After compiling in the release folder the IDE generates .hex file i am trying to flash that .hex file to the controller through PCAN at this stage i am getting error, as mentioned in the above posted screenshot.
Hi @davidtosenovjan ,
I compared both the systems the only difference is version of windows, both has windows 11 pro but version 24H2 but the old one has 23H2 does it make any difference?
Probably not. Could you share both hex files?
Hi,
I'm not familiar with PCAN or bootloader you are using. But it looks that there is missing some ID or any other value required for bootloader. It may be caused by optimization level in non working case.
Both .hex files have correct checksums and are valid.
Hi @jiri_kral ,
Thanks for the replay, Can you please elaborate more.
I didn't understand the solution provided by you.
Thank you
As I understand it - the integrity check is done on MCU side by bootloader and Integrity Check error warning is send from MCU.
As I said, I'm not familiar with your bootloader and PCAN, but typically bootloader is checking for example some Application ID on particular address. If the ID is missing, bootloader won't load the application. But I'm just guessing that it may be the reason.
Please check the project properties s on new PC if it is same. Or try to use Debug version - there is no difference in hex file between debug and release version.
Hi @jiri_kral
Thanks for the early replay, i have already compared the S32DS settings twice in the old and new laptop.
Could you please point me to which settings exactly to look into, which is causing this "ID missing" issue so that i can verify it again.
I will try once with Debug version generated .hex once now and let you know. There are two debug options one is Debug_Flash and other is Debug_Ram, i dont know which one to use will try with both once and let you know.
Thank you.