Why Kinetis K20 does not boot when disconnected from the debug probe?

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

Why Kinetis K20 does not boot when disconnected from the debug probe?

ソリューションへジャンプ
1,576件の閲覧回数
adrianomitre
Contributor II

I am developing an application for the part MK20FX512VLQ12 using CodeWarrior 10.6 for MCU using as debug probes both P&E USB Multilink Universal and SEGGER J-Link. Its a very simple bareboard application (i.e., no RTOS), which uses Processor Expert for all drivers. Its binary takes less than 10 KB compiled with all debugging information on and all optimization off.

 

I can run the application in debug mode without problems. This is without breakpoints (except at the start of "main", which is unavoidable) to help with any timing or interaction issues. When I start a debug session, hit continue at the breaking point at the start of main() and only then disconnect the debug probe, it keeps running normally (as long as NMI is disabled, at least). When I choose Run (CTRL+F11) instead of Debug (F11), however, the application does not boot.

 

When measuring the RESET_b pin without the debug probe connected, it oscillates like described in PK60F120M Reset pin oscillating. This is after the application has been written to flash, though. I have even verified, when debugging, that memory positions 0x0 and 0x4 are properly set. I am, therefore, out of ideas.


Why the application does not boot when disconnected from the debug probe? How can I make it do?


Any help would be greatly appreciated.

ラベル(1)
0 件の賞賛
返信
1 解決策
1,049件の閲覧回数
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Adriano:

This is most likely to be caused by a hosted library. Check the next thread:

Re: MK10DX256VLK7 doesn't run standalone, just when debugging. Verified it's running from FLASH, not...

PS. I suggest you to post always to a specialized forum space. Otherwise your threads get lost easily and nobody answers. E.g. this debugger question could fit in either of the next spaces:

CodeWarrior Development Tools

CodeWarrior for MCU

Regards!

Jorge Gonzalez

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,050件の閲覧回数
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Adriano:

This is most likely to be caused by a hosted library. Check the next thread:

Re: MK10DX256VLK7 doesn't run standalone, just when debugging. Verified it's running from FLASH, not...

PS. I suggest you to post always to a specialized forum space. Otherwise your threads get lost easily and nobody answers. E.g. this debugger question could fit in either of the next spaces:

CodeWarrior Development Tools

CodeWarrior for MCU

Regards!

Jorge Gonzalez

0 件の賞賛
返信
1,049件の閲覧回数
adrianomitre
Contributor II

Hello Jorge,

Thank you for your prompt and correct answer.

I would just like to suggest that more clear warnings be provided alongside de semi-hosting option regarding the fact that "the firmware will not boot when disconnected from the debugger and PC", given that the actual wording seems to be confusing for some developers (at the very least two :smileywink:).

Best regards,

Adriano Mitre

0 件の賞賛
返信