MPC57xx Start From Flash

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

MPC57xx Start From Flash

1,186 Views
ronlewis
Contributor III

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.

Labels (1)
2 Replies

994 Views
petervlna
NXP TechSupport
NXP TechSupport

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

994 Views
ronlewis
Contributor III

Peter,

   Thanks for the reply; I was able to figure out my issue.  I had omitted ctors and dtor section from the linker file. 

0 Kudos
Reply