S32K311 met failed to execute MI command problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K311 met failed to execute MI command problem

1,003 Views
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 Kudos
Reply
2 Replies

963 Views
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 Kudos
Reply

948 Views
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.