Downloading to the DEVKIT-MPC5748G using S32DS_PA results in Reset Escalation after POR

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

Downloading to the DEVKIT-MPC5748G using S32DS_PA results in Reset Escalation after POR

跳至解决方案
2,003 次查看
ranulf
Contributor IV

After downloading a Simulink-generated elf file to the DEVKIT-MPC5748G using S32DS for Power Architecture the loaded app runs, but only until a power cycle. After a power cycle the board goes into reset escalation and doesn’t leave with the red reset LED on continuously forever. Yes, downloading over serial from Simulink resolves the problem, but with the downsides of much longer download times, and the need to have Simulink on the computer that does the downloading. The problem probably resides in the flash algorithm.

This problem may be the same as the problem described in the thread “DEVKIT-MPC5748G Download Error”.

Can a solution be found?

0 项奖励
回复
1 解答
1,994 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @ranulf 

My guess is that this behavior is related to the linker file, which is modified to work with the RAppID Bootloader. The next steps describe how to generate code using different linker files.

  1. The new linker file has to be copied inside MBDT Toolbox. To go automatically to that location, please type in Matlab’s Command Window the following command:  winopen(fullfile(mbd_find_mpc_root, 'mbdtbx_mpc574x', 'src', 'linker', 'gcc')) The name of the file is “no_bl” because it uses no bootloader settings. 
  2. Once the file has been copied in the mentioned location, open the Main Configuration block from the model. Go to Built Toolchain, uncheck the “Default Target Memory Definitions” and please select the newly added linker file.mariuslucianand_0-1644524809632.jpeg
  3. If the linker file is not displayed in that dropdown, please go to the same location from your PC (1) and just replace the MPC5748G_flash.ld with the one from this e-mail. But backup first the original ld file.                      mariuslucianand_1-1644524809671.jpeg
  4. Now please generate the code and flash it to the target from the S32DS for PA.

Hope this helps,

Marius

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,984 次查看
ranulf
Contributor IV

Thank you, @mariuslucianand, but I accepted the solution too soon. After I loaded the code it started running, but when I power-cycled the board the app did not run. It didn't go into reset escalation, however. That's different from before.  

0 项奖励
回复
1,995 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @ranulf 

My guess is that this behavior is related to the linker file, which is modified to work with the RAppID Bootloader. The next steps describe how to generate code using different linker files.

  1. The new linker file has to be copied inside MBDT Toolbox. To go automatically to that location, please type in Matlab’s Command Window the following command:  winopen(fullfile(mbd_find_mpc_root, 'mbdtbx_mpc574x', 'src', 'linker', 'gcc')) The name of the file is “no_bl” because it uses no bootloader settings. 
  2. Once the file has been copied in the mentioned location, open the Main Configuration block from the model. Go to Built Toolchain, uncheck the “Default Target Memory Definitions” and please select the newly added linker file.mariuslucianand_0-1644524809632.jpeg
  3. If the linker file is not displayed in that dropdown, please go to the same location from your PC (1) and just replace the MPC5748G_flash.ld with the one from this e-mail. But backup first the original ld file.                      mariuslucianand_1-1644524809671.jpeg
  4. Now please generate the code and flash it to the target from the S32DS for PA.

Hope this helps,

Marius

0 项奖励
回复