LLCE Firmware load fail

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

LLCE Firmware load fail

跳至解决方案
1,937 次查看
jiajun
Contributor III

Hi, 

    When I am porting the LLCE CAN example, it will jump to HardFault_Handler when running "Llce_Firmware_Load_GetBootStatus", but the official nxp example is fine, please help me to analyse what may be the reasons for the failure of LLCE firmware initialisation.Snipaste_2024-07-24_21-21-47.pngSnipaste_2024-07-24_21-21-59.png

 

0 项奖励
回复
1 解答
1,851 次查看
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback. 

Have you set the same preprocessor options under your project as the LLCE example? You should be able to find this information under Properties > C/C++ Build > Settings > Standard S32DS C Compiler >  Preprocessor.

Also, have verified that both linkers (the one under your project and the one under the LLCE example) are the same?

Overall, if you are trying to implement a custom application on top of the LLCE example, we can recommend using the LLCE example as a base and not a new project, since it has all the required links and configurations to be able to run.

Please, let us know.

 

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,917 次查看
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

For the following comment:

"When I am porting the LLCE CAN example, it will jump to HardFault_Handler"

We understand that this is a custom application. Can you let us know how are you porting it? Is it to a different IDE or microprocessor?

Overall, a HardFault refers to different things, one of which might be related to accessing unavailable or uninitialized memory, which this might be related to.

Please, let us know.

0 项奖励
回复
1,903 次查看
jiajun
Contributor III

Hi, @Daniel-Aguirre 

Thank you for your reply.

The environment used is S32DS 3.5 & S32G-VNP-RDB3 development board & SW32G_RTD_4.4_4.0.2 & S32G_LLCE_1_0_8.

The following are my porting steps.

1. Add new "S32DS Application Project"

Snipaste_2024-07-25_16-24-15.png

2. Adding components against the configuration of "Can_Llce_DS_Can2Can_S32G399A_M7",and generate code

Snipaste_2024-07-25_16-30-48.png

3. Adding LLCE bin file and C code to the projectSnipaste_2024-07-25_16-34-24.png

4. settle error

Snipaste_2024-07-25_16-35-53.png

5. Debugging

 

Another,during debugging, I found that by placing the mouse over "Llce_Mgr_Status", its value can't be seen, but it can be seen in the official routine, as shown in the following two pictures, the first one is the official routine and the second one is my own routine

So,please also tell me why the "Llce_Mgr_Status" variable cannot be loaded.(ps: my link file is a direct port of the official routine.)

Snipaste_2024-07-25_16-42-19.pngSnipaste_2024-07-25_16-40-09.png

0 项奖励
回复
1,885 次查看
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback.

Can you confirm in which optimization is your project at?

You should be able to find it under Properties > C/C++ Build > Settings > Standard S32DS C Compiler >  Optimization

Please, let us know.

0 项奖励
回复
1,876 次查看
jiajun
Contributor III

Hi,

 Properties > C/C++ Build > Settings > Standard S32DS C Compiler >  Optimization > Optimize for size (-OS)Snipaste_2024-07-26_10-23-02.png

0 项奖励
回复
1,852 次查看
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback. 

Have you set the same preprocessor options under your project as the LLCE example? You should be able to find this information under Properties > C/C++ Build > Settings > Standard S32DS C Compiler >  Preprocessor.

Also, have verified that both linkers (the one under your project and the one under the LLCE example) are the same?

Overall, if you are trying to implement a custom application on top of the LLCE example, we can recommend using the LLCE example as a base and not a new project, since it has all the required links and configurations to be able to run.

Please, let us know.

 

0 项奖励
回复