Target is not running if I remove Debugger

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

Target is not running if I remove Debugger

跳至解决方案
1,491 次查看
AloysiusJegan
Contributor III

Hi,

 

I am using custom designed board with MCF52254. I'd downloaded a sample code to blink a LED in that board. As long as the debugger is available, I am getting the output. Once I remove the debugger from the board, application is not working.

 

Can anyone pls tell me, What might be the problem? Either Software configuration or anything do I need to change in hardware?

 

Thanks.

 

-AJ

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
719 次查看
AloysiusJegan
Contributor III

Hi CrasyCat,

 

Thanks for your info. It was very useful and the actual problem was some pull-ups were not given to the controller.

 

 

- Aloysius Jegan

http://www.aloysiusjegan.in

在原帖中查看解决方案

0 项奖励
回复
2 回复数
719 次查看
CrasyCat
Specialist III

Hello

 

Couple of questions here.

 

When you change from the debug to the stand alone version of your project did you pay attention to the following;

 

- Did you initialize the vector table and provide a correct reset vector at address 0x0000?

  The processor will retrieve the application start address and stack pointer after reset from address 0x00 and 0x04.

- Did you add code to initialize configuration registers in your application? While in debug  mode configuration registers are initialized in the .cfg file you have specified. You may need to set up the registers in your application for a proper setup.

- Do you have global variable declared with an initialization value in your application?

 

Generally speaking if you want to run a stand alone version of your application I would recommend you to use the INTERNAL_FLASH build target from your project to build the executable.

 

This build target takes care of the 3 item enumerated above.

 

 

 

CrasyCat

0 项奖励
回复
720 次查看
AloysiusJegan
Contributor III

Hi CrasyCat,

 

Thanks for your info. It was very useful and the actual problem was some pull-ups were not given to the controller.

 

 

- Aloysius Jegan

http://www.aloysiusjegan.in

0 项奖励
回复