Program does not stay running

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

Program does not stay running

670 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by neonwarrior on Sun Nov 06 23:05:24 MST 2011
Hello I have a problem
After building and clicking on Debug, I click on play and see my program running ok but when I press stop my program doesn't continue running like other one I did. I want my program to continue running without the need to click on debug/play. I want the program to run when I only connect the board to USB or 5 Volts.
Do I have to use the "Program Flash" icon ?

Thanks in advance
0 项奖励
回复
4 回复数

664 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Nov 08 00:53:15 MST 2011
One possible explanation here is that your project is using semihosting (for example, calling printf). Without the debugger connected, your code will then not run. For more details, please see:

http://support.code-red-tech.com/CodeRedWiki/WhatIsSemiHosting
http://support.code-red-tech.com/CodeRedWiki/UsingPrintf

There are also some additional details that you may find useful in this previous thread:

http://knowledgebase.nxp.com/showthread.php?p=8588

Regards,
CodeRedSupport
0 项奖励
回复

664 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by serge on Tue Nov 08 00:16:09 MST 2011
1) Which lpcxpresso board are we talking about?:confused:
2) Please export your program and post it here so at least we can look into it.:D
0 项奖励
回复

664 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by neonwarrior on Mon Nov 07 23:28:45 MST 2011
I did program flash with the options you wrote but my program doesn't run.
What's going on?? Please
Thanks
0 项奖励
回复

664 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Mon Nov 07 00:55:53 MST 2011
If you don't want to debug, use Program Flash with enabled 'Reset target on completion' and 'Mass erase' and your target will start after programming :)
0 项奖励
回复