KW45 BLE examples

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

KW45 BLE examples

跳至解决方案
1,701 次查看
ArushThomas
Contributor III

I'm trying to run the BLE examples for the KW45B41Z-EVK development board. I've tried the following examples, using SDK version 25.06.00 (890 2025-06-27):

  1. kw45b41zevk_beacon_bm
  2. kw45b41zevk_beacon_freertos
  3. kw45b41zevk_temperature_sensor_bm
  4. kw45b41zevk_temperature_sensor_freertos
  5. kw45b41zevk_wireless_uart_bm
  6. kw45b41zevk_wireless_uart_freertos

All these examples demonstrate the same behaviour: I'm using my mobile phone with the NXP IoT Toolbox app, and nRf Connect app to detect the KW45, and it never shows up. The onboard LED doesn't blink, either.

The debugger shows that the MCU gets stuck in the following while loop, found on line 400 of fwk_platform_ics.c

while ((!m_nbu_api_ind_received) && (cnt < MAX_WAIT_NBU_API_RESPONSE_LOOPS))
{
// wait loop
cnt++;
assert(cnt != MAX_WAIT_NBU_API_RESPONSE_LOOPS);
}

I'd like to understand what's causing this behaviour. I request help debugging this issue.

From a hardware standpoint, I have the unmodified devboard placed on my wooden table. The phone is on the same table, 15 centimeters away. I've connected the devboard to my laptop via Micro-USB cable for debugging. There's no other hardware in the way, between these three devices.

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
1,681 次查看
luis_maravilla
NXP Employee
NXP Employee

Hello,

Thank you for sharing your setup explanation.

I would recommend first checking the Getting Started with the KW45B41Z Evaluation Kit | NXP Semiconductors as describes the first steps to work with the device and use the latest SDK version [25.06].

 

The issue you see is due to absence or incorrect version of the matching NBU. It is necessary to work with the matching NBU image for the SDK version of the application you are working with, prior to loading any wireless SDK example, please update your NBU image with the file in the SDK, you can access the specific instructions in Updating NBU for Wireless Examples; also you will need the SPSDK command tool described in Section 2.5 [From Getting Started]

 

Also, I strongly recommend use only the NXP IoT toolbox as is the destined app for these examples.

If you want to test the examples you mentioned or more wireless Bluetooth Low energy examples, I recommend using the Bluetooth Low Energy Demo Applications User’s Guide, this guide have more details about examples and the interaction with the NXP IoT Toolbox

Thank you for your interest in NXP Semiconductor products

Best Regards

Luis

在原帖中查看解决方案

2 回复数
1,682 次查看
luis_maravilla
NXP Employee
NXP Employee

Hello,

Thank you for sharing your setup explanation.

I would recommend first checking the Getting Started with the KW45B41Z Evaluation Kit | NXP Semiconductors as describes the first steps to work with the device and use the latest SDK version [25.06].

 

The issue you see is due to absence or incorrect version of the matching NBU. It is necessary to work with the matching NBU image for the SDK version of the application you are working with, prior to loading any wireless SDK example, please update your NBU image with the file in the SDK, you can access the specific instructions in Updating NBU for Wireless Examples; also you will need the SPSDK command tool described in Section 2.5 [From Getting Started]

 

Also, I strongly recommend use only the NXP IoT toolbox as is the destined app for these examples.

If you want to test the examples you mentioned or more wireless Bluetooth Low energy examples, I recommend using the Bluetooth Low Energy Demo Applications User’s Guide, this guide have more details about examples and the interaction with the NXP IoT Toolbox

Thank you for your interest in NXP Semiconductor products

Best Regards

Luis

1,697 次查看
ArushThomas
Contributor III

