I have an application running on Freedom K64F (using Segger JLink, SDK2.1).
Application is stored in flash and runs absolutely fine under debugger.
I'd like the board to run the application when powered up without the debugger - but nothing happens.
I disabled EZport per Erich's blog https://mcuoneclipse.com/
Traces are cut to onboard debugger as detailed here: https://developer.mbed.org/questions/4658/FRDM-K64F-alternative-JTAG-Debugger/
So what am I missing?
Thanks!
Best Regards, Dave
已解决! 转到解答。
The problem was caused by semi-hosting. This project used -specs=rdimon.specs to linker to support SWO output debug connection. The library support for SWO is too lame to notice no debugger attached, and hangs in the startup code awaiting a debugger connection prior entering main. Oddly, IIRC I used semi-hosting for a couple products I developed using NXP LPC11C14 and LPC Xpresso, and I don't recall seeing this problem before. Anyway, just adjust the linker options:
- Remove: -specs=rdimon.specs
- Add: -specs=nosys.specs
Hope that helps someone else,
Best Regards, Dave
The problem was caused by semi-hosting. This project used -specs=rdimon.specs to linker to support SWO output debug connection. The library support for SWO is too lame to notice no debugger attached, and hangs in the startup code awaiting a debugger connection prior entering main. Oddly, IIRC I used semi-hosting for a couple products I developed using NXP LPC11C14 and LPC Xpresso, and I don't recall seeing this problem before. Anyway, just adjust the linker options:
- Remove: -specs=rdimon.specs
- Add: -specs=nosys.specs
Hope that helps someone else,
Best Regards, Dave
I disabled NMI in FOPT as well, same behavior (hope I did this right):
Not sure I understand about the RESET line - I'm using the K64F Freedom board; shouldn't this be already set up?
Thanks Erich, Best Regards, Dave