KW45更新固件方法
安装SPSDK
- 选择在一个文件夹中打开cmd命令行
C:\nxp\spsdk> python -m venv venv
C:\nxp\spsdk> venv\Scripts\activate
C:\nxp\spsdk> python -m pip install --upgrade pip
C:\nxp\spsdk> pip install spsdk C:\nxp\spsdk> spsdk --help
- 在MCUXpresso IDE中找到 Installed SDKs界面,在 SDK_2.x_KW45B41Z-EVK上右键 Open Location,找到SDK的目录并解压,并找到kw45b41_nbu_ble_1_9_12_3.sb3文件
D:\nxp\MCUXpressoIDE_11.9.1_2170\ide\plugins\com.nxp.mcuxpresso.sdk.sdk_2.x_kw45b41z-evk_2.12.7.201911251446\sdks\middleware\wireless\ble_controller\bin\kw45b41_nbu_ble_1_9_12_3.sb3
- 插入跳线帽 JP25–>按下SW4按键–>插入调试接口线–>松开SW4:进入boot升级模式
-
在SPSDK环境下输入:nxpdevscan
(venv) L:\KW45-EVK\SPSDK>nxpdevscan
-------- Connected NXP USB Devices --------MCU-LINK on-board (r0C3) CMSIS-DAP V2.250 - NXP Semiconductors
Vendor ID: 0x1fc9
Product ID: 0x0143
Path: HID\VID_1FC9&PID_0143&MI_00\A&393A5ABF&0&0000
Path Hash: cf257366
Name: mcxw71xx | kw45xx | k32w1xx
Serial number: IYIEDC5JOUIULMCU-LINK NXP TRACE/POWER - NXP Semiconductors
Vendor ID: 0x1fc9
Product ID: 0x0143
Path: HID\VID_1FC9&PID_0143&MI_01\A&2BB8D371&0&0000
Path Hash: 7307ec12
Name: mcxw71xx | kw45xx | k32w1xx
Serial number: IYIEDC5JOUIUL-------- Connected NXP UART Devices --------
Port: COM6
Type: mboot device-------- Connected NXP SIO Devices -------
- 输入以下指令进行刷入固件:
blhost -p COM6 receive-sb-file D:\nxp\MCUXpressoIDE_11.9.1_2170\ide\plugins\com.nxp.mcuxpresso.sdk.sdk_2.x_kw45b41z-evk_2.12.7.201911251446\sdks\middleware\wireless\ble_controller\bin\kw45b41_nbu_ble_1_9_12_3.sb3
输出以下内容表示成功
Sending SB file [####################################] 100%
Response status = 0 (0x0) Success