KW45 BLE examples

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KW45 BLE examples

Jump to solution
1,678 Views
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.

Labels (1)
Tags (2)
0 Kudos
Reply
1 Solution
1,658 Views
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

View solution in original post

2 Replies
1,659 Views
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,674 Views
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 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2168965%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EKW45%20BLE%20examples%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2168965%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI'm%20trying%20to%20run%20the%20BLE%20examples%20for%20the%26nbsp%3BKW45B41Z-EVK%26nbsp%3Bdevelopment%20board.%20I've%20tried%20the%20following%20examples%2C%20using%20SDK%20version%20%3CSTRONG%3E25.06.00%20(890%202025-06-27)%3C%2FSTRONG%3E%3A%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%3EAll%20these%20examples%20demonstrate%20the%20same%20behaviour%3A%20I'm%20using%20my%20mobile%20phone%20with%20the%20NXP%20%3CSTRONG%3EIoT%20Toolbox%3C%2FSTRONG%3E%20app%2C%20and%20%3CSTRONG%3EnRf%20Connect%3C%2FSTRONG%3E%26nbsp%3Bapp%20to%20detect%20the%20KW45%2C%20and%20it%20never%20shows%20up.%20The%20onboard%20LED%20doesn't%20blink%2C%20either.%3C%2FP%3E%3CP%3EThe%20debugger%20shows%20that%20the%20MCU%20gets%20stuck%20in%20the%20following%20while%20loop%2C%20found%20on%20line%20400%20of%26nbsp%3B%3CSTRONG%3Efwk_platform_ics.c%3C%2FSTRONG%3E%3C%2FP%3E%3CPRE%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%3EI'd%20like%20to%20understand%20what's%20causing%20this%20behaviour.%20I%20request%20help%20debugging%20this%20issue.%3C%2FP%3E%3CP%3EFrom%20a%20hardware%20standpoint%2C%20I%20have%20the%20unmodified%20devboard%20placed%20on%20my%20wooden%20table.%20The%20phone%20is%20on%20the%20same%20table%2C%2015%20centimeters%20away.%20I've%20connected%20the%20devboard%20to%20my%20laptop%20via%20Micro-USB%20cable%20for%20debugging.%20There's%20no%20other%20hardware%20in%20the%20way%2C%20between%20these%20three%20devices.%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%3EEvaluation%20Board%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%3EHello%2C%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20sharing%20your%20setup%20explanation.%3C%2FP%3E%0A%3CP%3EI%20would%20recommend%20first%20checking%20the%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%3EGetting%20Started%20with%20the%20KW45B41Z%20Evaluation%20Kit%20%7C%20NXP%20Semiconductors%3C%2FA%3E%20as%20describes%20the%20first%20steps%20to%20work%20with%20the%20device%20and%20use%20the%20latest%20SDK%20version%20%5B25.06%5D.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThe%20issue%20you%20see%20is%20due%20to%20absence%20or%20incorrect%20version%20of%20the%20matching%20NBU.%20It%20is%20necessary%20to%20work%20with%20the%20matching%20NBU%20image%20for%20the%20SDK%20version%20of%20the%20application%20you%20are%20working%20with%2C%20prior%20to%20loading%20any%20wireless%20SDK%20example%2C%20please%20update%20your%20NBU%20image%20with%20the%20file%20in%20the%20SDK%2C%20you%20can%20access%20the%20specific%20instructions%20in%20%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%3EUpdating%20NBU%20for%20Wireless%20Examples%3C%2FA%3E%3B%20also%20you%20will%20need%20the%20SPSDK%20command%20tool%20described%20in%20Section%202.5%20%5BFrom%20Getting%20Started%5D%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EAlso%2C%20I%20strongly%20recommend%20use%20only%20the%20NXP%20IoT%20toolbox%20as%20is%20the%20destined%20app%20for%20these%20examples.%3C%2FP%3E%0A%3CP%3EIf%20you%20want%20to%20test%20the%20examples%20you%20mentioned%20or%20more%20wireless%20Bluetooth%20Low%20energy%20examples%2C%20I%20recommend%20using%20the%20%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%3EBluetooth%20Low%20Energy%20Demo%20Applications%20User%E2%80%99s%20Guide%3C%2FA%3E%2C%20this%20guide%20have%20more%20details%20about%20examples%20and%20the%20interaction%20with%20the%20NXP%20IoT%20Toolbox%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20your%20interest%20in%20NXP%20Semiconductor%20products%3C%2FP%3E%0A%3CP%3EBest%20Regards%3C%2FP%3E%0A%3CP%3ELuis%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%3EUpdate%3A%20I've%20replicated%20the%20same%20issue%20using%20SDK%20version%20%3CSTRONG%3E25.03.00%20(881%202025-03-28)%3C%2FSTRONG%3E%2C%20flashed%20by%20a%20different%20laptop.%20Only%20difference%20being%20the%20aforementioned%20while%20loop%20was%20on%20line%20398%20instead%20of%20400%3C%2FP%3E%3C%2FLINGO-BODY%3E