S32K311 met failed to execute MI command problem

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

S32K311 met failed to execute MI command problem

1,005 次查看
jhuang1
Contributor II

Hi,

    I've transferred my project from s32k312 to s32k311, but the same progrom may met failed to execute MI command problem in the new project.

jhuang1_0-1725335063355.bmp

  The UartReceive() function can not be executed when be placed at the main() function, and its code memory showed error command. At this time the breakpoint can not be placed at the UartReceive() function too.

jhuang1_1-1725335229508.bmp

   But when i change the UartReceive() function to another place, it can be executed and can be break.

jhuang1_3-1725335328691.bmp

    I tried two method to solve the problem but were both faied. 

    First, I change the emulator from jlink to PE;

    Second, I burn the program bin file to flash via jlink, power up the board without emulator.

    Are there anyone met the same problem?

    

 

0 项奖励
回复
2 回复数

965 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @jhuang1,

When you transferred the project, have you created a new one with the S32K311 device selected? Please share the project if possible.

Could you also share where are you moving the function in the main code? Could it be an issue with moving the function before initialization or configuration for the DMA or the UART module? 

Best regards,
Julián

0 项奖励
回复

950 次查看
jhuang1
Contributor II

The project was created with s32k311 selected, RTD300.

I think i find the problem, it seems the functions whitch may execute abnormally all include some string functions, such as memmove(), memcpy(). I rewrote these functions, then all the functions can be executed.