Runtime error, S32 Design Studio for PPC and flash programming

By Allan C. : Jan 20, 2022 at 05:48 AM (05:48 hours)
Staff: Takao Y. : 5 comments

Hello,

I'm using S32 Design Studio for PPC with the PE Micro USB Universal FX to debug Core0 software on MPC5777C. During the flash programming sequence S32DS sometimes reports Runtime Error 216 at 040A42C6. I've noticed the error during the script, it seems to have a problem loading the Flash Algorithm.

I've tried adjusting the debug frequency but it doesn't seem to help. I don't really know what clears the error, I've tried resets, power cycle etc but sometimes it works and sometimes it doesn't.

Any ideas?

Greetings,

Lowering debug shift is a great start.
If it is randomly experiencing different debug entry results, I would also suggest adding 250 ms delay after reset. It may be that the reset circuitry of the board is still not finished and the device is still in RESET state when our debug tries to communicate. A soft reset occurs when trying to load the algorithm as well in which the reset circuitry may trigger as well.


Takao

Hello,
Thanks but I've tried a 10khz debug shift and up to 500ms delay and its still the same.

Greetings,

The Runtime error is the bizarre thing. It sounds like a more lower-level issue is going on and nothing to do with debug settings.

If you were to open S32 for the first time and immediately go into debug, does the error show up? If it always works, then this tells me the issue is that some resource is busy when you attempt to start a new debug session. Like the previous session is not done or not closed correctly.

Are you doing anything unique, like trying to debug a secondary core without debugging the primary core?


Takao

Greetings,

Any update on this?


Takao