Debug Instance freezes after breakpoint when using FreeRTOS TAD

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

Debug Instance freezes after breakpoint when using FreeRTOS TAD

ソリューションへジャンプ
3,125件の閲覧回数
mlamberti
Contributor I

Hello,

I converted our project from LPCXpresso to MCUXpresso and enabled FreeRTOS TAD following the "MCUXpresso IDE FreeRTOS Debug Guide". The TAD works fine as I can see all tasks, their stack usage and runtime. But when I set a breakpoint and the debug instance halts I cannot continue execution afterwards. There is no error message, execution just does not continue and I cannot use "step into/over" or suspend/terminate in the panel. Buttons grey out and keep grey.

"Terminate" in the context menu of the Debug perspective works, but results in the LinkServer reporting

"No debug targets available

Reason:

All SWD targets are currently connected to other debug sessions."

on further starts of a debug session.

A restart of MCUXpresso is required to run the application again.

If I disable TAD via the macro 

#define configINCLUDE_FREERTOS_TASK_C_ADDITIONS_H 0

everthing works fine, but the TAD is not available.

Also I noticed that setting a breakpoint while a debug session is active and running gives the error "Breakpoint installation failed: suspend operation timeout.".

I am using the LPC1758 on our own evaluation board dLAN® Green PHY eval board II - devolo Business Solutions  and LPC-Link 2 debugger.

FreeRTOS is version 9.0.0.

Regards, Michael

0 件の賞賛
返信
1 解決策
2,647件の閲覧回数
lpcxpresso_supp
NXP Employee
NXP Employee

We typically distinguish TAD as being related to FreeRTOS plugin display, as opposed to the FreeRTOS stack backtrace you refer to here. It sounds like there's a launch configuration issue. You may see what appears to be confusing results in Stop vs. Nonstop mode. I recommend you debug FreeRTOS applications in Stop mode for the best results. Delete your launch configurations. Next, set Stop mode as the default. This is Window -> Preferences -> MCUXpresso IDE -> Debug Options (Miscellaneous). Uncheck the Enable Non-Stop Mode checkbox and push Apply. When you next create a launch configuration, Stop mode debug will be the default. Report your results.

Thanks and regards,

LPCXpresso Support

元の投稿で解決策を見る

2 返答(返信)
2,648件の閲覧回数
lpcxpresso_supp
NXP Employee
NXP Employee

We typically distinguish TAD as being related to FreeRTOS plugin display, as opposed to the FreeRTOS stack backtrace you refer to here. It sounds like there's a launch configuration issue. You may see what appears to be confusing results in Stop vs. Nonstop mode. I recommend you debug FreeRTOS applications in Stop mode for the best results. Delete your launch configurations. Next, set Stop mode as the default. This is Window -> Preferences -> MCUXpresso IDE -> Debug Options (Miscellaneous). Uncheck the Enable Non-Stop Mode checkbox and push Apply. When you next create a launch configuration, Stop mode debug will be the default. Report your results.

Thanks and regards,

LPCXpresso Support

2,647件の閲覧回数
mlamberti
Contributor I

Thanks for your fast reply!

Disabling Non-Stop Mode solved the issue.

Regards, Michael

0 件の賞賛
返信