Update: I've replicated the same issue using SDK version 25.03.00 (881 2025-03-28), flashed by a different laptop. Only difference being the aforementioned while loop was on line 398 instead of 400

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2168965%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EKW45%20BLE%20%E7%A4%BA%E4%BE%8B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2168965%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E5%B0%9D%E8%AF%95%E8%BF%90%E8%A1%8C%20KW45B41Z-EVK%20%E5%BC%80%E5%8F%91%E6%9D%BF%E7%9A%84%20BLE%20%E7%A4%BA%E4%BE%8B%E3%80%82%E6%88%91%E4%BD%BF%E7%94%A8%20SDK%20%E7%89%88%E6%9C%AC%3CSTRONG%3E25.06.00%20(890%202025-06-27)%3C%2FSTRONG%3E%E5%B0%9D%E8%AF%95%E4%BA%86%E4%BB%A5%E4%B8%8B%E7%A4%BA%E4%BE%8B%EF%BC%9A%3C%2FP%3E%3COL%3E%3CLI%3Ekw45b41zevk_beacon_bm%3C%2FLI%3E%3CLI%3Ekw45b41zevk_beacon_freertos%3C%2FLI%3E%3CLI%3Ekw45b41zevk_temperature_sensor_bm%3C%2FLI%3E%3CLI%3Ekw45b41zevk_temperature_sensor_freertos%3C%2FLI%3E%3CLI%3Ekw45b41zevk_wireless_uart_bm%3C%2FLI%3E%3CLI%3Ekw45b41zevk_wireless_uart_freertos%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%E6%89%80%E6%9C%89%E8%BF%99%E4%BA%9B%E7%A4%BA%E4%BE%8B%E9%83%BD%E6%98%BE%E7%A4%BA%E4%BA%86%E7%9B%B8%E5%90%8C%E7%9A%84%E8%A1%8C%E4%B8%BA%EF%BC%9A%E6%88%91%E4%BD%BF%E7%94%A8%E5%B8%A6%E6%9C%89%E6%81%A9%E6%99%BA%E6%B5%A6%3CSTRONG%3EIoT%20Toolbox%3C%2FSTRONG%3E%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E5%92%8C%3CSTRONG%3EnRf%20Connect%3C%2FSTRONG%3E%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E7%9A%84%E6%89%8B%E6%9C%BA%E6%9D%A5%E6%A3%80%E6%B5%8B%20KW45%EF%BC%8C%E4%BD%86%E5%AE%83%E4%BB%8E%E6%9C%AA%E6%98%BE%E7%A4%BA%E5%87%BA%E6%9D%A5%E3%80%82%E6%9D%BF%E8%BD%BD%20LED%20%E4%B9%9F%E4%B8%8D%E9%97%AA%E7%83%81%E3%80%82%3C%2FP%3E%3CP%3E%E8%B0%83%E8%AF%95%E5%99%A8%E6%98%BE%E7%A4%BA%20MCU%20%E9%99%B7%E5%85%A5%E4%BA%86%E4%BB%A5%E4%B8%8B%20while%20%E5%BE%AA%E7%8E%AF%EF%BC%8C%E8%A7%81%3CSTRONG%3Efwk_platform_ics.c%3C%2FSTRONG%3E%E7%AC%AC%20400%20%E8%A1%8C%3C%2FP%3E%3CPRE%20translate%3D%22no%22%3Ewhile%20((!m_nbu_api_ind_received)%20%26amp%3B%26amp%3B%20(cnt%20%26lt%3B%20MAX_WAIT_NBU_API_RESPONSE_LOOPS))%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%2F%2F%20wait%20loop%3CBR%20%2F%3Ecnt%2B%2B%3B%3CBR%20%2F%3Eassert(cnt%20!%3D%20MAX_WAIT_NBU_API_RESPONSE_LOOPS)%3B%3CBR%20%2F%3E%7D%3C%2FPRE%3E%3CP%3E%E6%88%91%E6%83%B3%E4%BA%86%E8%A7%A3%E9%80%A0%E6%88%90%E8%BF%99%E7%A7%8D%E8%A1%8C%E4%B8%BA%E7%9A%84%E5%8E%9F%E5%9B%A0%E3%80%82%E6%88%91%E8%AF%B7%E6%B1%82%E5%B8%AE%E5%8A%A9%E8%B0%83%E8%AF%95%E8%BF%99%E4%B8%AA%E9%97%AE%E9%A2%98%E3%80%82%3C%2FP%3E%3CP%3E%E4%BB%8E%E7%A1%AC%E4%BB%B6%E8%A7%92%E5%BA%A6%E7%9C%8B%EF%BC%8C%E6%88%91%E6%8A%8A%E6%9C%AA%E7%BB%8F%E4%BF%AE%E6%94%B9%E7%9A%84%E5%BC%80%E5%8F%91%E6%9D%BF%E6%94%BE%E5%9C%A8%E6%9C%A8%E6%A1%8C%E4%B8%8A%E3%80%82%E6%89%8B%E6%9C%BA%E6%94%BE%E5%9C%A8%E5%90%8C%E4%B8%80%E5%BC%A0%E6%A1%8C%E5%AD%90%E4%B8%8A%EF%BC%8C%E8%B7%9D%E7%A6%BB%2015%20%E5%8E%98%E7%B1%B3%E3%80%82%E6%88%91%E9%80%9A%E8%BF%87%E5%BE%AE%E5%9E%8B%20USB%20%E7%94%B5%E7%BC%86%E5%B0%86%E5%BC%80%E5%8F%91%E6%9D%BF%E8%BF%9E%E6%8E%A5%E5%88%B0%E7%AC%94%E8%AE%B0%E6%9C%AC%E7%94%B5%E8%84%91%E4%B8%8A%E8%BF%9B%E8%A1%8C%E8%B0%83%E8%AF%95%E3%80%82%E5%9C%A8%E8%BF%99%E4%B8%89%E4%B8%AA%E8%AE%BE%E5%A4%87%E4%B9%8B%E9%97%B4%E6%B2%A1%E6%9C%89%E5%85%B6%E4%BB%96%E7%A1%AC%E4%BB%B6%E5%8F%AF%E4%BB%A5%E9%98%BB%E7%A2%8D%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2168965%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3E%E8%AF%84%E4%BC%B0%E6%9D%BF%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2169048%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20KW45%20BLE%20examples%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2169048%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%3C%2FP%3E%0A%3CP%3E%E6%84%9F%E8%B0%A2%E6%82%A8%E5%88%86%E4%BA%AB%E6%82%A8%E7%9A%84%E8%AE%BE%E7%BD%AE%E8%AF%B4%E6%98%8E%E3%80%82%3C%2FP%3E%0A%3CP%3E%E6%88%91%E5%BB%BA%E8%AE%AE%E5%85%88%E6%9F%A5%E7%9C%8B%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocument%2Fguide%2Fgetting-started-with-the-kw45b41z-evaluation-kit%3AGS-KW45B41ZEVK%3Fsection%3Dbuild-run%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EKW45B41Z%20%E8%AF%84%E4%BC%B0%E5%A5%97%E4%BB%B6%E5%85%A5%E9%97%A8%E6%8C%87%E5%8D%97%20%7C%20%E6%81%A9%E6%99%BA%E6%B5%A6%E5%8D%8A%E5%AF%BC%E4%BD%93%3C%2FA%3E%EF%BC%8C%E5%85%B6%E4%B8%AD%E6%8F%8F%E8%BF%B0%E4%BA%86%E4%BD%BF%E7%94%A8%E8%AF%A5%E8%AE%BE%E5%A4%87%E5%92%8C%E4%BD%BF%E7%94%A8%E6%9C%80%E6%96%B0%20SDK%20%E7%89%88%E6%9C%AC%20%5B25.06%5D%20%E7%9A%84%E7%AC%AC%E4%B8%80%E6%AD%A5%E3%80%82%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%E6%82%A8%E7%9C%8B%E5%88%B0%E7%9A%84%E9%97%AE%E9%A2%98%E6%98%AF%E7%94%B1%E4%BA%8E%E6%B2%A1%E6%9C%89%E5%8C%B9%E9%85%8D%E7%9A%84%20NBU%20%E6%88%96%E5%8C%B9%E9%85%8D%E7%9A%84%20NBU%20%E7%89%88%E6%9C%AC%E4%B8%8D%E6%AD%A3%E7%A1%AE%E9%80%A0%E6%88%90%E7%9A%84%E3%80%82%E5%9C%A8%E5%8A%A0%E8%BD%BD%E4%BB%BB%E4%BD%95%E6%97%A0%E7%BA%BF%20SDK%20%E7%A4%BA%E4%BE%8B%E4%B9%8B%E5%89%8D%EF%BC%8C%E8%AF%B7%E4%BD%BF%E7%94%A8%20SDK%20%E4%B8%AD%E7%9A%84%E6%96%87%E4%BB%B6%E6%9B%B4%E6%96%B0%E6%82%A8%E7%9A%84%20NBU%20%E6%98%A0%E5%83%8F%EF%BC%8C%E6%82%A8%E5%8F%AF%E4%BB%A5%E8%AE%BF%E9%97%AE%20%22%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocument%2Fguide%2Fgetting-started-with-the-kw45b41z-evaluation-kit%3AGS-KW45B41ZEVK%3Fsection%3Dbuild-run_build-run-3%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%E4%B8%BA%E6%97%A0%E7%BA%BF%E7%A4%BA%E4%BE%8B%E6%9B%B4%E6%96%B0%20NBU%3C%2FA%3E%22%E4%B8%AD%E7%9A%84%E5%85%B7%E4%BD%93%E8%AF%B4%E6%98%8E%EF%BC%9B%E6%82%A8%E8%BF%98%E9%9C%80%E8%A6%81%E7%AC%AC%202.5%20%E8%8A%82%5B%E4%BB%8E%E5%85%A5%E9%97%A8%E5%BC%80%E5%A7%8B%5D%E4%B8%AD%E6%8F%8F%E8%BF%B0%E7%9A%84%20SPSDK%20%E5%91%BD%E4%BB%A4%E5%B7%A5%E5%85%B7%E3%80%82%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%E6%AD%A4%E5%A4%96%EF%BC%8C%E6%88%91%E5%BC%BA%E7%83%88%E5%BB%BA%E8%AE%AE%E5%8F%AA%E4%BD%BF%E7%94%A8%E6%81%A9%E6%99%BA%E6%B5%A6%E7%89%A9%E8%81%94%E7%BD%91%E5%B7%A5%E5%85%B7%E7%AE%B1%EF%BC%8C%E5%9B%A0%E4%B8%BA%E5%AE%83%E6%98%AF%E8%BF%99%E4%BA%9B%E7%A4%BA%E4%BE%8B%E7%9A%84%E9%A6%96%E9%80%89%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E3%80%82%3C%2FP%3E%0A%3CP%3E%E5%A6%82%E6%9E%9C%E6%82%A8%E6%83%B3%E6%B5%8B%E8%AF%95%E6%82%A8%E6%8F%90%E5%88%B0%E7%9A%84%E7%A4%BA%E4%BE%8B%E6%88%96%E6%9B%B4%E5%A4%9A%E6%97%A0%E7%BA%BF%E4%BD%8E%E5%8A%9F%E8%80%97%E8%93%9D%E7%89%99%E7%A4%BA%E4%BE%8B%EF%BC%8C%E6%88%91%E5%BB%BA%E8%AE%AE%E4%BD%BF%E7%94%A8%3CA%20href%3D%22https%3A%2F%2Fmcuxpresso.nxp.com%2Fmcuxsdk%2Flatest%2Fhtml%2F_static%2Fwireless%2FBluetooth%2FBluetooth_Low_Energy_Demo_Applications_User%2527s_Guide.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%E4%BD%8E%E5%8A%9F%E8%80%97%E8%93%9D%E7%89%99%E6%BC%94%E7%A4%BA%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E7%94%A8%E6%88%B7%E6%8C%87%E5%8D%97%3C%2FA%3E%EF%BC%8C%E6%9C%AC%E6%8C%87%E5%8D%97%E6%8F%90%E4%BE%9B%E4%BA%86%E6%9C%89%E5%85%B3%E7%A4%BA%E4%BE%8B%E4%BB%A5%E5%8F%8A%E4%B8%8E%E6%81%A9%E6%99%BA%E6%B5%A6%E7%89%A9%E8%81%94%E7%BD%91%E5%B7%A5%E5%85%B7%E7%AE%B1%E4%BA%A4%E4%BA%92%E7%9A%84%E6%9B%B4%E5%A4%9A%E8%AF%A6%E7%BB%86%E4%BF%A1%E6%81%AF%3C%2FP%3E%0A%3CP%3E%E6%84%9F%E8%B0%A2%E6%82%A8%E5%AF%B9%E6%81%A9%E6%99%BA%E6%B5%A6%E5%8D%8A%E5%AF%BC%E4%BD%93%E4%BA%A7%E5%93%81%E7%9A%84%E5%85%B3%E6%B3%A8%3C%2FP%3E%0A%3CP%3E%E9%A1%BA%E7%A5%9D%E5%95%86%E7%A5%BA%EF%BC%81%3C%2FP%3E%0A%3CP%3E%E8%B7%AF%E6%98%93%E6%96%AF%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2168972%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20KW45%20BLE%20examples%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2168972%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%9B%B4%E6%96%B0%EF%BC%9A%E6%88%91%E4%BD%BF%E7%94%A8%20SDK%20%E7%89%88%E6%9C%AC%3CSTRONG%3E25.03.00%20(881%202025-03-28)%3C%2FSTRONG%3E%E5%A4%8D%E5%88%B6%E4%BA%86%E7%9B%B8%E5%90%8C%E7%9A%84%E9%97%AE%E9%A2%98%EF%BC%8C%E5%B9%B6%E5%9C%A8%E4%B8%8D%E5%90%8C%E7%9A%84%E7%AC%94%E8%AE%B0%E6%9C%AC%E7%94%B5%E8%84%91%E4%B8%8A%E9%97%AA%E5%AD%98%E3%80%82%E5%94%AF%E4%B8%80%E4%B8%8D%E5%90%8C%E7%9A%84%E6%98%AF%EF%BC%8C%E4%B8%8A%E8%BF%B0%20while%20%E5%BE%AA%E7%8E%AF%E4%BD%8D%E4%BA%8E%E7%AC%AC%20398%20%E8%A1%8C%EF%BC%8C%E8%80%8C%E4%B8%8D%E6%98%AF%E7%AC%AC%20400%20%E8%A1%8C%3C%2FP%3E%3C%2FLINGO-BODY%3E