How to flash LLCE bin file to Norflash?

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

How to flash LLCE bin file to Norflash?

2,526件の閲覧回数
seeu
Contributor III

Hi, Dear NXP experts

I use S32G_LLCE_1_0_4\sample_app_llce\llce_sample_app_pfe, Generate elf files according to AN13423.pdf(Using CAN2CAN, CAN2ETH and ETH2CAN Features of LLCE on S32G), and debug using trace32 can run normally. However, I used gcc objcopy to convert elf files to bin files, and burning bin files into Norflash did not start properly because the Ethernet port did not receive acf-can messages. In addition, I tried to use the same method to burn LED firmware into Norflash, the system can run normally. Do I need to modify the linked file for the LLCE routine to start properly in Norflash? Below is my operation step: 

1. Use objcopy to generate a bin from elf

seeu_0-1687663757286.png

2.Use the S32DS to add IVT,Open S32G_LLCE_1_0_4\sample_app_llce\llce_sample_app_pfe\build_files\autosar_intram.gld to view the start address, open the map file to view the entry address, fill in.

seeu_1-1687663910200.pngseeu_2-1687663930769.png

seeu_3-1687663944786.png

3.After the IVT firmware is exported and burned, the startup mode is set to norflash, and the IVT fails to run properly.

seeu_4-1687664007497.png

 

 

 

 

タグ(3)
0 件の賞賛
返信
6 返答(返信)

2,489件の閲覧回数
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

There seems to be a bug under the linker files for the pfe project under LLCE v1.0.4:

"I found the corresponding defect in the linker file of the llce_sample_app_pfe. The address of LLCE_BOOT_END is wrong in the autosar_intram.gld.
Wrong : LLCE_BOOT_END : ORIGIN = 0x43840000 LENGTH = 0x50
Correct :  LLCE_BOOT_END : ORIGIN = 0x4383C8A0 LENGTH = 0x50
Due to this defect, Llce_Firmware_Load() refers the wrong address, which will never be updated by the LLCE FW."

As for additional modifications under the linker file, we are not seeing anything else on regards of this situation. 

Please, let us know if this information was helpful or not.

0 件の賞賛
返信

2,463件の閲覧回数
seeu
Contributor III

no,I chang linkfile to LLCE_BOOT_END : ORIGIN = 0x4383C8A0 LENGTH = 0x50,it also have same situation.

0 件の賞賛
返信

2,407件の閲覧回数
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

We have received the following update from the internal team:

"Can the customer try to attach the M7 core after flashing the CAN2ETH image to NOR Flash? If yes, What is the phenomenon?"

Please, let us know.

0 件の賞賛
返信

2,389件の閲覧回数
seeu
Contributor III

yes,it can boot normally, I can get CAN frame, but I can not get ETH frame from MAC0.Maybe the PHY is not initialized and the program is finished running

0 件の賞賛
返信

2,378件の閲覧回数
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback.

Can you debug if it is being halt somewhere? Since the CAN messages are sent after initialization, the PHY should already be initialized.

Please, let us know.

0 件の賞賛
返信

2,448件の閲覧回数
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback.

Let us continue investigating this situation.

Once we have any update, we will let you know.

0 件の賞賛
返信