MPC57xx Start From Flash

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MPC57xx Start From Flash

1,184件の閲覧回数
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.

ラベル(1)
2 返答(返信)

992件の閲覧回数
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

992件の閲覧回数
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 件の賞賛
返信