MC9S08AC96 initialization trouble

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

MC9S08AC96 initialization trouble

1,097 次查看
kosthala
Contributor I

Hello,

 

This is my first application using the MC9S08AC family. I have write a very simple program for test purposes, where i turn on a simple led.

The program runs fine when i debug it with the usb multilink, but it refuses to start after i program it and remove the multilink.

My previous projects were using the AW family and i have never faced such a problem.

Do you know what maybe the reason for this behavor? 

 

Thanks in advance.

标签 (1)
0 项奖励
回复
1 回复

614 次查看
J2MEJediMaster
Specialist I

Well the program runs well in the debugger and then does not run at all in stand-alone mode, the culprit is either the interrupt vector table is set up improperly (even if you are not using interrupts, the MCU needs one on reset the find your program), or that there are some processor initializations that you have failed to do that the debugger is doing for you. Since you have worked with a derivative MCU, I would guess that it is an initialization problem. Have you tried downloading an example project and confirmed that it runs in the stand-alone mode? If so, compare the demo program's initialization sequence to that of your program, and see if there are any differences.

 

---Tom

0 项奖励
回复