Renesas DA16200 User Manual
Hide thumbs Also See for DA16200:
Table of Contents

Advertisement

Quick Links

User Manual
DA16200 DA16600 Linux Driver
Getting Started Guide for RZ/G2L
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.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DA16200 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Renesas DA16200

  • 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.
  • Page 2: Table Of Contents

    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...
  • Page 4: Figures

    UM-WI-059 DA16200 DA16600 Linux Driver Getting Started Guide for RZ/G2L Figures Figure 1: Example of Erasing Flash ....................7 Figure 2: RFK ILL Conf iguration .....................9 Figure 3: Wireless Conf iguration ....................9 Figure 4: Linux Driver Architecture ....................18 Figure 5: Check IP Address ......................19 Figure 6: Disable Firewall for iperf 3 Test ..................
  • Page 5: Terms And Definitions

    Serial Peripheral Interf ace Station Transport Control Protocol Transmit UART Universal Asynchronous Receiver-Transmitter User Datagram Protocol References UM-WI-046, DA16200 DA16600 FreeRTOS SDK Programmer Guide, User Manual, Renesas Electronics User Manual Revision 1.9 31-Mar-2023 CFR0012 5 of 34 © 2023 Renesas Electronics...
  • Page 6: Overview

    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.
  • Page 7: Linux Driver For Wi-Fi

    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...
  • Page 8: Rz/G2L Linux System

    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”...
  • Page 9: Kernel Config

    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 •...
  • Page 10: Nfs

    UM-WI-059 DA16200 DA16600 Linux Driver Getting Started Guide for RZ/G2L 4.3.2 • Copy build/tmp/deploy/images/smarc-rzg2l/Image to NFS server. User Manual Revision 1.9 31-Mar-2023 CFR0012 10 of 34 © 2023 Renesas Electronics...
  • Page 11: U-Boot Environment

    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: =>...
  • Page 12: Da16200 Driver Module

    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”...
  • Page 13: Installing The Driver As A Linux Module

    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...
  • Page 16: Spi Pin Connection For Wi-Fi

    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...
  • Page 17: Sdio Pin Connection For Wi-Fi

    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...
  • Page 18: 4.10 Architecture

    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...
  • Page 19: 4.12 Throughput Test

    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.
  • Page 20: Figure 7: Run Iperf3 Server On Pc

    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 –...
  • Page 21: Iperf3 Test With Server Mode

    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.
  • Page 22: 4.13 Supported Commands For Rf Tests

    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 23: Table 6: Rf Test Command List

    UM-WI-059 DA16200 DA16600 Linux Driver Getting Started Guide for RZ/G2L root@smarc-rzg2l:~# ./rf wlan0 wr e8460 aa55aa55 root@smarc-rzg2l:~# ./rf wlan0 rd e8460 ### do_read, argc = 1 ### do_read, argv[0] = e8460 ### do_read, addr = 000e8460 Reg value = 0xaa55aa55 <reg>...
  • 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...
  • Page 25: 4.14 Test Example In Rz/G2L Evaluation Board

    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.
  • Page 26: Tx (Packet Mode)

    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.
  • Page 27: Per

    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.
  • Page 28: Rd And Wr

    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...
  • Page 29: Linux Driver For Ble

    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”...
  • Page 30: Serial Port Connection For Hci

    UM-WI-059 DA16200 DA16600 Linux Driver Getting Started Guide for RZ/G2L => setenv bootargsnfs ‘setenv bootargs nfsrootdebug root=/dev/nfs rootfstype=nfs ip=172.16.31.160:172.16.31.14:pi:255.255.224.0:pi:eth0:off nfsroot=172.16.31.14:/nfsroot/rzg2lc,tcp,vers=3 vmalloc=384M' => setenv nfsload 'nfs 0x48080000 172.16.31.14:/nfsroot/rzg2lc/Image;nfs 0x48000000 172.16.31.14:/nfsroot/rzg2lc/Image-r9a07g044c2-smarc.dtb' => setenv serverip '172.16.31.14' => setenv ipaddr '172.16.31.160' => setenv netmask '255.255.224.0' =>...
  • Page 31: Test

    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...
  • Page 32: Revi Sion History

    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...
  • Page 33: Status Definitions

    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.

This manual is also suitable for:

Da16600

Table of Contents