Issue with respect to .hex file generated

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Issue with respect to .hex file generated

5,421件の閲覧回数
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,381件の閲覧回数
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,353件の閲覧回数
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,340件の閲覧回数
Pradeep_Achar
Contributor I

I think attachments are missing, attaching them.

0 件の賞賛
返信

5,321件の閲覧回数
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,296件の閲覧回数
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,110件の閲覧回数
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 件の賞賛
返信

4,993件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

Probably not. Could you share both hex files?

0 件の賞賛
返信

4,791件の閲覧回数
Pradeep_Achar
Contributor I

Hi @davidtosenovjan ,

Kindly find the attached hex files.

Let me know if you need anything else.

タグ(1)
0 件の賞賛
返信

4,775件の閲覧回数
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,730件の閲覧回数
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,723件の閲覧回数
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,719件の閲覧回数
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 件の賞賛
返信