Debugging a K64 application in Low-Level-Stop mode

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

Debugging a K64 application in Low-Level-Stop mode

ソリューションへジャンプ
710件の閲覧回数
fcw
Contributor IV

I'm integrating a new piece of code for a Kinetis K64 which switches to low-level stop mode when the controller has nothing to do. The mode switches are working fine: Supply current drops to ~zero when in stop, jumps back to a few 10s of mA when active.

The issue is debug. Development is done with an IAR IDE using a Segger pod packaged with the IDE at the time we licensed it. Quick Run-Stop-Run transitions work fine. Dwelling in Stop (where I'm not attempting to do any debugger actions) causes a controller reset.

I've used the Segger release provided with the IDE, an ancient 6.30 and the current 8.18. No joy with either one.

Has anyone come up with a way around this?

 

タグ(3)
0 件の賞賛
返信
1 解決策
697件の閲覧回数
Celeste_Liu
NXP Employee
NXP Employee

Hello @fcw ,

Thanks for your post.

About low power mode debug, you can refer to the section "9.14 Debug in Low Power Modes" and section "9.14.1 Debug Module State in Low Power Modes" of the K64 Reference manual. 

Screenshot 2025-03-11 110657.png

Screenshot 2025-03-11 110037.png

From the above content, it can be seen that normal debugging under VLPS/VLLSx is not possible.

However, you can mantain the debugger on so when the device will wake up you can resume the code analysis, please refer to Attaching to a Running Target with Segger J-Link, GDB and Eclipse | MCU on Eclipse.

Hope it can help you.

BRs,

Celeste

 

-------------------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!
-------------------------------------------------------------------------------------------------------------------------------

 

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
698件の閲覧回数
Celeste_Liu
NXP Employee
NXP Employee

Hello @fcw ,

Thanks for your post.

About low power mode debug, you can refer to the section "9.14 Debug in Low Power Modes" and section "9.14.1 Debug Module State in Low Power Modes" of the K64 Reference manual. 

Screenshot 2025-03-11 110657.png

Screenshot 2025-03-11 110037.png

From the above content, it can be seen that normal debugging under VLPS/VLLSx is not possible.

However, you can mantain the debugger on so when the device will wake up you can resume the code analysis, please refer to Attaching to a Running Target with Segger J-Link, GDB and Eclipse | MCU on Eclipse.

Hope it can help you.

BRs,

Celeste

 

-------------------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!
-------------------------------------------------------------------------------------------------------------------------------

 

0 件の賞賛
返信
683件の閲覧回数
fcw
Contributor IV

Hi, Celeste,

 

Thank you for the reply. I "Accepted the Solution" but a note I wrote didn't make the trip. Sorry if this is a duplicate: Section 9 and other docs all discussed JTAG, not SWD. Switched the debug connection to SWD and no resets and the debugger resumes operation when the controller switches out of LLS.

0 件の賞賛
返信