Program will not run standalone on QE8

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

Program will not run standalone on QE8

2,171 次查看
Rodo55
Contributor I
Hello,
 
I wrote a program and downloaded it into the DEMOQE demo board and QE8 uC with the CodeWarrior debugger and it runs just fine. It does everything I asked it to do.
 
I can download the program and run it and it runs great but if I shutdown CW and I power cycle the DEMOQE board the program won't run on it's own. It acts like it's dependent on CW.
 
Does anyone have any ideas as to why a program won't run on it's own once it is downloaded into the uC?
 
Thanks,
 
Rodo
标签 (1)
0 项奖励
回复
3 回复数

925 次查看
fabio
Contributor IV
Hello Rodo55,

I agree with CompilerGuru: this is a typical case of not servicing the watchdog (COP).

While in debug mode the COP is automatically disabled. If you are not disabling the COP in the SOPT1 register, chances are that the COP is timing out and resetting the CPU.

Best regards,
0 项奖励
回复

925 次查看
peg
Senior Contributor IV
Hi Fabio,

See the other version of this thread and see if you still agree.

0 项奖励
回复

925 次查看
CompilerGuru
NXP Employee
NXP Employee
Please do not post the same problem to multiple forums, at least not with mentioning that so that duplicated answers are avoided.
To check:
- do you handle or disable the COP?
- is the reset vector set?
- check write once registers, with the debugger they can be written multiple times but not in normal modes.

Daniel
0 项奖励
回复