How run program automatically for MPC5554 after Reset or Power On

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

How run program automatically for MPC5554 after Reset or Power On

跳至解决方案
2,015 次查看
Bahus
Contributor I
I work with Wind River Workbench 2.6

I does:
    1. Load program in Internal Flash (0x00004000)
    2. Write RCHW (0x065a) at 0x00004000, because main() placed 0x00004030
    3. Power off
    4. Power on

Program don`t run.
Why?
How work Boot Assist Module Program?
Please help...

P.S
    The Program is correct (running on target by Workbench)
0 项奖励
回复
1 解答
1,040 次查看
ronco
NXP Employee
NXP Employee
I'm not familiar with using WorkBench but I suspect you can launch the debugger and have the MPC5554 stop at the RESET vector (don't run any initialization code) then read the various registers configured by the Reset Configuration Word data to make sure these registers are indeed getting set properly.  If they are getting set properly, start stepping through your code in flash and see how far you get, but if these registers are not set properly then review your method for programming the RCHW.

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,041 次查看
ronco
NXP Employee
NXP Employee
I'm not familiar with using WorkBench but I suspect you can launch the debugger and have the MPC5554 stop at the RESET vector (don't run any initialization code) then read the various registers configured by the Reset Configuration Word data to make sure these registers are indeed getting set properly.  If they are getting set properly, start stepping through your code in flash and see how far you get, but if these registers are not set properly then review your method for programming the RCHW.
0 项奖励
回复