kw45 be stuck at Host_Task

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

kw45 be stuck at Host_Task

1,705件の閲覧回数
wjw2023
Contributor I

The KW45 runs in slave mode, and the Android phone app repeatedly disconnects the connection, and occasionally the kw45 is stuck, which does not occur at the time of connection and disconnection, but several seconds or tens of seconds after the connection is successful. 

Debugging analysis found that,kw45 be stuck at Host_Task,other tasks cannot run.

The following is a screenshot of the task running. Repeatedly running the screenshot is Host_Task

 

1.png

 

Please technical guidance, thank you!

 

0 件の賞賛
返信
4 返答(返信)

1,673件の閲覧回数
luis_maravilla
NXP Employee
NXP Employee

Hi can you provide more details about your situation please,

What example are you running?

What version of MCUXpresso are you using?

Are you using the KW45B1Z-EVK or a custom board?

Do you have any other modifications on your code?

Are you using a phone app from NXP?

0 件の賞賛
返信

1,645件の閲覧回数
wjw2023
Contributor I

I modified it on the w_uart example project, the Bluetooth part of the chance is unchanged, only added a few tasks, the recurrence probability of this problem is very low, need to connect many times to be repeated, hope to give some suggestions, not necessarily in the example project to solve the problem, should all developers will modify the example project for development!  sdk version is 2.12.7. Thank you! 

0 件の賞賛
返信

1,595件の閲覧回数
luis_maravilla
NXP Employee
NXP Employee

Hello,

NXP has the "NXP IoT Toolbox app" for testing this Wireless example, I would recommend using this instead.

The first thing I'd check is if there are enough resources for the new tasks.

Could it be possible that miss to allocate resources for the new tasks, and then the Host_Task is stuck?

 

Also for recommendations and explanations on functions, you can consult the BLE Application Developer's Guide Bluetooth Low Energy Application Developer’s Guide

This document explains how to integrate Task Priority relating to Host Task Initialization and provides more explanations about task and event queues. Chapter 3, and Chapter 9.5.2

 

Have a great day

Regards Luis

0 件の賞賛
返信

1,695件の閲覧回数
wjw2023
Contributor I

Provide partial map files:

.bss.pxCurrentTCB
0x2000319c 0x4 ./freertos/freertos_kernel/tasks.o
0x2000319c pxCurrentTCB

 

.text.PLATFORM_LoadHwParams
0x0004710e 0x26 ./framework/Platform/fwk_platform.o
0x0004710e PLATFORM_LoadHwParams
.text.PLATFORM_GetMaxTimeStamp
0x00047134 0xa ./framework/Platform/fwk_platform.o
0x00047134 PLATFORM_GetMaxTimeStamp
.text.PLATFORM_IsTimeoutExpired
0x0004713e 0x44 ./framework/Platform/fwk_platform.o
0x0004713e PLATFORM_IsTimeoutExpired
.text.PLATFORM_WaitTimeout
0x00047182 0x1c ./framework/Platform/fwk_platform.o
0x00047182 PLATFORM_WaitTimeout
.text.PLATFORM_Delay
0x0004719e 0x14 ./framework/Platform/fwk_platform.o
0x0004719e PLATFORM_Delay
.text.mcmgr_imu_remote_active_rel
0x000471b2 0x8 ./framework/Platform/fwk_platform.o
0x000471b2 mcmgr_imu_remote_active_rel

0 件の賞賛
返信