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
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.
3.After the IVT firmware is exported and burned, the startup mode is set to norflash, and the IVT fails to run properly.
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.
no,I chang linkfile to LLCE_BOOT_END : ORIGIN = 0x4383C8A0 LENGTH = 0x50,it also have same situation.
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.
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
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.
Hi,
Thanks for your feedback.
Let us continue investigating this situation.
Once we have any update, we will let you know.