MPC57xx Start From Flash

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MPC57xx Start From Flash

1,183 次查看
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 回复数

991 次查看
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

991 次查看
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 项奖励
回复