I am having issue getting my code to start from flash (MPC5746R). I am able to flash with debugger; code runs as expected. However when you power off and disconnect the debugger the code does not run.
I have the START_FROM_FLASH flag set. Is there something else I am missing? I also moved the DISABLE_SWT1 to just before the branch to main; I remember this being an issue with the 56xx.
Hi,
If you are not handling SWT I recommend you to disable it as first executed instructions in your startup.
Disabling it right before jump to main could not be enough.
Check if your FCCU NCF contain SWT flag or any other flag.
Also check RGM FES/DES registers for reset source.
As your issue description "code does not run" doesn't say much could you specify what you are talking about?
Resets periodically, stuck in loop, end in exception, etc...
Peter