Issue with respect to .hex file generated

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

Issue with respect to .hex file generated

5,428 次查看
Pradeep_Achar
Contributor I

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.

0 项奖励
回复
12 回复数

5,388 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

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?

0 项奖励
回复

5,360 次查看
Pradeep_Achar
Contributor I

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

0 项奖励
回复

5,347 次查看
Pradeep_Achar
Contributor I

I think attachments are missing, attaching them.

0 项奖励
回复

5,328 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Have you tried to flash .elf file directly? This error message happen after starting debug session, correct? Or it is during compiling?

0 项奖励
回复

5,303 次查看
Pradeep_Achar
Contributor I

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.

0 项奖励
回复

5,117 次查看
Pradeep_Achar
Contributor I

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?

0 项奖励
回复

5,000 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Probably not. Could you share both hex files?

0 项奖励
回复

4,798 次查看
Pradeep_Achar
Contributor I

Hi @davidtosenovjan ,

Kindly find the attached hex files.

Let me know if you need anything else.

标记 (1)
0 项奖励
回复

4,782 次查看
jiri_kral
NXP Employee
NXP Employee

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. 

0 项奖励
回复

4,737 次查看
Pradeep_Achar
Contributor I

Hi @jiri_kral ,

Thanks for the replay, Can you please elaborate more.

I didn't understand the solution provided by you.

Thank you

0 项奖励
回复

4,730 次查看
jiri_kral
NXP Employee
NXP Employee

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. 

 

0 项奖励
回复

4,726 次查看
Pradeep_Achar
Contributor I

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.

0 项奖励
回复