Using STARTUP_FROM_RESET and project still won't start? Try this...
I was working on a project using a Stellaris LM4F part, and when I went to provide my client the standalone device, I discovered that the hardware wouldn't reset without the IDE and JTAG attached. I had already defined STARTUP_FROM_RESET, but it wasn't working. I tried defining it in different locations (Solution common, Project THUMB debug, LM32_Startup.s file) but nothing worked. I had Google searched, and searched this site, but no luck.
Trying again, I searched Google some more, and found a page on this site about the problem, but it was specific to the LPC2000. I decided to look anyway, just in case.
I found the answer.
Buried in the middle of this page is the following critical text:
---------------------------------------
The application is trying to communicate with the host. If your program has calls to debug I/O functions (debug_printf, etc) then this can make standalone applications block as these functions expect to communicate over the debug interface with a host application.
---------------------------------------
I did a search for "debug_printf" in my code, and quickly commented them all out. Compiled and downloaded the program, and when I powered it up unattached, it booted perfectly.
If you're curious, here's the link to the full page:
https://rowley.zendesk.com/entries/61610-Application-not-starting-up-from-reset-LPC2000-
Please sign in to leave a comment.
Comments
0 comments