Download Print this page
Renesas DA16200 Getting Started Manual
Renesas DA16200 Getting Started Manual

Renesas DA16200 Getting Started Manual

Highly integrated ultra-low power wi-fi system
Hide thumbs Also See for DA16200:

Advertisement

Quick Links

DA16200 DA16600 FreeRTOS Getting Started Guide
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 EVK and SDK to develop Wi-Fi
applications with the DA16200/DA16600 chipset.
Contents
1.
Terms and Definitions .................................................................................................................................... 6
2.
References ...................................................................................................................................................... 6
3.
Overview .......................................................................................................................................................... 7
4.
Evaluation Kit .................................................................................................................................................. 8
4.1
Introduction .............................................................................................................................................. 8
4.2
DA16200 EVB V11.0 ............................................................................................................................... 8
4.3
DA16600 EVB V6.0 ............................................................................................................................... 11
4.4
Setting Up EVB ..................................................................................................................................... 13
4.4.1
Configuring DA16200/DA16600 Serial Debug Interface ....................................................... 13
4.4.2
Configuring DA14531 Serial Debug Interface ....................................................................... 15
4.5
Programming Firmware Images ............................................................................................................ 16
4.5.1
Using uart_program_da16200 in Console Terminal .............................................................. 17
4.5.2
Using Macro Script of Tera Term ........................................................................................... 20
4.5.3
Using Multi-Download Tool .................................................................................................... 22
4.5.4
Changing Boot Index ............................................................................................................. 22
4.6
Provisioning Wi-Fi ................................................................................................................................. 23
4.6.1
Station Mode Setup ............................................................................................................... 23
4.6.2
Soft AP Mode Setup .............................................................................................................. 25
4.6.3
4.7
Configuring UART/SPI as AT Command Interface ............................................................................... 27
4.7.1
Configuration for Testing AT Command with EVB Only ........................................................ 27
4.7.2
Configuration for Testing AT Command with External MCU ................................................. 28
5.
Software Development Kit ........................................................................................................................... 31
5.1
Introduction ............................................................................................................................................ 31
5.2
System Requirements ........................................................................................................................... 31
2
5.3
studio IDE ........................................................................................................................... 31
5.4
5.5
Building Projects .................................................................................................................................... 37
5.5.1
Build Configurations ............................................................................................................... 39
5.5.2
Change Flash Configuration .................................................................................................. 41
5.5.3
How to Move Project Location ............................................................................................... 42
5.6
Debugging with J-Link Debug Probe ..................................................................................................... 43
5.6.1
Install J-Link ........................................................................................................................... 43
5.6.2
Connect J-Link ....................................................................................................................... 44
5.6.3
Run Debug Mode ................................................................................................................... 45
UM-WI-056 Revision 2.1
Sept 24, 2024
®
LE ...................................................................... 27
2
studio ................................................................... 33
CFR0012
Manual
Page 1
© 2024 Renesas Electronics

