coex_wifi_central_ht#
Supported Boards#
RD-RW612-BGA
# 1. Overview
This document provides step-by-step procedures to build and test coex examples, and also instructions for running the included sample applications.
## 1.1 SDK
Version: NXP SDK next
Set up NXP SDK next generation environment.
## 1.2 Hardware requirements
Micro USB cable
RD-RW612-BGA board
Personal Computer
## 1.3 Board settings
No specail setting to do for wifi&ble coex.
# 2. Build and flash
## 2.1 Build
flash_debug:
$ cd mcu-sdk-3.0
$ west build -b rdrw612bga examples/coex_examples/coex_wifi_central_ht --toolchain armgcc --config=flash_debug -d coex_wifi_central_ht
flash_release
$ cd mcu-sdk-3.0
$ west build -b rdrw612bga examples/coex_examples/coex_wifi_central_ht --toolchain armgcc --config=flash_release -d coex_wifi_central_ht
NOTE:
-d coex_wifi_central_ht-> Specify the generated project path. Can name it as needed.Find coex_wifi_central_ht.elf/coex_wifi_central_ht.bin in coex_wifi_central_ht folder.
Only support armgcc to build coex application.
## 2.3 Flash Binaries
Flash the image with the following command,
##### CMD to write CPU3 coex app image to flash in J-link window:
J-Link> loadbin C:\xxx\coex_wifi_central_ht.bin, 0x08000000
NOTE:
Monolithic feature is default enabled, this means it’s no need to flash binaries manually.
If disable Wi-Fi or BLE monolithic feature, download firmware manually.
SB firmware path: mcu-sdk-3.0/components/conn_fwloader/fw_bin
##### CMD to write CPU1 wifi image to flash in J-link window:
J-Link> loadbin C:\xxx\rw61x_sb_wifi_a2.bin,0x08400000
##### CMD to write CPU2 ble to flash in J-link window:
J-Link> loadbin C:\xxx\rw61x_sb_ble_a2.bin,0x08540000
3. Run
## 3.1 Prepare the Demo
Connect a micro USB cable between the PC host and the MCU-Link USB port (J7) on the board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Launch the debugger in your IDE to begin running the example.
## 3.2 Running the example
The log below shows the output of the coex examples (based on edgefast-shell) in the terminal window:
Coex APP
Wi-Fi cau temperature : 29
Bluetooth initialized
Advertising successfully started
STA MAC Address: C0:95:DA:01:07:36
board_type: 0, board_type mapping:
0----QFN
1----CSP
##### 2----BGA
##### app_cb: WLAN: received event 12
##### app_cb: WLAN initialized
##### WLAN CLIs are initialized
##### ENHANCED WLAN CLIs are initialized
CLIs Available:
...
##### Coex menu called
0 Coex menu print
w Wifi Cli
##### p Power manager MAIN MENU
WiFi Test
Enter ‘w’ to enter Wi-Fi command mode. Enter ‘0’ to return coex menu.
Get the Wi-Fi driver and firmware version:
>
>wlan-version
wifi commands: wlan-version
WLAN Driver Version : v1.3.r48.p37
WLAN Firmware Version : rw610w-V2, IMU, FP99, 18.99.6.p35, PVE_FIX 1
Get MAC Address:
>wlan-mac
wifi commands: wlan-mac
MAC address
STA MAC Address: C0:95:DA:01:07:36
uAP MAC Address: C2:95:DA:01:08:36
Scan the network:
>wlan-scan
wifi commands: wlan-scan
Scan scheduled...
>30 networks found:
7C:10:C9:E0:D4:08 "test_ax88U" Infra
mode: 802.11N
channel: 1
rssi: -60 dBm
security: OPEN
WMM: YES
802.11V: YES
802.11W: NA
04:A1:51:AB:07:1F "netgear-2g" Infra
mode: 802.11BG
channel: 1
rssi: -56 dBm
security: WPA
WMM: YES
802.11W: NA
BLE Test
NOTE:
No need enter any BLE commands.
The demo does not require user interaction. The application will automatically start advertising the Health Thermometer Service and it will accept the first connection request it receives. If the peer subscribes to receive temperature indications, these will be sent every 1 second. The temperature readings are simulated with values between 20 and 25 degrees Celsius.
Low power manager test
Enter ‘p’ to enter pm command mode. Enter ‘0’ to return coex menu.
Only support enable command now.
>enable 3 3000
It may block serial port input.
MIMXRT1060-EVKC
Overview
This document provides step-by-step procedures to build and test coex examples, and also instructions for running the included sample applications.
Hardware requirements
Micro USB cable
evkcmimxrt1060 board
Personal Computer
One of the following modules:
Embedded Artists 2LL M.2 Module (EAR00500) - direct M2 connection
Embedded Artists 2EL M.2 Module (Rev-A1) - direct M2 connection
Embedded Artists 1ZM M.2 Module (EAR00364) - direct M2 connection
Embedded Artists 1XK M.2 Module (EAR00385) - direct M2 connection
Board settings
Before building the example application define Wi-Fi module in the _boards/evkcmimxrt1060/coex_examples/coex_wifi_central_ht/prj.conf.
If you want to use Embedded Artists 2LL M.2 Module(EAR00500), please set CONFIG_MCUX_COMPONENT_component.wifi_bt_module.board_murata_2ll_m2 to y.
CONFIG_MCUX_COMPONENT_component.wifi_bt_module.IW61X=yCONFIG_MCUX_COMPONENT_component.wifi_bt_module.board_murata_2ll_m2=y
If you want to use Embedded Artists 2EL M.2 Module (Rev-A1), please set CONFIG_MCUX_COMPONENT_component.wifi_bt_module.board_murata_2el_m2 to y.
CONFIG_MCUX_COMPONENT_component.wifi_bt_module.IW61X=yCONFIG_MCUX_COMPONENT_component.wifi_bt_module.board_murata_2el_m2=y
If you want to use Embedded Artists 1ZM M.2 Module (EAR00364), please set CONFIG_MCUX_COMPONENT_component.wifi_bt_module.board_murata_1zm_m2 to y.
CONFIG_MCUX_COMPONENT_component.wifi_bt_module.88W8987=yCONFIG_MCUX_COMPONENT_component.wifi_bt_module.board_murata_1zm_m2=y
If you want to use Embedded Artists 1XK M.2 Module (EAR00385), please set CONFIG_MCUX_COMPONENT_component.wifi_bt_module.board_murata_1xk_m2 to y.
CONFIG_MCUX_COMPONENT_component.wifi_bt_module.IW416=yCONFIG_MCUX_COMPONENT_component.wifi_bt_module.board_murata_1xk_m2=y
Jumper settings for RT1060-EVKC (enables external 5V supply):
remove J40 5-6 connect J40 1-2 connect J45 with external power(controlled by SW6)
Murata Solution Board settings
Embedded Artists 2LL module datasheet: https://www.embeddedartists.com/wp-content/uploads/2024/12/2LL_M2_Datasheet.pdf Embedded Artists 2EL module datasheet: https://www.embeddedartists.com/doc/ds/2EL_M2_Datasheet.pdf Embedded Artists 1ZM module datasheet: https://www.embeddedartists.com/doc/ds/1ZM_M2_Datasheet.pdf Embedded Artists 1XK module datasheet: https://www.embeddedartists.com/doc/ds/1XK_M2_Datasheet.pdf
The hardware should be reworked according to the hardware rework guide for evkcmimxrt1060 and Murata 1XK/1ZM/2EL/2LL M.2 Adapter in document Hardware Rework Guide for EdgeFast BT PAL.
NOTE:
To ensure that the LITTLEFS flash region has been cleaned, all flash sectors need to be erased before downloading example code.
After downloaded binary into qspiflash and boot from qspiflash directly, please reset the board by pressing SW7 or power off and on the board to run the application.
Nighthwak BT UART Rework (LPUART3)
Mount R93, R96
Remove R193
Connect J109, J76 2-3
WiFi and BLE use LPUART.
Build and flash
Prerequisites:
CMake (version >=3.24)
Ninja (version >=1.12)
ARM GCC Toolchain (only support ARM GCC)
Python3 (version >=3.6)
NOTE: Make sure that the paths of all these tools are set into the path system variable.
2. Building
flexspi_nor_debug:
$ cd <sdk root>
$ west build -b evkcmimxrt1060 examples/coex_examples/coex_wifi_central_ht --toolchain armgcc --config flexspi_nor_debug -d coex_wifi_central_ht
flexspi_nor_release:
$ cd <sdk root>
$ west build -b evkcmimxrt1060 examples/coex_examples/coex_wifi_central_ht --toolchain armgcc --config flexspi_nor_release -d coex_wifi_central_ht
NOTE:
-d coex_wifi_central_ht-> Specify the generated project path. Can name it as needed.Find coex_wifi_central_ht.elf/coex_wifi_central_ht.bin in coex_wifi_central_ht folder.
Only support armgcc to build coex application.
CSI and NET_MONITOR are disabled by default due to RAM limitation. If to test CSI and NET_MONITOR, enable them and disable enterprise in wifi_config.h. Modify middleware/wireless/coex/src/configs/
/wifi/wifi_config.h: Enable CSI and NET_MONITOR: #define CONFIG_CSI 1 #define CONFIG_NET_MONITOR 1 Disable enterprise: #define CONFIG_WPA_SUPP_CRYPTO_ENTERPRISE 0 #define CONFIG_WPA_SUPP_CRYPTO_AP_ENTERPRISE 0
4. Flash Binaries
Flash the image with the following command,
##### CMD to write CPU3 coex app image to flash in J-link window:
J-Link> loadbin C:\xxx\coex_wifi_central_ht.bin, 0x60000000
Run
Prepare the Demo
Connect a micro USB cable between the PC host and the MCU-Link USB port (J53) on the board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Launch the debugger in your IDE to begin running the example.
Running the example
The log below shows the output of the coex examples in the terminal window:
```bash
Coex APP
========================================
Initialize Nighthwak-2LL (IW610) M2 Module
Download BT FW… download starts(140756) …………………………………………………………………………………………………………………………. download success! Download WLAN FW… STA MAC Address: 78:F5:05:7B:BB:BC supplicant_main_task: 622 Starting wpa_supplicant thread with debug level: 6
Coex menu called
0 Coex menu print
w Wifi Cli
BLE Central HT demo start… board_type: 0, board_type mapping: 0—-CSP 1—-QFN board_type: 0, board_type mapping: 0—-CSP
1—-QFN
app_cb: WLAN: received event 12
app_cb: WLAN initialized
WLAN CLIs are initialized
CLIs Available:
1. WiFi Test
> Enter 'w' to enter Wi-Fi command mode. Enter '0' to return coex menu.
- Get the Wi-Fi driver and firmware version:
```bash
>
>wlan-version
wifi commands: wlan-version
WLAN Driver Version : v1.3.r48.p37
WLAN Firmware Version : rw610w-V2, IMU, FP99, 18.99.5.p66, PVE_FIX 1
Get MAC Address:
>wlan-mac
wifi commands: wlan-mac
MAC address
STA MAC Address: 78:F5:05:7B:BB:BC
uAP MAC Address: 7A:F5:05:7B:BC:BC
Scan the network:
>wlan-scan
wifi commands: wlan-scan
Scan scheduled...
>10 networks found:
AA:A9:30:5F:44:AE (hidden) Infra
mode: 802.11AX
channel: 157
rssi: -37 dBm
security: WPA2
WMM: YES
802.11V: YES
802.11W: NA
WPS: NO
CC:28:AA:2B:DB:D0 (hidden) Infra
mode: 802.11AX
channel: 10
rssi: -44 dBm
security: WPA2/WPA3 SAE Mixed
WMM: YES
802.11K: YES
802.11V: YES
802.11W: Capable
WPS: NO
BLE Test
NOTE:
No need enter any BLE commands.
FRDM-RW612
# 1. Overview
This document provides step-by-step procedures to build and test coex examples, and also instructions for running the included sample applications.
## 1.1 SDK
Version: NXP SDK next
Set up NXP SDK next generation environment.
## 1.2 Hardware requirements
Micro USB cable
FRDM-RW612 board
Personal Computer
## 1.3 Board settings
No special setting to do for wifi&ble coex.
# 2. Build and flash
## 2.1 Build
flash_debug:
$ cd mcu-sdk-3.0
$ west build -b frdmrw612 examples/coex_examples/coex_wifi_central_ht --toolchain armgcc --config=flash_debug -d coex_wifi_central_ht
flash_release
$ cd mcu-sdk-3.0
$ west build -b frdmrw612 examples/coex_examples/coex_wifi_central_ht --toolchain armgcc --config=flash_release -d coex_wifi_central_ht
NOTE:
-d coex_wifi_central_ht-> Specify the generated project path. Can name it as needed.Find coex_wifi_central_ht.elf/coex_wifi_central_ht.bin in coex_wifi_central_ht folder.
Only support armgcc to build coex application.
## 2.3 Flash Binaries
Flash the image with the following command,
##### CMD to write CPU3 coex app image to flash in J-link window:
J-Link> loadbin C:\xxx\coex_wifi_central_ht.bin, 0x08000000
NOTE:
Monolithic feature is default enabled, this means it’s no need to flash binaries manually.
If disable Wi-Fi or BLE monolithic feature, download firmware manually.
SB firmware path: mcu-sdk-3.0/components/conn_fwloader/fw_bin
##### CMD to write CPU1 wifi image to flash in J-link window:
J-Link> loadbin C:\xxx\rw61x_sb_wifi_a2.bin,0x08400000
##### CMD to write CPU2 ble to flash in J-link window:
J-Link> loadbin C:\xxx\rw61x_sb_ble_a2.bin,0x08540000
3. Run
## 3.1 Prepare the Demo
Connect a micro USB cable between the PC host and the MCU-Link USB port (J7) on the board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Launch the debugger in your IDE to begin running the example.
## 3.2 Running the example
The log below shows the output of the coex examples (based on edgefast-shell) in the terminal window:
Coex APP
Wi-Fi cau temperature : 29
Bluetooth initialized
Advertising successfully started
STA MAC Address: C0:95:DA:01:07:36
board_type: 0, board_type mapping:
0----QFN
1----CSP
##### 2----BGA
##### app_cb: WLAN: received event 12
##### app_cb: WLAN initialized
##### WLAN CLIs are initialized
##### ENHANCED WLAN CLIs are initialized
CLIs Available:
...
##### Coex menu called
0 Coex menu print
w Wifi Cli
##### p Power manager MAIN MENU
WiFi Test
Enter ‘w’ to enter Wi-Fi command mode. Enter ‘0’ to return coex menu.
Get the Wi-Fi driver and firmware version:
>
>wlan-version
wifi commands: wlan-version
WLAN Driver Version : v1.3.r48.p37
WLAN Firmware Version : rw610w-V2, IMU, FP99, 18.99.6.p35, PVE_FIX 1
Get MAC Address:
>wlan-mac
wifi commands: wlan-mac
MAC address
STA MAC Address: C0:95:DA:01:07:36
uAP MAC Address: C2:95:DA:01:08:36
Scan the network:
>wlan-scan
wifi commands: wlan-scan
Scan scheduled...
>30 networks found:
7C:10:C9:E0:D4:08 "test_ax88U" Infra
mode: 802.11N
channel: 1
rssi: -60 dBm
security: OPEN
WMM: YES
802.11V: YES
802.11W: NA
04:A1:51:AB:07:1F "netgear-2g" Infra
mode: 802.11BG
channel: 1
rssi: -56 dBm
security: WPA
WMM: YES
802.11W: NA
BLE Test
NOTE:
No need enter any BLE commands.
The demo does not require user interaction. The application will automatically start advertising the Health Thermometer Service and it will accept the first connection request it receives. If the peer subscribes to receive temperature indications, these will be sent every 1 second. The temperature readings are simulated with values between 20 and 25 degrees Celsius.
Low power manager test
Enter ‘p’ to enter pm command mode. Enter ‘0’ to return coex menu.
Only support enable command now.
>enable 3 3000
It may block serial port input.