auto exec project on target

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

auto exec project on target

322 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mabotic on Wed Oct 05 03:06:49 MST 2011
hi,

one quick but important question:

How do I make my project itself automatically executable on the target. Is there any special paramteters?
When i flash it to the target, it doesnt execute automatically when I power it on...

thanks in advance
0 Kudos
5 Replies

314 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Thu Oct 06 07:53:34 MST 2011
Then there's something wrong with your code or you are in ISP mode :confused:

A nohost-project will start if you power up your target :)

Are we talking about LPCXpresso hardware?
0 Kudos

314 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mabotic on Thu Oct 06 07:42:04 MST 2011
thanks for your advice, but it did't totally fix my problem.

What I need:
A stand alone target that automatically runs the code when it is powered on.

What I Did till now:
- switched Off Semihost (in the lib settings and the debug settings)
- removed all breakpoints including the on in the debug configuration
- added a 3.3V PowerSupply to power the targetboard so that it doesn't loose power when i disconnect the jtag
- flashing the axf via the described comand line

My Problem:
- once I flash the software everything is fine, even when I unplug the jtag, but when I disconnect the power and reconnect it it doesn't start up again
0 Kudos

314 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Wed Oct 05 05:08:32 MST 2011

Quote: mabotic

How do I make my project itself automatically executable on the target. Is there any special paramteters?
When i flash it to the target, it doesnt execute automatically when I power it on...

thanks in advance



How are you loading your image? Are you clicking on Debug in the Quickstart panel?

By default this will mean that a temporary breakpoint is set on main(), which will cause your program to halt after running startup code. You can change this behaviour if required. For details see:

http://support.code-red-tech.com/CodeRedWiki/InitialBP

If this doesn't answer your question, then please tell us exactly what you are doing.

Regards,
CodeRedSupport.
0 Kudos

314 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mabotic on Wed Oct 05 04:32:16 MST 2011
thank you, anything else to do?
0 Kudos

314 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Wed Oct 05 03:48:20 MST 2011
Switch off semihost:

http://support.code-red-tech.com/CodeRedWiki/LibraryVariants
0 Kudos