M7 Build code and Flash tool download to norflash Fail

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

M7 Build code and Flash tool download to norflash Fail

6,344 Views
tzeng015
Contributor II

Hi NXP support 

M7 Build code and Flash tool download to norflash Fail. Please see the attach file and the SOP can't work well. 

Please see the attach file and help me to solve the question.

thank you

Jeffrey

0 Kudos
Reply
8 Replies

6,287 Views
tzeng015
Contributor II

Hi NXP supports

According the NXP's agent FAE of Taiwan, here is the SOP.

1: Generate S-Record/Intel HEX/Binary file
https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Generate-S-Record-Intel-HEX-Bina...

 

2: Use DCD Tool To Create A Device Configuration Data Image
https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Use-DCD-Tool-To-Create-A-Device-...

 

3: Use IVT Tool To Create A Blob Image S32G274A
https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Use-IVT-Tool-To-Create-A-Blob-Im...

Please see the last page's error message of attach file. The attach picture (2022-02-10_151954.jpg) is the error message , too.

Please Kindly help me to go next step .

thank you

 

 

 

 

0 Kudos
Reply

6,277 Views
bpe
NXP Employee
NXP Employee

You are trying to put together different recommendations without understanding
of what you are actually doing. The result is that the both approaches fail.

Your IVT tool fails because you are giving it a wrong file as the bootloader
image. Besides that, you are generating an S-rec file which is useless in your case.

Follow the steps specified in S32DS User Manual strictly. If you want to
follow the alternative approach, contact the person who have given you that
sequence for further guidance. There is nothing wrong in it, but you have to
follow it correctly.

And last, but not the least: Study your processor Reference Manual to understand the
role and the logic of the structures you are trying to manipulate: IVT, DCD, application
image, as well as the boot flow. The references to the related sections of the document
are given above.

Best Regards,
Platon

 

0 Kudos
Reply

6,206 Views
tzeng015
Contributor II

hi 

thank you help me. The attach file is download OK sample but the function is not Ok. Can you help me again ?

thank you

0 Kudos
Reply

6,174 Views
bpe
NXP Employee
NXP Employee

It is very difficult to comment the materials you attach because you are using
a local language S32DS. Note that NXP Technical Support is an international
service with engineering teams located worldwide. It is always better to
use an international S32DS installation if you are planning to exchange any
materials with us.

One visible potential problem is that you set your binary entry point at the
start of the image. Usually it is not the case. See this document, slide 21
on how to find and fill the correct values. You may also need to modify
your linker file as to avoid overwriting the reserved SRAM areas. Slide 18
of the same document gives you an idea.

Another potential problem appears on slides 17 and 18 of your report. This does not
seem to match your boot device:

bpe_0-1644992960659.png

 

Best Regards,
Platon

 

 

0 Kudos
Reply

6,327 Views
tzeng015
Contributor II

I will try it ASAP .

thank you

0 Kudos
Reply

6,330 Views
bpe
NXP Employee
NXP Employee

What I see in the attached document is, that you are putting an ELF file onto the bootable Flash. ELF executable is not a valid format for that. You have to convert your code into a format recognized by S32G2 Boot ROM in order to directly boot into it. Study S32DS User Guide section titled "Debugging with S32 Debug Probe from flash for all other targets" on page 100 on how to debug an application from Flash. Study S32G2RM, Sections 30.4 and 30.13 to understand how your processor boots and what it expects in the boot Flash.

 

Best Regards,
Platon

 

 

0 Kudos
Reply

6,308 Views
tzeng015
Contributor II

Hi 

Can you help me where to download "S32DS User Guide" ? I find the webside but I still can't find it . please help me ... 

thaank you

0 Kudos
Reply

6,302 Views
tea1
Contributor I

If S32DS is installed in the default path, it should be found here.

C:\NXP\S32DS.3.4\S32DS\help\pdf\S32DS_User_Guide.pdf

0 Kudos
Reply