Renesas DA16200 Getting Started Manual
Renesas DA16200 Getting Started Manual

Renesas DA16200 Getting Started Manual

Freertos
Hide thumbs Also See for DA16200:
Table of Contents

Advertisement

Quick Links

User Manual
DA16200 DA16600 FreeRTOS
Getting Started Guide
UM-WI-056
Abstract
The DA16200 (DA16600) 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. This document is a DA16200
(DA16600) getting started guide intended to help new or existing developers quickly get started using
the EVKs and SDK to develop Wi-Fi applications with the DA16200 (DA16600) chipset.

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

Summary of Contents for Renesas DA16200

  • Page 1 The DA16200 (DA16600) 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. This document is a DA16200 (DA16600) getting started guide intended to help new or existing developers quickly get started using...
  • Page 2: Table Of Contents

    Debugging with J-Link Debug Probe .................. 43 5.9.1 Installing J-Link ....................43 5.9.2 Connect J-Link ..................... 44 5.9.3 Run Debug Mode ....................45 5.10 Programming DA16200 with SEGGER J-Link in Eclipse ........... 47 5.10.1 Requirements ...................... 47 5.10.2 Preparation ......................47 5.10.3 Setup........................47 5.10.4...
  • Page 3 How to Add an ARP Record ................54 Throughput Test ........................55 6.3.1 Test Setup ......................55 6.3.2 Iperf Test with DA16200/600 as a Client ............. 56 6.3.3 Iperf Test with DA16200/600 as a Server............58 DPM Setup .......................... 59 6.4.1 What is DPM ......................
  • Page 4 Figure 9: DA16600 EVK Configuration for AT-CMD over UART to FT2232H ........27 Figure 10: DA16200 EVK Configuration for AT-CMD over UART or SPI to an External MCU ... 28 Figure 11: DA16600 EVK Configuration for AT-CMD over UART or SPI to an External MCU ... 29 Figure 12 Toolchain package v1.x.x for FreeRTOS SDK ..............
  • Page 5 Table 10: DA16600 EVK Switch Configuration for AT-CMD over UART of FT2232H ......27 Table 11: DA16200 EVK Switch Configuration for AT-CMD over UART or SPI to an External MCU 28 Table 12: DA16200 EVK Connector Configuration for AT-CMD over UART or SPI to External MCU 28...
  • Page 6: Terms And Definitions

    UM-B-114, DA14531, Devkit Pro Hardware, User Manual, Renesas Electronics UM-WI-012, DA16200 SPI SFlash Downloader, User Manual, Renesas Electronics UM-WI-003, DA16200 DA16600 Host Interface and AT-Command, Renesas Electronics UM-WI-038, DA16200 Getting Started with AT-Command for AWS-IoT, User Manual, Renesas Electronics UM-WI-039, DA16200 DA16600 Multi Downloader tool, Renesas Electronics...
  • Page 7: Overview

    Once completing these steps, the EVK and development environment are ready for developing a complete Wi-Fi solution. If the Wi-Fi solution being developed is based on a host MCU that uses the DA16200/600 only as a Wi-Fi communication interface through AT Commands, then a prebuilt firmware image can be used to develop that solution.
  • Page 8: Evaluation Kits

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide Evaluation Kits Introduction The DA16200 and DA16600 Module Evaluation Kits (EVK) are designed to allow a customer to test and develop Wi-Fi applications very quickly. The EVK contains: ○ The specific board with either DA16200MOD or DA16600MOD installed ○...
  • Page 9 UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide Connector for the IAR I-jet JTAG Debugger J7 – JTAG connector Note: Pin 7 of the I-Jet debugger cable is keyed with a white plug so pin 7 must be removed from the EVB.
  • Page 10: Table 2: Da16200 Evk Switch Description

    Section for details on the test setup. When DA16200 EVK Pro is used for measuring current consumption, the P1 jumper must be removed. For more information on DA16200 EVK Pro, see 6.5.2. For more details on the DA16200 EVK see the DA16200 DEVKT Electric Schematic Ref. [11].
  • Page 11: Da16600 Module Evk Ver 4.0_201116

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide DA16600 Module EVK Ver 4.0_201116 Figure 2 shows the hardware configuration of the DA16600 EVK. Figure 2: DA16600 Module EVK Hardware Configuration DA16600 EVB has the following components: Table 3: Components on DA16600 EVB...
  • Page 12 UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide P2 – Jumper to measure Jumper to measure current used by the Wi-Fi device. current consumption of For normal operation, this jumper must be shorted. DA16200 P1 – Jumper to measure ® Jumper to measure current used by the Bluetooth LE device.
  • Page 13: Table 4: Da16600 Evk Switch Description

    1 and 2 of SW9 to the ON position. To measure the current consumption of DA16200, remove the jumper on P2 and turn ON pin1 of SW9. To measure the current consumption of DA14531, remove the jumper on P1 and turn ON pin2 of SW9.
  • Page 14: Connecting To The Evks

    The DA16200/600 provides a command/debug interface on UART0 for performing configuration and diagnostic functions. When the EVK is connected to the USB port (CN6 on the DA16200 EVK or CN1 on the DA16600 EVK), two virtual COM ports are created.
  • Page 15: Configuring The Da14531 Serial Debug Interface (Da16600 Evk Only)

    Parity None Stop Bits Flow Control (HW/SW) None Turn ON the EVK (SW6 on the DA16200 EVK or SW2 on the DA16600 EVK) and check for output similar to the following: Wakeup source is 0x4 [dpm_init_retmemory] DPM INIT CONFIGURATION(1) ******************************************************...
  • Page 16: Updating The Firmware

    Renesas website and scroll down to the Software Downloads section. Find “DA16200 DA16600 FreeRTOS SDK Image” or type it in the search box, and then select the firmware and download. Alternately, the DA16200/600 SDK can be used to rebuild the firmware images as described in...
  • Page 17: Table 6: Serial Flash Memory Map

    See Section 4.5.4 for details on how to select which firmware image is active (RTOS #0 or RTOS #1). Each firmware image is downloaded individually through the debug serial port of the DA16200/600 using the Y-Modem file transfer protocol. User Manual Revision 1.5...
  • Page 18: Firmware Update Using Commands (Windows/Linux)

    Load Addr: 000f6684 To cancel a session, press Ctrl+X Load Y-Modem (Load Offset:f6684) At this point, the DA16200 is waiting for the download to start. b. In the terminal emulation program, start the Y-Modem file transfer: – For Windows Tera Term: Open the File tab and select Transfer > YMODEM > Send.
  • Page 19 UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide ## Total Size = 0x000168a0 = 92320 Bytes [MROM] NOTE Ignore the “ err:..” messages. d. Repeat steps a. through c. to download the FRTOS firmware image and then the DA14531 firmware image (if using DA16600MOD).
  • Page 20: Firmware Update Using The Terra Term Script (Windows Only)

    For Windows users, the firmware images can be downloaded automatically using a terra term script as follows: 1. Once terra term is running and connected to the DA16200/600, open the Control tab, and select the Macro menu item. When the MACRO: Open Macro file selection window opens, navigate to the directory where the firmware images are stored and select the .ttl file (see...
  • Page 21: Multi-Download Tool

    A products manufacturing process requires that the firmware be download to many devices. To make this process more efficient, the Multi-Download Tool can be used to download the firmware to multiple devices at the same time. See the UM-WI-039 DA16200 DA16600 Multi Downloader Tool User Manual Ref.
  • Page 22: Provisioning Wi-Fi

    Provisioning Wi-Fi 4.6.1 Setup for Station Mode The Wi-Fi functions of the DA16200/600 can easily be configured by running the Easy Setup Wi-Fi configuration wizard. To configure the DA16200/600 to operate in Station Mode, open the DA16xxx debug console and...
  • Page 23 >>> Network Interface (wlan0) : UP >>> Associated with ae:2d:be:27:70:7d Connection COMPLETE to ae:2d:be:27:70:7d -- DHCP Client WLAN0: SEL(6) [/DA16200] # -- DHCP Client WLAN0: REQ(1) -- DHCP Client WLAN0: CHK(8) -- DHCP Client WLAN0: BOUND(10) Assigned addr : 192.168.0.65 netmask : 255.255.255.0...
  • Page 24: Setup For Soft-Ap Mode

    Setup for Soft-AP Mode is almost the same as for Station Mode and can easily be configured by running the Easy Setup Wi-Fi configuration wizard. To configure the DA16200/600 to operate in Soft AP Mode, open the DA16xxx debug console and run the setup command at the [DA16xxx] prompt and then answer the questions to complete the...
  • Page 25 UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide IP ADDRESS ? [Quit] (Default 10.0.0.1) : Enter to select the default IP Address. SUBNET ? [Quit] (Default 255.255.255.0) : Enter to select the default Subnet. GATEWAY ? [Quit] (Default 10.0.0.1) : Enter to select the default Gateway.
  • Page 26: Le (Da16600)

    Go to the Renesas website and scroll down to the Software Downloads section. Find “DA16200 DA16600 FreeRTOS SDK Image” or type it in the search box, and then select the firmware and download. Choose DA16200_IMG_FreeRTOS_ATCMD_QFN or DA16600_IMG_FreeRTOS_ATCMD_QFN for your device.
  • Page 27: At Command Testing With Evk Only

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide 4.7.1 AT Command Testing with EVK only Both the DA16200 and DA16600 EVKs include an FT2232H which is used to test AT Command over the UART interface. Figure 8 Table 9 shows how to configure the DA16200 EVK for AT Command processing over the UART.
  • Page 28: At Command Testing With External Mcu

    DA16200 EVK for AT Command processing over the UART or SPI interface using an external MCU. This configuration connects UART1 or SPI of the DA16200 (GPIOA4/5 for UART or GPIOA2/3/8/9 for SPI) to the external pin out connectors.
  • Page 29: Figure 11: Da16600 Evk Configuration For At-Cmd Over Uart Or Spi To An External Mcu

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide When using an AT Command over UART, Pin 11 of J3 and Pin 12 of J3 should be connected by a jumper pin for BLE-Wi-Fi COEX. Also, when using an AT Command over SPI, Pin 13 of J3 and Pin 14 of J3 should be connected.
  • Page 30: Software Development Kit

    Software Development Kit Introduction The DA16200 is a highly integrated ultra-low power Wi-Fi system on chip (SoC) that allows users to develop Wi-Fi solutions using a single chip. Wi-Fi applications can be developed for the DA16200 using the DA16200 FreeRTOS SDK and the Eclipse IDE on either a Windows 10 or Linux based development system.
  • Page 31: Manual Installation

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide Figure 13 Installation using batch script for Windows ● Linux Installation ○ __Install_dev_toolchain_for_linux__.sh script. ~$ ./__Install_dev_toolchain_for_linux__.sh NOTE For Linux systems, shell script needs to be set as executable. After extracting the script file into a directory, the script file permissions must be changed as below.
  • Page 32: Installing The Eclipse Ide

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide xpm install --global @xpack-dev-tools/arm-none-eabi-gcc@10.2.1-1.1.2 Windows 10 does not have any build tools by default, such as “make”, therefore the Windows Build Tools xPack also should be installed. Use the following command to install the Windows Build Tools on Windows 10:...
  • Page 33: Configuring The Eclipse Ide

    After the installation is complete, run Eclipse and open a workspace. Configuring the Eclipse IDE For Eclipse to be able to build the DA16200 FreeRTOS SDK, the path to the compiler must be configured. To setup the compiler path, open the Window > Preferences dialog box.
  • Page 34: Importing The Da16200 Freertos Sdk Into Eclipse

    Figure 19: Windows 10 [MCU] Global Build Tools Path Importing the DA16200 FreeRTOS SDK into Eclipse Download the DA16200 FreeRTOS SDK from the Renesas Electronics’ website. Go to the Renesas and scroll down to the Software Downloads section. Find “DA16200 DA16600 FreeRTOS website SDK”...
  • Page 35: Figure 20: Import Sdk To The Eclipse Ide

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide NOTE For Linux systems, certain files used during the build process need to be set as executable. After extracting the SDK files into a directory, the <sdk_root_directory>/tools/util file permissions must be changed by running the set_linux_perm.sh script in the <sdk_root_directory>/tools/util/ directory:...
  • Page 36: Figure 21: Select Folder To Import The Sdk Into The Eclipse Ide

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide 2. In the Import dialog box, select the Select root directory option and press the Browse button. Use the file manager to navigate to the <sdk_root_directory>/ directory and then press Select Folder. Figure 21: Select Folder to import the SDK into the Eclipse IDE User Manual Revision 1.5...
  • Page 37: Figure 22: Import Sdk To The Eclipse Ide

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide One project should appear in the Projects list which matches the name of the <sdk_root_directory>. Select the project and then press Finish. Figure 22: Import SDK to the Eclipse IDE 4. The project will appear in the Eclipse Project Explorer.
  • Page 38: Import And Build A Project

    Import and Build a Project Various projects are contained within the SDK directory structure. All of these projects are stored in the <sdk_root_directory>/apps/ directory. These include the following: ● Default SDK build for the DA16200 and DA16600 ○ <sdk_root_directory>/apps/da16200/get_started/ ○ <sdk_root_directory>/apps/da16600/get_started/ ●...
  • Page 39: Figure 25: Import A Project

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide ● <sdk_root_directory>/apps/common/examples/Crypto/Crypto_AES/projects/da16600 Import any of these projects using the Eclipse Project Explorer by navigating to the specific project directory and then right-click on the project directory and select Import as Project. Figure 25: Import a Project.
  • Page 40: Figure 27: Build Configurations

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide NOTE The SDK building project process may take several minutes depending on your computer. There are two build configurations Release and Debug. Release and Debug configurations are almost same but only difference between them is that the Release build configuration disables the console (UART0) input and output.
  • Page 41: Figure 29: Generate Configuration Warning Pop-Up

    Figure Figure 30: Location of Firmware Image Files FBOOT is the bootloader image which is used to initialize the DA16200 and launch the main firmware. ● The bootloader image should be loaded first into the flash of a new device.
  • Page 42: Changing The Flash Configuration

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide 5.7.1 Changing the Flash Configuration The flash configuration can be changed by running the Generate Configuration tool which is provided by the SDK. Generate Configuration can be run by going to the Run > External Tools menu and selecting either Generate Configuration For Window or Generate Configuration For Linux.
  • Page 43: How To Move Project Location

    Debugging with J-Link Debug Probe 5.9.1 Installing J-Link To debug the DA16200/600, a J-Link debug probe and the J-Link software is required. A list of the available debug probes can be found on the Segger website: https://www.segger.com/products/debug-probes/j-link/models/model-overview/ The J-link software can be downloaded from the Segger website: https://www.segger.com/downloads/jlink/...
  • Page 44: Connect J-Link

    5.9.2 Connect J-Link The following section describes how to connect the J-Link debug probe to the DA16200 Module. Connect the 20-pin connector of the “J-Link 9-pin Cortex-M Adapter” to the J-Link debug probe and connect the 9-pin connector to the “JTAG connector” on the DA16200/600 EVK board.
  • Page 45: Run Debug Mode

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide 5.9.3 Run Debug Mode To start debugging an application, right-click on the project in the project explorer and select Debug As > Debug Configurations. Figure 35: Run Debug Mode User Manual Revision 1.5...
  • Page 46: Figure 36: Select Debug Mode

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide Open the GDB SEGGER J-Link Debugging entry in the list and select one of the three debugging modes (reboot, attach, attach with RTOS info) and then select Debug. Figure 36: Select Debug Mode There are three debug methods supported by J-Link: "reboot", "attach"...
  • Page 47: 5.10 Programming Da16200 With Segger J-Link In Eclipse

    5.10.3.1 J-Link Flash Loader Installation In order to use the flash loader for DA16200, it should be installed with the following steps. 1. Browse to the installation directory of the J-Link software package (ex. C:\Program Files (x86)\SEGGER\JLink before J-Link driver 7.62, Or C:\Users\<USER>\AppData\Roaming\SEGGER\JLinkDevices from J-Link driver 7.62)
  • Page 48 UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide 2. Open JLinkDevices.xml in a text editor and add a device entry for the DA16200 to the <DataBase> section as follows: C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml Or C:\Users\<USER>\AppData\Roaming\SEGGER\JLinkDevices\JLinkDevices.xml <DataBase> <!-- --> <!-- Dialog Semiconductor -->...
  • Page 49: Figure 38: The Flash Loader Files

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide Figure 38: The Flash Loader Files 5.10.3.2 Setup the Path to the J-Link Installation in Eclipse 1. In Eclipse under the Window menu, select Preferences. 2. In the Preferences dialog box, find the Run/Debug > String Substitution settings.
  • Page 50: Programming

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide Figure 39: The Path of J-Link Installation in Eclipse 5.10.4 Programming To program binaries into the target device, run the jlink_program_all_win script for Windows or the jlink_program_all_linux script for Linux or jlink_program_all_py if using Python in the External Tools.
  • Page 51: Figure 40: Run Jlink_Program_All_Win Script

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide Figure 40: Run jlink_program_all_win Script The following scripts are included in the SDK: ● jlink_erase_all_win, jlink_erase_all_linux, jlink_erase_all_py : Erase all contents of the flash memory ● jlink_program_all_win, jlink_program_all_linux, jlink_program_all_py: Program all images into the flash memory ●...
  • Page 52: Test Procedures

    AP as shown in Figure The DA16200 must be connected to the AP via Wi-Fi, and the laptop must be connected to the AP with an Ethernet cable. After the DA16200/600 is configured, it will go directly into DPM Sleep mode (sleep 3) and will only wake up from sleep mode when unicast packets are received.
  • Page 53: Perform The Ping Test With Dpm Enabled

    In this case, the assigned IP for the DA16200/600 is 192.168.0.66. 4. Verify the setup. Using the IP address of the DA16200/600 run a ping command on the laptop as follows: C:\user\testuser>ping 192.168.0.66 Pinging 192.168.0.66 with 32 bytes of data: Reply from 192.168.0.66: bytes=32 time=81ms TTL=255...
  • Page 54: How To Add An Arp Record

    Approximate round trip times in milli-seconds: Minimum = 14ms, Maximum = 81ms, Average = 34ms For each ping packet sent, the DA16200/600 will wake up and print a message on the serial terminal and then return to sleep mode: Wakeup source is 0x82 >>>...
  • Page 55: Throughput Test

    Dedicated Wi-Fi 3. Use the interface name found for DA16200 to set the ARP cache to static with the netsh command and then use arp -a to verify that it is now a static ARP entry. C:\user\testuser>netsh interface ip add neighbors "Ethernet" "192.168.0.66" "d4-3d-39-10-a2-48"...
  • Page 56: Iperf Test With Da16200/600 As A Client

    6.3.2 Iperf Test with DA16200/600 as a Client To set-up the Iperf test with the DA16200/600 operating as a client and the laptop operating as a server, do the following steps: 1. Connect the laptop which is the server to the AP.
  • Page 57: Figure 43: Disable Firewall For Iperf Test

    TCP window size: 208 KByte (default) ------------------------------------------------------------ Iperf is now running as a server on the laptop and waiting for the DA16200/600 to start the client test app. 5. In the DA16200/600 console window switch to “NET” command mode and run “iperf -I wlan0 -c 192.168.0.103 -t 5 -i 1”...
  • Page 58: Iperf Test With Da16200/600 As A Server

    6.3.3 Iperf Test with DA16200/600 as a Server To set-up the Iperf test with the DA16200/600 operating as a server and the laptop operating as a client, do the following steps: 1. Power on the DA16200/600 and check the assigned IP address in the DA16200/600 console...
  • Page 59: Dpm Setup

    DPM (Dynamic Power Management) is a synthesis of breakthrough in ultra-low power technologies that enable extremely low power operation in the DA16200. DPM shuts down all microelements on the chip when not in use, which allows a near zero level of power consumption when not actively transmitting or receiving data.
  • Page 60: Hold/Disable Dpm Mode

    : 06h 00m 00s Renewal Time : 05h 00m 00s NOTE When the DA16200/600 is in DPM sleep mode, user input is not accepted by the debug terminal. To reenable user input, see Section 6.4.3. 6.4.3 Hold/Disable DPM Mode When the DA16200/600 is in DPM sleep mode, user input is not accepted by the debug terminal.
  • Page 61 5. Once the DPM Hold command is successfully applied, debug commands such as setup is available again. 6. DPM mode can be disabled by running the dpm off command at the command prompt. The DA16200/600 will reboot and the command prompt is available again. [/DA16200] # dpm off Wakeup source is 0x1...
  • Page 62: Current Measurement

    [/DA16200] # NOTE The "dpm hold" command should be used to check the status of DPM operation on the console. After entering dpm hold state of the DA16200, performing normal operations other than for debugging purposes is not permitted. Current Measurement For more detailed information on the Sleep modes, see the “Low Power Operation Mode”...
  • Page 63: Test Setup - Evk Pro Board

    Figure 45: Current Test Environment with EVK PRO for DA16200 1. To measure current with DA16200 EVK PRO, connect the two boards with the PCI connector. 2. Open the two jumpers (P2) of the power line on the DA16200 EVK as shown in Figure 46.
  • Page 64: Figure 47: Current Test Environment With Evk Pro For Da16600

    By switching on both, you can measure all current consumed by Bluetooth LE and Wi-Fi. Figure 48: Setup DA16600 EVK Jumper 6.5.2.1 DA16200 (DA16600) EVK PRO (504-02-A) The actual component locations of the DA16200(DA16600) EVK PRO are shown in Figure User Manual Revision 1.5 12-Jan-2023...
  • Page 65: Figure 49: Da16200 (Da16600) Evk Pro (504-02-A)

    Figure 49: DA16200 (DA16600) EVK PRO (504-02-A) Description ● PCI Connector: a connector on which to install the DA16200 (DA16600) EVK board ● UART MCU: provides communication between DA16200 (DA16600) EVK PRO and PC. Also transfers the current measurement samples to the PC ●...
  • Page 66: Figure 50: Virtual Com Port Selection Window

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide 6.5.2.2 Wi-Fi IoT Power Profiler Wi-Fi IoT Power Profiler uses the SPI port of a device connected via USB for communication. The user needs to select the SPI port to connect before using the Power Profiler tool.
  • Page 67: Figure 51: Power Profiler Of Smartsnippets Toolbox Main Window

    This value is good enough to measure with ±2% accuracy, so in most cases we can leave it as is. Check the multiplication factor. For DA16200(DA16600) it should be 155. The user can set a maximum scale for the waveform window optionally, since there are large peaks on wakeup from sleep (charging capacitors) generally.
  • Page 68: Figure 53: Power Profiler Chart Settings

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide Click Apply and return to the measurement window. Figure 53: Power Profiler Chart Settings 6.5.2.4 Measurements In the measurement window (Figure 54), click Initialize at the bottom left (this step is only needed at the first communication with the A/D converter).
  • Page 69: Figure 55: Consumption Measurement By Using Chart Controls

    Manual Calibration For the most accurate measurement, follow the manual calibration steps below: 4. Remove the daughterboard, i.e., the load, by physically disconnecting the DA16200 (DA16600) EVK from the motherboard. 5. In the main window of the Power Profiler, click Config and temporarily set the Calibration Offset...
  • Page 70: Figure 57: Setting Calibration Offset

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide Figure 57: Setting Calibration Offset The user manual can be found in your local folder where you download the DA16200 DA16600 Evaluation Kit Pro Power Profiler. User Manual Revision 1.5 12-Jan-2023 CFR0012 70 of 99...
  • Page 71: Sleep 1

    AT command. Do the following steps and refer to “UM-WI-003_DA16200_AT- Command_User_Manual” for more details on how to use the AT command on DA16200. 1. Connect UART1 of DA16200 for AT-CMD. Refer to the relevant section “AT Command Development Environment Configuration” in the document in UM-WI-003.
  • Page 72: Sleep 3

    Enable DPM mode as described in Section 6.4.2 ○ When you run the DA16200 with DPM settings, DA16200 will run DPM Sleep, wake up for Beacon check and Keep Alive according to the configured DTIM For example: the current waveform in...
  • Page 73: Appendix A Information Of Old Version Evk

    Appendix A Information of Old Version EVK DA16200 Module EVK Ver 9.0 Figure 59 shows the hardware configuration of the DA16200 Module Evaluation Kit (EVK) Ver 9.0. Figure 59: DA16200 Module EVK Ver 9.0 Hardware Configuration DA16200 EVK V9.0 has the following components:...
  • Page 74: Table 16: Gpio, Spi Selection Switch

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide SW5 – RTC_WAKE_UP switch Switch to wake up the board from sleep mode. SW6 – RTC_PWR_KEY switch Switch to turn the EVB ON and OFF. External VDD (3.3V) can be supplied to the P1 pins.
  • Page 75: Da16600 Module Evk Ver 4.0

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide When DA16200 EVK Pro is used for measuring current consumption, the P1 jumper must be removed. For more details on the DA16200 EVK see the DA16200 DEVKT Electric Schematic Ref. [11]. DA16600 Module EVK Ver 4.0 Figure 60 shows the hardware configuration of the DA16600 Module Evaluation Kit (EVK).
  • Page 76: Table 18: Description Of Switches

    Multipurpose switch. Switch SW7 Set this switch to off for normal operation. S2 – Factory Reset Factory reset button of DA16200 using GPIO_7. Button To enable this button, set Pin 2 of SW7 to on. WPS button of DA16200 using GPIO_6.
  • Page 77: Appendix B Da16200 Debug Interface Commands

    1 and 2 of SW5 to the ON position. To measure the current consumption of DA16200, remove the jumper on P2 and turn ON pin1 of SW5. To measure the current consumption of DA14531, remove the jumper on P1 and turn ON pin2 of SW5.
  • Page 78 UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide Use command help or ? (Question mark) to list the available commands and options. There is a function to display the console command history, and up to 5 commands can be saved. Use the following keys and characters to access the history function: ●...
  • Page 79: Root Commands

    (none) Move to the Root category factory (none) Factory reset for all settings (none) Display thread information DA16200 general function setting wizard (Easy Setup) setup (none) Make step-by-step configuration settings for elements such as SYSMODE, WI-FI, and NETWORK (none) Reboot...
  • Page 80: Network Commands

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide B.1.2 Network Commands To move to the network command category, type the command net. Table 20: Network Commands Command Parameter Description Display the ARP table of a network interface ● a: display the ARP table of every interface...
  • Page 81 UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide Display or set the basic network setting and status ● ifconfig: display basic network settings information ● ifconfig –a: display details of all network interfaces ● ifconfig [wlan0|wlan1]: display details of a network interface ●...
  • Page 82: Cli Command

    CLI (Command Line Interface) to control DA16200 Wi-Fi performance. The CLI in DA16200 can execute commands in the network command state. For example, in Station Mode the network information of DA16200 can be displayed using the cli status command while in network command state: [/DA16200] # net Switch to network command mode.
  • Page 83: Common Commands

    B.2.3 Common Commands Table 21: CLI Commands in Common Mode Parameter Description Get the main information on the interface being operated at DA16200 status (none) For example: [/DA16200/NET] # cli status Save all parameters modified through CLI, etc. in NVRAM...
  • Page 84 For example: [/DA16200/NET] # cli set_network 0 key_mgmt WPA_PSK ○ For DA16200 STA operation, access in the WPA PSK security mode * A profile needs to be generated with command add_network so that a profile can be set with command set_network (with no profile, 'FAIL') Get specific parameter values for a specific mode (STA, AP) (C) <mode>: 0(STA) | 1(AP)
  • Page 85: Sta Commands

    For example: [/DA16200/NET] # cli ap restart ○ Modify SSID of the interface of AP being operated For example: [/DA16200/NET] # cli set_network 1 pairwise TKIP For example: [/DA16200/NET] # cli ap restart ○ Modify the AP interface encryption mode to TKIP User Manual Revision 1.5...
  • Page 86 Modify the AP interface channel to 3 (242 MHz) For example: [/DA16200/NET] # cli ap_chan_switch 11 2462 ○ Modify the AP interface channel to 11 (2462 MHz) Get main information about the interface at DA16200 (C) For example: [/DA16200/NET] # cli ap_status state=ENABLED...
  • Page 87 <target> <target>: ap | sta <category> <category>: be(best-effort) | bk(background) | vi(video) | vo(voice) <AIFS> <CWmin> For example: [/DA16200/NET] # cli wmm_params ap be 3 15 63 10 wmm_params <CWmax> ○ For WMM AP's best-effort category, AIFS=3, CWmin=15, <Burst(AP) CWmax=63, and Burst=10...
  • Page 88 ○ ap_rts=2437 Enable/Disable use of Greenfield <value>: On: 1 | Off: 0 If Greenfield is on, DA16200 uses 11n HT mode only. In that case, 11b, 11g info. and STA access are not allowed Default: 0 (not used) greenfield <value>...
  • Page 89: Advanced Commands

    Run WPS PBC (Push Button Configuration) Run WPS PIN method <pin> pin code (any: generate a random code) wps_pin <pin> For example: [/DA16200/NET] # cli wps_pin 27833513 For example: [/DA16200/NET] # cli wps_pin any MROM Commands B.3.1 Common Commands Table 25: Common Commands in MROM...
  • Page 90: Sflash Commands

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide B.3.4 SFLASH Commands Table 28: SFLASH Commands in MROM Command Parameters Description Sflash access op : read, write, erase sflash [op][start][length] start : start address length : length B.3.5 Secure Commands Table 29: Secure Commands in MROM...
  • Page 91: Appendix C Sdk Memory Maps

    Appendix C SDK Memory Maps Introduction The DA16200/600 SDK provide two kinds of memory maps: an external SFLASH device and an internal 512 KB SRAM. This document describes the memory maps for the external SFLASH device and the internal SRAM.
  • Page 92: Sflash Memory Map

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide SFLASH Memory Map The DA16200 and the DA16600 FreeRTOS SDK support 4 MB SFLASH only. C.2.1 DA16200 Table 31: 4 MB SFLASH Map for the DA16200 Address Name Size (kB) 0x0000_0000 Bootloader 0x0002_2000...
  • Page 93: Sram Memory Map

    (*) Refer to the section 10.2 “Secure Socket Command” of Ref. for usage of “AT-CMD TLS Certificate Key #0 ~ #9” area. The DA16200/600 SDK contains a script to automatically select the SFLASH type. See section 5.7.1 for details on how the SFLASH is selected in Eclipse.
  • Page 94: Appendix D Troubleshooting

    If the SFDP information is not similar to the above, then the firmware images (both the FBOOT and the FRTOS images) must be downloaded again. See section 4.5. Recovery from Unresponsive Boot If the DA16200/600 does not boot and the serial command interface is unresponsive then access can be regained using the following steps: 1.
  • Page 95: Appendix E Country Codes

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide Appendix E Country Codes Table 33: Country Codes Code Country Code Country Code Country Code Country Andorra Ecuador Saint Lucia Reunion United Arab Estonia Liechtenstein Romania Emirates Afghanistan Egypt Sri Lanka Serbia Anguilla...
  • Page 96 UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide Code Country Code Country Code Country Code Country St. Vincent and Switzerland Iran New Zealand Grenadines Ivory Coast Iceland Oman Venezuela Chile Italy Panama Virgin Islands, US China Jamaica Peru Vietnam Colombia Jordan...
  • Page 97: Revision History

    UM-WI-056 DA16200 DA16600 FreeRTOS Getting Started Guide Revision History Revision Date Description 12-Jan-2023 Added installation using batch/shell script in section 5.3.1 Changed location of firmware image files in section Added build configuration (Release/Debug) in section Added how to move project location in section 5.7.2...
  • Page 98 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 certificates from our suppliers are available on request.
  • Page 99 Renesas disclaims responsibility for, and you will fully indemnify Renesas and its representatives against, any claims, damages, costs, losses, or liabilities arising out of your use of these resources. Renesas' products are provided only subject to Renesas' Terms and Conditions of Sale or other applicable terms agreed to in writing.

This manual is also suitable for:

Da16600

Table of Contents