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.
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.
But when i change the UartReceive() function to another place, it can be executed and can be break.
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?
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
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.