Target is not running if I remove Debugger

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Target is not running if I remove Debugger

Jump to solution
1,531 Views
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

Labels (1)
0 Kudos
Reply
1 Solution
759 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
759 Views
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 Kudos
Reply
760 Views
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 Kudos
Reply