Advertisement

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: Table Of Contents

    DA16200 DA16600 FreeRTOS Getting Started Guide 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 EVK and SDK to develop Wi-Fi applications with the DA16200/DA16600 chipset.
  • Page 2 How to Add ARP Record ....................... 54 Throughput Test ............................ 55 6.3.1 Test Setup ..........................55 6.3.2 Throughput Test with DA16200/DA16600 as Client .............. 56 6.3.3 Throughput Test with DA16200/DA16600 as Server ............58 Current Test ............................59 Test Setup – KEYSIGHT 14585A ..................59 6.4.1...
  • Page 3 Figure 10. Configure DA16600 EVB for AT command - UART to FT2232H ............28 Figure 11. Configure DA16200 EVB for AT command - UART/SPI to external MCU ..........29 Figure 12. Configure DA16600 EVB for AT command - UART/SPI with external MCU ........30 Figure 13.
  • Page 4 Table 11. DA16600 EVB switch configuration for AT command - UART to FT2232H ...........28 Table 12. Configure DA16200 EVB switch for AT command - UART/SPI with external MCU ......29 Table 13. Configure DA16200 EVB connector for AT command - UART/SPI with external MCU ......29 Table 14.
  • Page 5 Table 33. SFlash commands in MROM ........................95 Table 34. Secure commands in MROM .........................95 Table 35. Additional commands in MROM ......................95 Table 36. 4 MB SFlash map for DA16200 ......................96 Table 37. 4 MB SFlash map for DA16600 ......................96 Table 38. Country codes ............................102 UM-WI-056 Revision 2.1...
  • 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, User Manual, Renesas Electronics. UM-WI-061, DA16200 DA16600 Getting Started with AWS-IoT Core, User Manual, Renesas Electronics.
  • Page 7: Overview

    After completing these steps, the EVK and development environment are ready for developing a complete Wi-Fi solution. If Wi-Fi solutions that are being developed are based on a host MCU that only uses the DA16200/DA16600 as a Wi-Fi communication interface with AT commands, a prebuilt firmware image can be used to develop that solution.
  • Page 8: Evaluation Kit

    DA16200 DA16600 FreeRTOS Getting Started Guide 4. Evaluation Kit Introduction The DA16200 and DA16600 EVKs are designed for you to test and develop Wi-Fi applications quickly. The EVK contains: • Evaluation board: The specific board with DA16200MOD or DA16600MOD installed.
  • Page 9 DA16200 DA16600 FreeRTOS Getting Started Guide Name Description J5 – GPIO External Pinout P3 – GND Pins Ground. CN6 – USB Port Provide UART0 for debug, and UART1/2 for test and SPI. J7 – JTAG Connector Connector for the IAR I-jet JTAG Debugger.
  • Page 10: Table 2. Da16200 Evb Switch Description

    The current consumption can be measured on the P2 jumper using current measuring equipment. See 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.4.2, and for DA16200 EVB, see Ref.
  • Page 11: Da16600 Evb V6.0

    DA16200 DA16600 FreeRTOS Getting Started Guide DA16600 EVB V6.0 Figure 2 shows the hardware configuration of the DA16600 EVB. Figure 2. DA16600 EVB hardware configuration DA16600 EVB has the following components: Table 3. Components on DA16600 EVB Name Description SW3 – GPIO Selective Switch GPIO selection switch, default ON.
  • Page 12 DA16200 DA16600 FreeRTOS Getting Started Guide Name Description J2 – External Pinout J3 – External Pinout P0_6 (Pin #11) should be connected to GPIOA9 (Pin #12) or GPIOA10 ® (Pin #14) externally for Wi-Fi and Bluetooth LE coexistence. P10 – Jumper to Test GPIO GPIO test pin.
  • Page 13: Setting Up Evb

    When DA16600 EVK Pro is used for measuring current consumption, remove jumpers P1 and P2 and set pins 1 and 2 of SW9 to the ON position. To measure the current consumption of DA16200, remove the jumper on P2 and turn ON pin 1 of SW9. To measure the current consumption of DA14531, remove the jumper on P1 and turn ON pin 2 of SW9.
  • Page 14: Figure 3. Windows - Com Ports

    None Stop Bits Flow Control (Hardware/Software) None Turn ON the EVB (SW6 on the DA16200 EVB or SW2 on the DA16600 EVB) and check for output. See the following example for reference. UM-WI-056 Revision 2.1 Page 14 Sept 24, 2024...
  • Page 15: Configuring Da14531 Serial Debug Interface

    >>> MAC address (sta0) : d4:3d:39:10:a2:48 >>> sta0 interface add OK >>> Start STA mode... [/DA16200] # Commands can be entered in the[/DA16200] prompt. A full list of the available debug interface commands can be found in Appendix B. 4.4.2...
  • Page 16: Programming Firmware Images

    NOTE The uart_program_da16200 in the following section can be used for debug console of the DA16200, but it cannot be used with DA14531. Other console programs like Tera Term or minicom cab be used for DA14531 debug console. Programming Firmware Images When using an EVB for the first time, the firmware must be updated to the latest version.
  • Page 17: Using Uart_Program_Da16200 In Console Terminal

    See Section 4.5.4 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/DA16600 using the Y-Modem file transfer protocol. 4.5.1 Using uart_program_da16200 in Console Terminal This tool is a prebuilt console program which can be used in Windows, Linux, or Python environment.
  • Page 18 Ready for download. Download file 1: DA16200_FRTOS-GEN01-01-c4ca8087e8-006537.img : 100.00% : 72.76s Done successfully. 6. Confirm logs from the DA16200/DA16600 for checking the DA16200/DA16600 works properly as follows: a. Type uart_program_da16200(.exe). b. Select number in the list of COM ports and click Enter.
  • Page 19 DA16200 DA16600 FreeRTOS Getting Started Guide d:\download>uart_program_da16200.exe uart_program_da16200 Version 1.0.5 0. COM75 - USB Serial Port (COM75) 1. COM76 - USB Serial Port (COM76) Please enter a number from the list of your COM port and click Enter. --> 0 Selected COM port = COM75 - USB Serial Port (COM75) Entering console mode...
  • Page 20: Using Macro Script Of Tera Term

    SDK package or each image folder of image package. The serial port should be set up as shown in Figure 4. The lower numbered COM port should be selected for DA16200 debug interface. Figure 4. Serial port setup in Tera Term UM-WI-056 Revision 2.1...
  • Page 21: Figure 5. Open Macro File

    DA16200 DA16600 FreeRTOS Getting Started Guide The macro can be run as follows. 1. When Tera Term is connected to the DA16200/DA16600, open the Control tab, and select the Macro menu item. 2. When the MACRO: Open Macro file selection window opens, navigate to the directory where the firmware images are stored and select the .ttl file as shown in...
  • Page 22: Using Multi-Download Tool

    DA16200 DA16600 FreeRTOS Getting Started Guide Figure 7. Programming FRTOS image 5. DA16200 reboots automatically after all images are programmed. 4.5.3 Using Multi-Download Tool The Multi-Download Tool can be used to program firmware images to multiple devices at the same time in for details.
  • Page 23: Provisioning Wi-Fi

    Provisioning Wi-Fi 4.6.1 Station Mode Setup The Wi-Fi functions of the DA16200/DA16600 can easily be configured by running the Easy Setup Wi-Fi configuration wizard. To configure the DA16200/DA16600 to operate in Station Mode, open the DA16200 or DA16600 debug console...
  • Page 24 >>> 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 25: Soft Ap Mode Setup

    Soft AP Mode Setup Soft AP mode allows the DA16200 to be provisioned through the Wi-Fi interface using a mobile application. Set up 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.
  • Page 26 DA16200 DA16600 FreeRTOS Getting Started Guide configuration. 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 27: Wi-Fi Provisioning Setup Using Bluetooth

    MCU Wake-up on AT Command GPIOA11 (MCU Wake-up) 4.7.1 Configuration for Testing AT Command with EVB Only Both the DA16200 and DA16600 EVBs include an FT2232H which is used to test AT command over the UART interface. Figure 9 Table 10 show how to configure the DA16200 EVB for AT command processing over the UART.
  • Page 28: Configuration For Testing At Command With External Mcu

    4.7.2 Configuration for Testing AT Command with External MCU Both the DA16200 and DA16600 EVBs have external pins which allows you to test AT command over the UART or SPI interface using an external MCU. Figure Table 12,...
  • Page 29: Figure 11. Configure Da16200 Evb For At Command - Uart/Spi To External Mcu

    DA16200 DA16600 FreeRTOS Getting Started Guide Figure 11. Configure DA16200 EVB for AT command - UART/SPI to external MCU Table 12. Configure DA16200 EVB switch for AT command - UART/SPI with external MCU SW10 Don’t care Don’t care All OFF...
  • Page 30: Figure 12. Configure Da16600 Evb For At Command - Uart/Spi With External Mcu

    DA16200 DA16600 FreeRTOS Getting Started Guide Figure 12. Configure DA16600 EVB for AT command - UART/SPI with external MCU Table 14. Configure DA16600 EVB switch for AT command - UART/SPI with external MCU SW10 All ON All OFF All OFF...
  • Page 31: Software Development Kit

    DA16200 DA16600 FreeRTOS Getting Started Guide 5. Software Development Kit Introduction Wi-Fi applications can be developed for the DA16200 using the DA16200 FreeRTOS Software Development Kit (SDK) and the Renesas e studio IDE on either a Windows 10 or Linux based development system.
  • Page 32: Figure 14. Run E

    DA16200 DA16600 FreeRTOS Getting Started Guide Figure 14. Run e studio installer NOTE The e studio Installer automatically installs the required JRE and embedded development extensions required by the DA16200/DA16600 FreeRTOS SDK. Figure 15. e studio setup Select the DA family in Device Families. The GCC toolchain is selected by default as GNU ARM ®...
  • Page 33: Importing Da16200 Freertos Sdk Project Into E

    Download the DA16200 FreeRTOS SDK from the official website. Go to the Renesas website (https://www.renesas.com/us/en/products/wireless-connectivity/wi-fi/low-power-wi-fi) and scroll down to the Software Downloads section. Find “DA16200 DA16600 FreeRTOS SDK” or type it in the search box, and then select and download the firmware.
  • Page 34: Figure 18. Select Folder To Import Sdk Project Into E Studio Ide

    DA16200 DA16600 FreeRTOS Getting Started Guide NOTE Windows 10 has a path length limitation of 260 characters. The <sdk_root_directory> path length must be less than 70 characters. 2. In the Import dialog box, select the Select SDK root directory and click the Browse button.
  • Page 35: Figure 19. Import Da16200/Da16600 Project To E Studio Ide

    DA16200 DA16600 FreeRTOS Getting Started Guide 3. Various projects appear in the Projects list. Select the da16200 or da16600 project. The second project to select is the SDKJFlash project which provides an absolute path for certain scripts to use and click Next.
  • Page 36: Figure 21. Dialog Sdk Project

    • Example projects o <sdk_root_directory>/apps/common/examples/Crypto/ o <sdk_root_directory>/apps/common/examples/DPM/ o <sdk_root_directory>/apps/common/examples/ETC/ o <sdk_root_directory>/apps/common/examples/Network/ o <sdk_root_directory>/apps/common/examples/Periphial/ ▪ The example project directories have a similar structure, containing a project folder for either the DA16200 or DA16600: UM-WI-056 Revision 2.1 Page 36 Sept 24, 2024 CFR0012...
  • Page 37: Building Projects

    Building Projects 1. When the target projects are imported, it appears in the e studio Project Explorer. Build the da16200/da16600project by right-clicking on the imported project and select Build Project. Figure 22. e studio project explorer Figure 23. Build project NOTE The SDK building project process may take several minutes depending on your computer.
  • Page 38: Figure 24. Generate Configuration

    DA16200 DA16600 FreeRTOS Getting Started Guide Figure 24. Generate configuration 3. If the pop-up window is closed without selecting and generating a configuration file, a warning pop-up is displayed. Figure 25. Generate configuration warning pop-up 4. This step cannot be skipped due to a flash configuration file is required to build the firmware. When the build is complete, the following output is displayed in the e studio console window.
  • Page 39: Build Configurations

    DA16200 DA16600 FreeRTOS Getting Started Guide Figure 26. 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 40: Figure 27. Da16200 Build Configurations

    DA16200 DA16600 FreeRTOS Getting Started Guide Figure 27. DA16200 build configurations ▪ DA16600 Build Configurations • Debug o Debug-da16600-mod: DA16600 module type Debug Build (default) • Release o Release-da16600-mod: DA16600 module type Release Build UM-WI-056 Revision 2.1 Page 40 Sept 24, 2024...
  • Page 41: Change Flash Configuration

    DA16200 DA16600 FreeRTOS Getting Started Guide Figure 28. DA16600 build configurations 5.5.2 Change Flash Configuration The flash configuration can be changed by running the Generate Configuration tool which is provided by the SDK. To use the Generate Configuration tool, import Launch Configurations.
  • Page 42: How To Move Project Location

    DA16200 DA16600 FreeRTOS Getting Started Guide 3. Select Generate Configuration launch file and click Finish. Figure 30. Import generate configuration 4. Generate Configuration can be run by going to the Run > External Tools menu and selecting either Generate Configuration For Windows or Generate Configuration For Linux.
  • Page 43: Debugging With J-Link Debug Probe

    Debugging with J-Link Debug Probe 5.6.1 Install J-Link To debug the DA16200/DA16600, a J-Link debug probe and the J-Link software are 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

    The DA16600 EVB (not DA16200 EVB) has a built-in JTAG interface which can be used for either DA16200 or DA14531. It is available for DA14531 when the SW4 - Pin 3 and Pin 4 are on. To use it for the DA16200, complete the following.
  • Page 45: Run Debug Mode

    1. To debug an application, right-click on the project in the project explorer and select Debug As > Debug Configurations. Figure 36. Run debug mode 2. Open the Renesas GDB Hardware Debugging entry from the list and select one of debugging configurations and click Debug. UM-WI-056 Revision 2.1...
  • Page 46: Programming Firmware Images In E Studio

    DA16200 DA16600 FreeRTOS Getting Started Guide Figure 37. Select debug configuration NOTE The current FreeRTOS SDK does not support automatic downloading of the firmware image into Flash through the studio debug interface. Therefore, the firmware must be loaded into SFlash before starting to debug the application.
  • Page 47: Figure 39. Browse Folder

    DA16200 DA16600 FreeRTOS Getting Started Guide Figure 39. Browse folder 3. Click Select Folder and Select launch configurations. Figure 40. Select launch configurations 4. Click Finish and Confirm launch configurations in Run > External Tools menu. UM-WI-056 Revision 2.1 Page 47...
  • Page 48: Programming Firmware Images Over Serial Interface

    DA16200 DA16600 FreeRTOS Getting Started Guide Figure 41. Launch configurations for programming firmware images NOTE ▪ SDKJFlash project must be imported before programming (see Figure 20). ▪ Python 3.8 must be installed to use jlink_xxx_py scripts. ▪ For Linux OS •...
  • Page 49: Figure 42. Select Number From Serial Interface List

    There is a case that the console interface is disabled when the firmware image is built in release build configuration or when the DA16200/DA16600 is in DPM low power mode. To program the firmware image for this case, complete the following steps. See Appendix D.1.2...
  • Page 50: Programming Firmware Images Using Segger J-Link

    DA16200 DA16600 FreeRTOS Getting Started Guide 2. Programing firmware image over serial interface. See Figure 44. a. Turn off a device. b. Run uart_console_win (linux, py) launch in Run > External Tools menu. c. Select port number and enter emode for running emergency mode.
  • Page 51: Migrating Ide From Eclipse To E Studio For Old Sdks

    DA16200 DA16600 FreeRTOS Getting Started Guide Figure 45. Run J-Link launch NOTE ▪ For Linux OS • If the following error occurs when running jlink_xxx_py, install the tkinter module for python. • Install tkinter module using command in the terminal as follows: o sudo apt-get install python3-tk Other methods for programming the firmware images are described in Section 4.5.
  • Page 52: Test Procedures

    Figure The DA16200 must be connected to the AP through Wi-Fi, and the laptop must be connected to the AP with an Ethernet cable. After the DA16200/DA16600 is configured, it goes into DPM low power mode and only wakes up from the low power mode when unicast packets are received.
  • Page 53: Perform Ping Test With Dpm Enabled

    Approximate round trip times in milli-seconds: Minimum = 14 ms, Maximum = 81 ms, Average = 34 ms For each ping packet sent, the DA16200/DA16600 wakes up and prints a message on the serial terminal and then returns to the low power mode: Wake-up source is 0x82 >>>...
  • Page 54: How To Add Arp Record

    Dedicated Wi-Fi 3. Use the interface name of 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 55: Throughput Test

    255.255.255.255 ff-ff-ff-ff-ff-ff static The IP address (192.168.0.66) of DA16200 is now added to ARP table as a static type. 4. Use the command arp -d or netsh interface ip delete arpcache to initialize the ARP cache. Throughput Test This section describes how to perform the throughput test using the TCP client/server protocol. DA16200 has iperf command for measuring throughput performance.
  • Page 56: Throughput Test With Da16200/Da16600 As Client

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

    Server listening on TCP port 5001 TCP window size: 208 kB (default) The iPerf is now running as a server on your laptop and waiting for the DA16200/DA16600 to start the client test app. 5. In the DA16200/DA16600 console window, switch to “NET” command mode and type “iperf -I wlan0 -c 192.168.0.103 -t 5 -i 1”...
  • Page 58: Throughput Test With Da16200/Da16600 As Server

    6.3.3 Throughput Test with DA16200/DA16600 as Server To set up the throughput test with the DA16200/DA16600 operating as a server and the laptop operating as a client, complete the following steps. 1. Power up the DA16200/DA16600 and check the assigned IP address in the DA16200/DA16600 console...
  • Page 59: Current Test

    6.4.2 Test Setup with EVK Pro Board EVK Pro board is a simple evaluation board without any additional devices to measure current. Figure 50. Current test environment with EVK Pro for DA16200 UM-WI-056 Revision 2.1 Page 59 Sept 24, 2024...
  • Page 60: Figure 51. Set Up Da16200 Evb Jumper

    1. To measure current with DA16200 EVK Pro board, connect the two boards with the PCI connector. 2. Open the jumpers (P2) of the power line on the DA16200 EVB to disconnect the USB power and source from the Pro board only, as shown in Figure 51.
  • Page 61: Figure 54. Da16200/Da16600 Evk Pro Board (504-02-A)

    ▪ PCI Connector: a connector on which to install the DA16200/DA16600 EVB board. ▪ UART MCU: provides communication between DA16200/DA16600 EVK Pro board and personal computer. It also transfers the current measurement samples to the personal computer. ▪ Current Sense Circuit: monitors the current of the DA16200/DA16600 EVB.
  • Page 62: Figure 55. Select Virtual Com Port

    Offset (mA) field is zero. Apply the correct voltage as configured in the Power Meter LDO (typically, it is 3.3 V). The Calibration offset (mA) is filled automatically with a calculated value. This value is good enough to measure with ±2% accuracy. Check the multiplication factor, and for DA16200/DA16600, it should be 155. UM-WI-056 Revision 2.1...
  • Page 63: Figure 58. Power Profiler Chart Settings

    DA16200 DA16600 FreeRTOS Getting Started Guide You can set a maximum scale for the waveform window optionally since there are large peaks on wake up from sleep (charging capacitors) generally. Thus, the useful part of the signal is compressed to a very small area. To...
  • Page 64: Figure 60. Measuring Consumption By Using Chart Controls

    Manual Calibration For the most accurate measurement, complete the following steps. 1. Remove the daughterboard, for example, the load, by physically disconnecting the DA16200/DA16600 EVB from the motherboard. 2. In the main window of the Power Profiler, click Config and temporarily set the Calibration Offset (mA) field...
  • Page 65: Measure Current In Sleep Mode 1

    Measure Current in Sleep Mode 2 To measure current in Sleep mode 2, use the CLI commands: 1. Power on the EVB by setting RTC_PWR_KEY to the ON position (SW6 on the DA16200 EVB or SW2 on the DA16600 EVB).
  • Page 66: Measure Current In Dpm Low Power Mode

    Measure Current in DPM Low Power Mode ▪ Enable DPM mode as described in Section 6.4.7. • When running the DA16200 with DPM enabled, DA16200 runs sleep 3 state, wake up for Beacon check, and Keep Alive according to the configured DTIM. For example:...
  • Page 67 : 06h 00m 00s Renewal Time : 05h 00m 00s NOTE When the DA16200/DA16600 is in DPM low power mode, user input is not accepted by the debug terminal. To reenable user input, see Section 6.4.7.3. 6.4.7.3 Hold/Disable DPM Mode When the DA16200/DA16600 is in DPM low power mode, user input is not accepted by the debug terminal.
  • Page 68 DA16200 DA16600 FreeRTOS Getting Started Guide 1. Copy the string dpm hold to the clipboard. a. For example, open Notepad, type dpm hold, and then copy the command string. 2. Use RTC_PWR_KEY to power off (move to OFF position). 3. Use RTC_PWR_KEY to power on (move to ON position).
  • Page 69 5. When the DPM Hold command is successfully applied, debug commands such as setup are available again. 6. DPM mode can be disabled by running the dpm off in the command prompt. The DA16200/DA16600 reboots, and the command prompt is available again. [/DA16200] # dpm off...
  • Page 70 DA16200 DA16600 FreeRTOS Getting Started Guide -- DHCP Client WLAN0: CHK(8) -- DHCP Client WLAN0: BOUND(10) Assigned addr : 192.168.219.105 netmask : 255.255.255.0 gateway : 192.168.219.1 DNS addr : 61.41.153.2 DHCP Server IP : 192.168.219.1 Lease Time : 06h 00m 00s...
  • Page 71: Appendix A Old Versions Of Evb

    DA16200 DA16600 FreeRTOS Getting Started Guide Appendix A Old Versions of EVB A.1 DA16200 EVB V10.0 Figure 64 shows the hardware configuration of the DA16200 EVB. Figure 64. DA16200 EVB hardware configuration DA16200 EVB V10.0 has the following components: Table 16. Components on DA16200 EVB...
  • Page 72: Table 17. Da16200 Evb Switch Description

    DA16200 DA16600 FreeRTOS Getting Started Guide Name Description SW6 – RTC_PWR_KEY Switch to turn the EVB ON and OFF. Switch P6 – Jumpers for Pin for connecting the external control signal with MCU. RTC_WAKE_UP1 For normal operation, this jumper should be shorted.
  • Page 73: A.2 Da16200 Evb V9.0

    The current consumption can be measured on the P2 jumper with current measuring equipment. See Section for details on how to set up the test. When DA16200 EVK Pro is used for measuring current consumption, the P1 jumper should be removed. For more information on DA16200 EVK Pro, see Section 6.4.2...
  • Page 74: Table 18. Components On Da16200 Evb

    DA16200 DA16600 FreeRTOS Getting Started Guide Table 18. Components on DA16200 EVB Name Description DA16200MOD-AACWA32 Renesas Wi-Fi Module. Board Information Board version and manufacturing date. FH2232H Block USB to UART/SPI interfaces. CN6 – USB Port Provide UART0 for debug and UART1/2 for test and SPI.
  • Page 75: A.3 Da16600 Evb V5.0

    The current consumption can be measured on the jumper P2 with current measuring equipment. See Section for details on how to set up the test. When DA16200 EVK Pro Board is used for measuring current consumption, the P1 jumper must be removed. For more details on the DA16200 EVB, see Ref. [9].
  • Page 76: Table 20. Components On Da16600 Evb

    DA16200 DA16600 FreeRTOS Getting Started Guide Table 20. Components on DA16600 EVB Name Description Renesas Wi-Fi and Bluetooth ® DA16600MOD-AACWA32 LE Module. Board Information Board version and manufacturing date. CN1 – USB Port (Wi-Fi) Provide UART0 for debug and UART1 for test.
  • Page 77 DA16200 DA16600 FreeRTOS Getting Started Guide Name Description J2 – External Pinout GPIO connector J3 – External Pinout GPIO connector P0_6 (Pin #11) should be connected to GPIOA9 (Pin #12) or GPIOA10 (Pin #14) externally for BLE-Wi-Fi COEX. UM-WI-056 Revision 2.1...
  • Page 78: Table 21. Da16600 Evb Switch Description

    P1 and P2 and set pins 1 and 2 of SW9 to the ON position. To measure the current consumption of DA16200, remove the jumper on P2 and turn ON pin 1 of SW9. To measure the current consumption of DA14531, remove the jumper on P1 and turn ON pin 2 of SW9. The current consumption of the DA16200 and the DA14531 can be measured simultaneously.
  • Page 79: A.4 Da16600 Evb V4.0

    Switch to wake up the board from sleep mode. SW2 - RTC Power Key Switch to turn the EVB on and off. P2 – Jumper Jumper to measure current used by the Wi-Fi device (DA16200). For normal operation, this jumper must be shorted. ® P1 - Jumper Jumper to measure current used by the Bluetooth LE device (DA16600).
  • Page 80: Table 23. Description Of Switches

    Multipurpose switch. Set this switch to off for normal operation. S2 – Factory Reset Button Factory Reset button of DA16200 using GPIO_7. To enable this button, set Pin 2 of SW7 to On. S1 – WPS Button WPS button of DA16200 using GPIO_6.
  • Page 81: A.5 Configure Da16600 Evb V4.0 To Use At Commands Using Uart2

    P1 and P2 and set pins 1 and 2 of SW5 to the ON position. To measure the current consumption of DA16200, remove the jumper on P2 and turn ON pin 1 of SW5. To measure the current consumption of DA14531, remove the jumper on P1 and turn ON pin 2 of SW5. The current consumption of the DA16200 and the DA14531 can be measured simultaneously.
  • Page 82: Connect Uart2 To Ft2232H

    DA16200 DA16600 FreeRTOS Getting Started Guide Figure 68. SW3 and SW7 UART1 connection A.5.2 Connect UART2 to FT2232H In the DA16600 firmware image, GPIOC6 and GPIOC7 are set as UART2 for AT commands by default. The GPIOC6 and GPIOC7 are connected with pin 2 and pin 4 of J2 connector, and SW3 is connected with FT2232H.
  • Page 83: Figure 70. Modification And Connection Of Evb V4.0

    DA16200 DA16600 FreeRTOS Getting Started Guide Figure 70. Modification and connection of EVB V4.0 UM-WI-056 Revision 2.1 Page 83 Sept 24, 2024 CFR0012...
  • Page 84: Appendix B Da16200 Debug Interface Commands

    DA16200 DA16600 FreeRTOS Getting Started Guide Appendix B DA16200 Debug Interface Commands The DA16200 has various console commands to operate its functions. The UART0 interface connects the console with a serial terminal tool. Some commands in the following sections may be disabled according to the SDK’s features configuration.
  • Page 85: Network Commands

    DA16200 DA16600 FreeRTOS Getting Started Guide Command Parameters Description (none) Display SDK version and system information. time [option] Display or set the current time. time set [YYYY-MM-DD] [hh:mm:ss]: set date and time. time zone [-hh:mm]: set time zone. time boot: display booting time.
  • Page 86 DA16200 DA16600 FreeRTOS Getting Started Guide Command Parameter Description ▪ dns <IP Address>: lease IP DNS server address setting. ▪ response_delay <Integer>: time of response delay. ▪ status: display DHCP server status. ▪ lease [0|1]: display IP lease table. Display tables including un-allotted tables when flag = 1.
  • Page 87: B.2 Cli Command

    (CLI) 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.
  • Page 88: Common Commands

    Execute a motion in a certain mode (STA access, AP operation) (D). ▪ <mode> STA: 0 | AP: 1 For example: [/DA16200/NET] # cli select_network 0 • Implement STA access * For a certain mode through the select_network CLI, the following tasks need to be carried out first: •...
  • Page 89 • For DA16200 AP operation, SSID= DA16200_AP setting. For example: [/DA16200/NET] # cli set_network 1 beacon_int 200 • For DA16200 AP operation, Beacon interval 20 ms setting. For example: [/DA16200/NET] # cli set_network 0 key_mgmt WPA_PSK • For DA16200 STA operation, access in the WPA PSK security mode.
  • Page 90: Sta Commands

    • AP interface initiating (If it is being operated, 'FAIL'). For example: [/DA16200/NET] # cli ap stop • AP interface closing (If not being operated, 'FAIL'). For example: [/DA16200/NET] # cli set_network 1 ssid ‘DA16200_AP2’ For example: [/DA16200/NET] # cli ap restart •...
  • Page 91 • 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). ap_status (none) Get the main information about the interface in DA16200 (C). For example: [/DA16200/NET] # cli ap_status state=ENABLED phy=fc9k_phy0...
  • Page 92 Default: Off For example: [/DA16200/NET] # cli wmm_ps_enabled 1 • Use the WMM-PS function. wmm_params <target> <category> <AIFS> Set up details of DA16200 AP or STA's certain category WMM <CWmin> <CWmax> <Burst(AP) parameters (B). or TxOP Limit(STA)> <target>: ap | sta <category>: be (best-effort) | bk (background) | vi (video) | vo...
  • Page 93 STA every 30 seconds and check ACK receipts (A). <value>: On: 1 | Off: 0 ▪ On: if the STA accessed to DA16200 AP interface is out of coverage or closed abnormally, disconnection occurs after the ‘ap_max_inactivity timeout’ passes. ▪...
  • Page 94: Advanced Commands

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

    DA16200 DA16600 FreeRTOS Getting Started Guide Command Parameters Description • image_format: format of image. This is optional parameter and “bin” is only the available value. CRC is checked if it is used. Do not use for FBOOT firmware image. For example:...
  • Page 96: Appendix C Sdk Memory Maps

    This section describes the memory maps for the external SFlash device and the internal SRAM, and how to change the SFlash device and adjust the SRAM map used in the SDK. The DA16200/DA16600 SDK provides two types of memory maps: an external SFlash device and an internal 512 kB SRAM.
  • Page 97 AT-CMD TLS Certificate Key #0 ~ #9 NOTE for usage of “AT-CMD TLS Certificate Key #0 ~ #9” area. See Ref. The DA16200/DA16600 SDK contains a script to automatically select the SFlash type. See Section 5.5.2 on how the SFlash is selected in e studio.
  • Page 98: C.2 Sram Map

    DA16200 DA16600 FreeRTOS Getting Started Guide C.2 SRAM Map In the FreeRTOS SDK, the overall memory map is organized as shown in Figure Figure 71. System memory map UM-WI-056 Revision 2.1 Page 98 Sept 24, 2024 CFR0012...
  • Page 99: Appendix D Troubleshooting

    D.1.2 Recovery from Unresponsive Boot If the DA16200/DA16600 does not boot and the serial command interface is unresponsive, then access can be recovered by following steps: 1. Copy uart_program_da16200 to the folder which has FBOOT and FRTOS images.
  • Page 100 DA16200 DA16600 FreeRTOS Getting Started Guide 10. Select number of FBOOT image in lists which shows all images in the folder. 11. Programming is done automatically. 12. Input y for more programming. 13. Input address for FRTOS image (default address of FRTOS #0: 23000, see C.1.1...
  • Page 101 DA16200 DA16600 FreeRTOS Getting Started Guide Entering download mode... 2023-07-31 16:54:14.624 Ready for download. Download file 1: DA16200_FRTOS-GEN01-01-c4ca8087e8-006537.img : 100.00% : 72.76s 2023-07-31 16:55:28.515 Done successfully. Will you continue to download? y or n: n Entering console mode... Ready for console mode. Input anything.
  • Page 102: Appendix E Country Codes

    DA16200 DA16600 FreeRTOS Getting Started Guide Appendix E Country Codes Table 38. 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 Spain...
  • Page 103 DA16200 DA16600 FreeRTOS Getting Started Guide Code Country Code Country Code Country Code Country United Bhutan Hungary Nigeria Kingdom Belarus Indonesia Nicaragua Belize Ireland Netherlands Uruguay Canada Israel Norway Uzbekistan Central Africa India Nepal Vatican City St. Vincent and Switzerland...
  • Page 104: Revision History

    DA16200 DA16600 FreeRTOS Getting Started Guide 7. Revision History Revision Date Description ▪ Sept 24, 2024 Updated the description of Download Commands in Appendix B.3.3. ▪ Updated the Jumper P2 usage on Table 1. ▪ Updated the description of P2 setup in 6.4.2.
  • Page 105 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 106: Corporate Headquarters

    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. No use of any Renesas resources expands or otherwise alters any applicable warranties or warranty disclaimers for these products.

This manual is also suitable for:

Da16600