Page 1
UM-WI-059 Abstract The DA16200 is a highly integrated ultra-low power Wi-Fi system on chip (SoC) that allows users to develop a complete Wi-Fi solution on a single chip. The DA16600 also includes the DA14531 BLE solution. This document is a DA16200/DA16dk600 getting started guide intended to help new or existing developers quickly get started using Linux driver s ource codes to develop Wi-Fi and BLE applications with the DA16200/DA16600 chipset on RZ/G2L Linux system.
UM-WI-059 DA16200 DA16600 Linux Driver Getting Started Guide for RZ/G2L Contents Figures ............................4 Tables............................4 Terms and Definitions ......................5 References .......................... 5 Overview..........................6 Linux Driver for Wi-Fi ......................7 Required Preparations ....................7 4.1.1 How to Erase Flash ..................7 RZ/G2L Linux System....................
Page 3
UM-WI-059 DA16200 DA16600 Linux Driver Getting Started Guide for RZ/G2L 5.1.2 NFS ......................29 Linux Driver ........................29 U-boot Environment ....................29 5.3.1 SD Card .......................29 5.3.2 NFS ......................29 Serial Port Connection for HCI ..................30 Test..........................31 Revi sion History ........................32 Status Definitions ........................33 User Manual Revision 1.9...
DA16200 DA16600 Linux Driver Getting Started Guide for RZ/G2L Overview The DA16200 is a highly integrated Wi-Fi system on chip (SoC) that allows users to develop Wi-Fi solutions using a single chip. The DA16600 also includes DA14531 BLE solution. The DA16200 (DA16600) provides the Linux driver f or the SPI interf ace and BLE HCI f or the UART interf ace, so it can be used as a MAC-only chip on the RZ/G2L Linux system.
The f lash memory should be erased bef ore it can be programmed. This section describes how to erase the f lash memory. 4.1.1 How to Erase Flash Af ter connecting to DA16200 or DA166600 through UART, execute the command below at the prompt. [combo] reset [MROM] sf lash erase 0 1000...
SD Card The Wi-Fi Linux driver is based on the Renesas RZ/G2L Linux SD card image f or Linux kernel and f ile systems. The SD card image is written to the SD card using the MS Windows “Win32 Disk Imager”...
UM-WI-059 DA16200 DA16600 Linux Driver Getting Started Guide for RZ/G2L Kernel Config The wireless network stack is not enabled by def ault in the Linux kernel and must be enabled using menuconf ig. • Run bitbake for kernel config build$ bitbake -c menuconfig virtual/kernel •...
UM-WI-059 DA16200 DA16600 Linux Driver Getting Started Guide for RZ/G2L U-boot Environment 4.4.1 SD Card To boot f rom the microSD card on the SMARC carrier board, set the environment variables using the f ollowing commands at the U-boot prompt: =>...
4.5.1 Compile a Driver Module (Optional) DA16200 provides rwnx_drv.tar.gz, Linux driver source code in the SDK. The driver is cross- compiled using "RZ/G Verif ied Linux Package V3.0.1" included in the RZ/G2L SDK. To compile the driver source code, the RZ/G2L SDK should be installed in advance. See the “Linux Interf ace Specif ication Yocto recipe Start-Up Guide”...
Installing the Driver as a Linux Module The DA16200 f irmware is divided into lmacf w_sdio.bin and lmacf w_spi.bin, and either of them will be used depending on the interf ace supported by the platf orm. The f irmware should be located in the /lib/f irmware directory and will be downloaded to the DA16200 when the kernel module is loaded.
Page 14
UM-WI-059 DA16200 DA16600 Linux Driver Getting Started Guide for RZ/G2L # systemctl stop dnsmasq # systemctl start dnsmasq # hostapd -iwlan0 -t -B ./hostapd.conf ※ Add below to /etc/dnsmasq.conf resolv-file=/etc/resolv.dnsmasq interface=wlan0 listen-address=10.0.0.1 bind-interfaces domain-needed server=8.8.8.8 bogus-priv dhcp-range=10.0.0.2,10.0.0.20,255.255.255.0,24h 4.5.2.2 SDIO Interface STA, AP, and Concurrent modes are supported by SDOI interf ace.
Page 15
UM-WI-059 DA16200 DA16600 Linux Driver Getting Started Guide for RZ/G2L # insmod rwnx_drv.ko # ifconfig wlan0 up # iw dev wlan0 interface add wlan1 type managed # ifconfig wlan1 up # wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf & # ifconfig wlan1 10.0.0.1 netmask 255.255.255.0...
UM-WI-059 DA16200 DA16600 Linux Driver Getting Started Guide for RZ/G2L SPI Pin Connection for Wi-Fi The SPI pin connections between the DA16200 and the RZ/G2L are def ined as f ollows: Table 1: SPI Pin Connection for Wi-Fi RZ/G2L PMOD0...
UM-WI-059 DA16200 DA16600 Linux Driver Getting Started Guide for RZ/G2L SDIO Pin Connection for Wi-Fi The SDIO pin connections between the DA16200 and the RZ/G2L are def ined as f ollows: Table 2: SDIO Pin Connection for Wi-Fi RZ/G2L microSD...
SDIO interf ace f or the LMAC SW. 4.11 H/W Reset RG2L+DA16200 supports H/W reset f unction f or DA16200 module in SDIO and SPI interf ace. Use hw_reset_f w() f unction f or hardware reset. Table 4: PIN Configuration of HW Reset...
DA16200 DA16600 Linux Driver Getting Started Guide for RZ/G2L 4.12 Throughput Test This section describes the iperf 3 throughput test using the TCP/UDP client/server protocol. RZG2L+DA16200 supports the iperf3 command to measure packet transmission perf ormance. 4.12.1 Test Setup Install the iperf 3 tool as f ollows: 1.
NOTE When you see the message as shown in Figure 7, the iperf3 test is ready to start. 4. In the RZG2L+DA16200 console window, run the iperf 3 test with Client mode. ○ For example: [/DA16200/NET] #iperf3 -c 10.0.0.1 -t 10 -i 1 –...
Test with Server Mode For iperf 3, there is no need to run RZG2L+DA16200 in the same server mode as iperf 2. TCP or UDP Rx tests can be conducted by adding the -R option f rom the client's point of view while maintaining the server mode operated by PC/Laptop.
UM-WI-059 DA16200 DA16600 Linux Driver Getting Started Guide for RZ/G2L Figure 11: UDP iperf3 Rx Result 4.13 Supported Commands for RF Tests This section describes how to conduct RF tests in Linux driver alo ng with available commands. The sof tware package is provided so that users can build their products. To use RF test commands, enable the nl80211 testmode command in the kernel conf ig.
Page 24
UM-WI-059 DA16200 DA16600 Linux Driver Getting Started Guide for RZ/G2L <scramnler>: N/A <aifsnVal>: [0 ~ 15]. Indicate the AIFS in units of slots after SIFS that HW should wait for before starting backoff, for access category. <ant>: [0]. Fixed. Example packet mode Tx test with 2412MHz and power grade as 0 root@smarc-rzg2l:~# ./rf wlan0 tx start 2412 0 1000 n65 0...
4.14 Test Example in RZ/G2L Evaluation Board 4.14.1 Test Condition RF test application is verif ied on RZ/G2L evaluation board and DA16200 board using SDIO interf ace. Figure 12: Test Condition • Install driver module (insmod rwnx_drv.ko) and set up the interf ace (if conf ig wlan0 up) in Linux host.
UM-WI-059 DA16200 DA16600 Linux Driver Getting Started Guide for RZ/G2L 4.14.2 tx (Packet mode) This is the normal test mode with packet generation. The packet mode of f ers the possibility to adjust duty of RF Burst at time domain.
UM-WI-059 DA16200 DA16600 Linux Driver Getting Started Guide for RZ/G2L ● ./rf wlan0 cont start 2412 n65 500 1000 n65 0 2412 ● ./rf wlan0 cont stop Figure 18: cont Start/Stop Command Example The parameters are optional and if skipped, def ault value will be used.
DA16200 DA16600 Linux Driver Getting Started Guide for RZ/G2L Figure 22: per Command Example rd and wr 4.14.6 rd and wr commands are to read and write digital registers in DA16200 and DA16600. 4.14.6.1 rd and wr Command Example Figure 23: rd and wr Command Example ird and iwr 4.14.7...
SD Card The Linux driver is based on the Renesas RZ/G2L Linux SD card image f or Linux kernel and f ile systems. The SD card image is written to the SD card using the MS Windows “Win32 Disk Imager”...
UM-WI-059 DA16200 DA16600 Linux Driver Getting Started Guide for RZ/G2L Test The device inf ormation can be f ound using the ‘hciconf ig’ command. Figure 25: hiconfig The scanned lists can be shown using the ‘hcitool lescan’ command. Figure 26: hcitool lescan Result A connection with one of the peripheral devices in the scanned lists can be made using the ‘hcitool...
UM-WI-059 DA16200 DA16600 Linux Driver Getting Started Guide for RZ/G2L Revision History Revision Date Description ● 30-Mar-2023 Added how to enable interface in use in 4.51 ● Added the section 4.13 4.14 18-Jan-2023 Changed the description of section to add the meta layer for BLE 25-Nov-2022 Divided the firmware image to lmacfw_sdio.bin and lmacfw_spi.bin...
RoHS Compliance Renesas Electronics’ suppliers certify that its products are in compliance with the requirements of Directive 2011/65/EU of the European Parliament on the restriction of the use of certain hazardous substances in electrical and electronic equipment. RoHS certifi cates from our suppliers are available on request.
Page 34
FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY RIGHTS. These resources are intended for developers skilled in the art designing with Renesas products. You are solely responsible fo r (1) selecting the appropriate products for your application, (2) designing, validating, and testing your application, and (3) ensuring your application meets applicable standards, and any other safety, security, or other requirements.
Need help?
Do you have a question about the DA16200 and is the answer not in the manual?
Questions and answers