Freedom K64F: starting without debugger?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Freedom K64F: starting without debugger?

ソリューションへジャンプ
1,611件の閲覧回数
davenadler
Senior Contributor I

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/

pastedImage_1.png

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

ラベル(2)
0 件の賞賛
返信
1 解決策
1,251件の閲覧回数
davenadler
Senior Contributor I

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

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
1,252件の閲覧回数
davenadler
Senior Contributor I

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

0 件の賞賛
返信
1,251件の閲覧回数
BlackNight
NXP Employee
NXP Employee

I would have a look at the RESET and NMI lines (is NMI disabled?).

The Reset line should have a pull-up (say 10k) with a capacitor (say 1uF).

I hope this helps,

Erich

0 件の賞賛
返信
1,251件の閲覧回数
davenadler
Senior Contributor I

I disabled NMI in FOPT as well, same behavior (hope I did this right):

pastedImage_1.png

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

0 件の賞賛
返信
1,251件の閲覧回数
BlackNight
NXP Employee
NXP Employee

Yes, on the FRDM-K64F the rest line has this already. That comment was a general one in case a custom board is used.

0 件の賞賛
返信