Dialog Semiconductor DA16 Series Getting Started Manual

Dialog Semiconductor DA16 Series Getting Started Manual

Freertos
Table of Contents

Advertisement

Quick Links

User Manual
DA16xxx FreeRTOS Getting
Started Guide
UM-WI-056
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. This document is a DA16200 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 chipset.

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Dialog Semiconductor DA16 Series

  • Page 1 User Manual DA16xxx FreeRTOS Getting Started Guide UM-WI-056 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. This document is a DA16200 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 chipset.
  • Page 2: Table Of Contents

    Contents Terms and Definitions ........................6 References ............................. 6 Overview............................7 Evaluation Kits ..........................8 Introduction ........................... 8 DA16200 Module EVK Ver 9.0_210205 ................8 DA16600 Module EVK Ver 4.0_201116 ................10 Connecting to the EVKs ...................... 13 Configuring the DA16200/600 Serial Debug Interface ........13 Configuring the DA14531 Serial Debug Interface (DA16600 EVK only) .....
  • Page 3 SRAM Memory Map ......................74 Appendix D Troubleshooting ......................75 Boot Failure ......................... 75 D.1.1 Check SFDP ......................75 Appendix E Country Codes ......................77 Revision History ..........................79 User Manual Revision 1.0 27-Oct-2021 CFR0012 3 of 80 © 2021 Dialog Semiconductor...
  • Page 4 Table 7: FW Image loady Commands ....................17 Table 8: DA16200 Module External Connector Mapping for J-LINK 20Pin ........39 Table 9: Root Commands........................62 Table 10: Network Commands ......................63 User Manual Revision 1.0 27-Oct-2021 CFR0012 4 of 80 © 2021 Dialog Semiconductor...
  • Page 5 Table 19: Secure Commands in MROM ..................... 72 Table 20: Additional Commands in MROM ..................72 Table 21: 4-MB SFLASH Memory Map ....................74 Table 22: Country Codes........................77 User Manual Revision 1.0 27-Oct-2021 CFR0012 5 of 80 © 2021 Dialog Semiconductor...
  • Page 6: Terms And Definitions

    DA16200, Datasheet, Dialog Semiconductor UM-WI-046, DA16200, FreeRTOS SDK Programmer Guide, User Manual, Dialog Semiconductor UM-WI-xxx, DA16200, Example Application Guide, User Manual, Dialog Semiconductor UM-B-114, DA14531, Devkit Pro Hardware, User Manual, Dialog Semiconductor UM-WI-012, DA16200 SPI SFlash Downloader, User Manual, Dialog Semiconductor...
  • Page 7: Overview

    For more details on how to use the SDK to develop an application, see the following documents: ● UM-WI-046 DA16200 FreeRTOS SDK Programmer Guide ● UM-WI-xxx DA16200 Example Application Guide User Manual Revision 1.0 27-Oct-2021 CFR0012 7 of 80 © 2021 Dialog Semiconductor...
  • Page 8: Evaluation Kits

    Dialogs Wi-Fi Module. Board information Board version and manufacturing date. FH2232H block USB to UART/SPI interfaces. CN6 – USB port Provides UART0 for debug, UART1/2 for test and SPI. User Manual Revision 1.0 27-Oct-2021 CFR0012 8 of 80 © 2021 Dialog Semiconductor...
  • Page 9: Table 2: Gpio, Spi Selection Switch

    Table 2: GPIO, SPI Selection Switch Relevant Switch GPIO GPIOA6 Connects FT2232H to SPI_CSB GPIOA7 Connects FT2232H to SPI_CLK Factory Reset GPIOA8 Connects FT2232H to SPI_MISO Ext Con (J3/J4) only User Manual Revision 1.0 27-Oct-2021 CFR0012 9 of 80 © 2021 Dialog Semiconductor...
  • Page 10: Da16600 Module Evk Ver 4.0_201116

    Manual [9]. DA16600 Module EVK Ver 4.0_201116 Figure 2 shows the hardware configuration of the DA16600 Module Evaluation Kit (EVK). Figure 2: DA16600 Module EVK Hardware Configuration User Manual Revision 1.0 27-Oct-2021 CFR0012 10 of 80 © 2021 Dialog Semiconductor...
  • Page 11: Table 3: Components On Da16600 Evb

    To enable this button, set Pin 1 of SW7 to on. S3 – DA14351 Reset Reset button of DA14531 in test mode. Button GPIO connector. Connector J2 User Manual Revision 1.0 27-Oct-2021 CFR0012 11 of 80 © 2021 Dialog Semiconductor...
  • Page 12: Table 4: Description Of Switches

    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 User Manual Revision 1.0 27-Oct-2021 CFR0012 12 of 80 © 2021 Dialog Semiconductor...
  • Page 13: Connecting To The Evks

    A serial terminal application that supports Y-Modem is required to download the firmware to the DA16200. For Windows, the Tera Term terminal emulator program is recommended and can be downloaded from: https://ttssh2.osdn.jp. User Manual Revision 1.0 27-Oct-2021 CFR0012 13 of 80 © 2021 Dialog Semiconductor...
  • Page 14: Configuring The Da14531 Serial Debug Interface (Da16600 Evk Only)

    The DA16600 EVK contains the DA14531 BLE device which is used for provisioning of the DA16600 Wi-Fi interface using a mobile application. User Manual Revision 1.0 27-Oct-2021 CFR0012 14 of 80 © 2021 Dialog Semiconductor...
  • Page 15: Updating The Firmware

    There are two firmware images for the DA16200: DA16200_FBOOT-GEN01-01-834dea5b8_W25Q32JW.img DA16200_FRTOS-GEN01-01-866facc56-000000.img There are three firmware images for the DA16600 since it also requires the DA14531 firmware image: DA16600_FBOOT-GEN01-01-834dea5b8_AT25SL321.img DA16600_FBOOT-GEN01-01-834dea5b8_W25Q32JW.img DA16600_FRTOS-GEN01-01-866facc56-000000.img DA14531_1/da14531_multi_part_proxr.img User Manual Revision 1.0 27-Oct-2021 CFR0012 15 of 80 © 2021 Dialog Semiconductor...
  • Page 16: Table 6: Serial Flash Memory Map

    (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.0 27-Oct-2021 CFR0012 16 of 80 © 2021 Dialog Semiconductor...
  • Page 17: Firmware Update Using Commands (Windows/Linux)

    For Linux minicom: Press {Ctrl+A}+S and select ymodem from the menu. Navigate to where the firmware image is stored, choose the required firmware image and start the download. User Manual Revision 1.0 27-Oct-2021 CFR0012 17 of 80 © 2021 Dialog Semiconductor...
  • Page 18 FACTORY RESET [N/y/?] Y Enter Y to perform a factory reset. Start Factory-Reset ... Rebooting..Wakeup source is 0x0 [dpm_init_retmemory] DPM INIT CONFIGURATION(1) ****************************************************** DA16200 SDK Information * --------------------------------------------------- User Manual Revision 1.0 27-Oct-2021 CFR0012 18 of 80 © 2021 Dialog Semiconductor...
  • Page 19: Firmware Update Using The Terra Term Script (Windows Only)

    Figure 4). Figure 4. Open the Macro File 2. After opening the macro file, the DA16200/600 will reset, and the BOOT firmware image is downloaded (see Figure User Manual Revision 1.0 27-Oct-2021 CFR0012 19 of 80 © 2021 Dialog Semiconductor...
  • Page 20: Multi-Download Tool

    Multi-Download Tool can be used to download the firmware to multiple devices at the same time. Please see the UM-WI-039 DA16200 DA16600 Multi Downloader Tool User Manual for details. User Manual Revision 1.0 27-Oct-2021 CFR0012 20 of 80 © 2021 Dialog Semiconductor...
  • Page 21: Changing The Boot Index

    UK US UY UZ VA VC VE VI VN VU WF WS YE YT ZA ZW ALL COUNTRY CODE ? [Quit] (Default KR) : US Enter the country code. SYSMODE(WLAN MODE) ? 1. Station User Manual Revision 1.0 27-Oct-2021 CFR0012 21 of 80 © 2021 Dialog Semiconductor...
  • Page 22 * - SDK Version : V3.1.3.0 GEN * - F/W Version : FRTOS-GEN01-01-15129-000000 * - F/W Build Time : Aug 26 2021 22:58:01 * - Boot Index User Manual Revision 1.0 27-Oct-2021 CFR0012 22 of 80 © 2021 Dialog Semiconductor...
  • Page 23: Setup For Soft-Ap Mode

    SSID ? (Default DA16200_10A249) : TEST AP Enter the SSID name. CHANNEL ? [1~13, Auto:0/Quit] (Default Auto) : Enter to select Auto channel selection. AUTHENTICATION ? 1. OPEN User Manual Revision 1.0 27-Oct-2021 CFR0012 23 of 80 © 2021 Dialog Semiconductor...
  • Page 24 Once all settings are made, the configuration is saved, and the system reboots. A message is printed that Soft-AP mode started successfully: Reboot... Wakeup source is 0x0 [dpm_init_retmemory] DPM INIT CONFIGURATION(1) ****************************************************** DA16200 SDK Information * --------------------------------------------------- User Manual Revision 1.0 27-Oct-2021 CFR0012 24 of 80 © 2021 Dialog Semiconductor...
  • Page 25: Setup For Wi-Fi Provisioning Using Bluetooth Le (Da16600)

    Figure 7: Diagram of Provisioning via Bluetooth Refer to UM-WI-044 Provisioning Mobile App User Manual [12] for details on how to use the mobile application to provision the Wi-Fi connection on the DA16600. User Manual Revision 1.0 27-Oct-2021 CFR0012 25 of 80 © 2021 Dialog Semiconductor...
  • Page 26: Software Development Kit

    --global @xpack-dev-tools/windows-build-tools Installing the Eclipse IDE To install the Eclipse IDE, download and run the Eclipse installer for either Windows or Linux from the Eclipse Installer website: https://www.eclipse.org/downloads/packages/installer User Manual Revision 1.0 27-Oct-2021 CFR0012 26 of 80 © 2021 Dialog Semiconductor...
  • Page 27: 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. User Manual Revision 1.0 27-Oct-2021 CFR0012 27 of 80 © 2021 Dialog Semiconductor...
  • Page 28: Figure 10: Eclipse Open Preferences Dialog Box

    Windows Build Tools xPack has been installed. The Windows Build Tools xPack is installed in a path similar to the following: C:/Users/{user}/AppData/Roaming/xPacks/@xpack-dev-tools/windows-build-tools/{Window Build Tools version}/.content/bin User Manual Revision 1.0 27-Oct-2021 CFR0012 28 of 80 © 2021 Dialog Semiconductor...
  • Page 29: Importing The Da16200 Freertos Sdk Into Eclipse

    <sdk_root_directory>. This will provide a view into the full SDK source code and will set up the launch and debug configurations required by the SDK. User Manual Revision 1.0 27-Oct-2021 CFR0012 29 of 80 © 2021 Dialog Semiconductor...
  • Page 30: Figure 14: Import Sdk To The Eclipse Ide

    Figure 14: Import SDK to the Eclipse IDE NOTE Windows 10 has a path length limitation of 260 characters. The <sdk_root_directory> path length must be less than 70 characters. User Manual Revision 1.0 27-Oct-2021 CFR0012 30 of 80 © 2021 Dialog Semiconductor...
  • Page 31: Figure 15: Select Folder To Import The Sdk Into The Eclipse Ide

    Use the file manager to navigate to the <sdk_root_directory>/ directory and then press Select Folder. Figure 15: Select Folder to import the SDK into the Eclipse IDE User Manual Revision 1.0 27-Oct-2021 CFR0012 31 of 80 © 2021 Dialog Semiconductor...
  • Page 32: Figure 16: Import Sdk To The Eclipse Ide

    <sdk_root_directory>. Select the project and then press Finish. Figure 16: Import SDK to the Eclipse IDE 4. The project will appear in the Eclipse Project Explorer. Figure 17: Eclipse Project Explorer User Manual Revision 1.0 27-Oct-2021 CFR0012 32 of 80 © 2021 Dialog Semiconductor...
  • Page 33: Import And Build A Project

    ● Default SDK build for the DA16200 and DA16600 ○ <sdk_root_directory>/apps/da16200/get_started/ ○ <sdk_root_directory>/apps/da16600/get_started/ ● Various example projects ○ <sdk_root_directory>/apps/common/examples/Crypto/ ○ <sdk_root_directory>/apps/common/examples/DPM/ ○ <sdk_root_directory>/apps/common/examples/ETC/ ○ <sdk_root_directory>/apps/common/examples/Network/ ○ <sdk_root_directory>/apps/common/examples/Periphial/ User Manual Revision 1.0 27-Oct-2021 CFR0012 33 of 80 © 2021 Dialog Semiconductor...
  • Page 34: Figure 19: Import A Project

    Once the target project is imported, it will appear in the Eclipse Project Explorer. Build the project by Right-clicking on the imported project and select Build Project. User Manual Revision 1.0 27-Oct-2021 CFR0012 34 of 80 © 2021 Dialog Semiconductor...
  • Page 35: Figure 20: Build A Project

    If the pop-up window is closed without selecting and generating a configuration file, a warning pop-up is displayed. Figure 22: Generate Configuration Warning Pop-up A flash configuration file is required to build the firmware so this step cannot be skipped. User Manual Revision 1.0 27-Oct-2021 CFR0012 35 of 80 © 2021 Dialog Semiconductor...
  • Page 36: Figure 23: Location Of Firmware Image Files

    ● When the SDK is updated, always load the bootloader image first. FRTOS is the main firmware image which includes the RTOS and user applications. User Manual Revision 1.0 27-Oct-2021 CFR0012 36 of 80 © 2021 Dialog Semiconductor...
  • Page 37: Changing The Flash Configuration

    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/ User Manual Revision 1.0 27-Oct-2021 CFR0012 37 of 80 © 2021 Dialog Semiconductor...
  • Page 38: Connect J-Link

    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. Figure 26. J-Link 9-pin Cortex-M Adapter User Manual Revision 1.0 27-Oct-2021 CFR0012 38 of 80 © 2021 Dialog Semiconductor...
  • Page 39: Figure 26: J-Link 20 Pin

    SWDIO (7) JTAG_TCLK (J3_5) SWCLK (9) UART0_TXD_MA (J3_9) J-Link Tx (5) UART0_RXD_MA (J3_10) J-Link Rx (17) Figure 27: J-Link 20 Pin Figure 28: DA16200 Module External Connector User Manual Revision 1.0 27-Oct-2021 CFR0012 39 of 80 © 2021 Dialog Semiconductor...
  • Page 40: Run Debug Mode

    Run Debug Mode To start debugging an application, right-click on the project in the project explorer and select Debug As > Debug Configurations. Figure 29. Run Debug Mode User Manual Revision 1.0 27-Oct-2021 CFR0012 40 of 80 © 2021 Dialog Semiconductor...
  • Page 41: Figure 29. Select Debug Mode

    The current FreeRTOS SDK does not support automatic downloading of the firmware image into flash through the Eclipse debug interface therefore the firmware must be loaded into SFLASH before starting to debug the application. User Manual Revision 1.0 27-Oct-2021 CFR0012 41 of 80 © 2021 Dialog Semiconductor...
  • Page 42: 5.10 Programming Da16200 With Segger J-Link In Eclipse

    Figure 31: The installation of the J-Link Software Package 2. Open JLinkDevices.xml in a text editor and add a device entry for the DA16200 to the <DataBase> section as follows: User Manual Revision 1.0 27-Oct-2021 CFR0012 42 of 80 © 2021 Dialog Semiconductor...
  • Page 43: Figure 31: The Flash Loader Files

    DA16xxx FreeRTOS Getting Started Guide C:\Program Files (x86)\SEGGER\JLink_V640\JLinkDevices.xml <DataBase> <!-- --> <!-- Dialog Semiconductor --> <!-- --> <Device> <ChipInfo Vendor="Dialog Semiconductor" Name="DA16200_W25Q32JW" Core="JLINK_CORE_CORTEX_M4" WorkRAMAddr="0x80000" WorkRAMSize="0x00040000" /> <FlashBankInfo Name="QSPI Flash" BaseAddr="0x100000" MaxSize="0x400000" Loader="Devices/Dialog/DA16200_W25Q32JW.elf" LoaderType="FLASH_ALGO_TYPE_OPEN" /> </Device> <!-- --> <!-- Altera --> <!-- -->...
  • Page 44: Programming

    Linux in the External Tools. 1. Select the project to be programmed in the Project Explorer. 2. Under the Run menu, select External Tools. 3. Select 'program_all_jtag_win' or 'program_all_jtag_linux'. User Manual Revision 1.0 27-Oct-2021 CFR0012 44 of 80 © 2021 Dialog Semiconductor...
  • Page 45: Figure 33: Run Program_All_Jtag_Win Script

    Program BLE image for a peripheral role into the flash memory. (For DA16600) ● program_ble_cent_jtag_win, program_ble_cent_jtag_linux: Program BLE image for a central role into the flash memory. (For DA16600) User Manual Revision 1.0 27-Oct-2021 CFR0012 45 of 80 © 2021 Dialog Semiconductor...
  • Page 46: Test Procedures

    1. On the laptop, open a Command Prompt as administrator. 2. Run the ipconfig command to list the IP address of the network adaptor: C:\user\testuser>ipconfig Windows IP Configuration Ethernet adapter Ethernet 4: User Manual Revision 1.0 27-Oct-2021 CFR0012 46 of 80 © 2021 Dialog Semiconductor...
  • Page 47: Perform The Ping Test With Dpm Enabled

    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 Reply from 192.168.0.66: bytes=32 time=14ms TTL=255 Reply from 192.168.0.66: bytes=32 time=18ms TTL=255 User Manual Revision 1.0 27-Oct-2021 CFR0012 47 of 80 © 2021 Dialog Semiconductor...
  • Page 48: How To Add An Arp Record

    Physical Address Type 192.168.0.1 80-ca-4b-30-02-09 dynamic 192.168.0.66 d4-3d-39-10-a2-48 dynamic 192.168.0.255 ff-ff-ff-ff-ff-ff static 224.0.0.2 01-00-5e-00-00-02 static 224.0.0.22 01-00-5e-00-00-16 static 224.0.0.251 01-00-5e-00-00-fb static 239.255.255.250 01-00-5e-7f-ff-fa static 255.255.255.255 ff-ff-ff-ff-ff-ff static User Manual Revision 1.0 27-Oct-2021 CFR0012 48 of 80 © 2021 Dialog Semiconductor...
  • Page 49: Throughput Test

    This section describes how to perform a throughput test using the TCP client/server protocol. Test Setup Figure 36: Iperf Test Environment The Iperf tool should be installed on your laptop. Iperf Version 2.0.9 is recommended. User Manual Revision 1.0 27-Oct-2021 CFR0012 49 of 80 © 2021 Dialog Semiconductor...
  • Page 50: Iperf Test With Da16200/600 As A Client

    Lease Expires ..: Tuesday, September 28, 2021 4:24:33 PM Default Gateway ..: 192.168.0.1 User Manual Revision 1.0 27-Oct-2021 CFR0012 50 of 80 © 2021 Dialog Semiconductor...
  • Page 51: Figure 36: Disable Firewall For Iperf Test

    18.092 Mbits/sec 192.168.0.103:5001 TCP_TX:[0003] 2.00- 3.00 2.142 MBytes 17.975 Mbits/sec 192.168.0.103:5001 TCP_TX:[0004] 3.00- 4.00 2.192 MBytes 18.396 Mbits/sec 192.168.0.103:5001 TCP_TX:[Total] 0.00- 5.00 10.801 MBytes 18.122 Mbits/sec 192.168.0.103:5001 User Manual Revision 1.0 27-Oct-2021 CFR0012 51 of 80 © 2021 Dialog Semiconductor...
  • Page 52: Iperf Test With Da16200/600 As A Server

    [ 3] 3.0- 4.0 sec 2.38 MBytes 19.9 Mbits/sec [ 3] 4.0- 5.0 sec 2.38 MBytes 19.9 Mbits/sec [ 3] 0.0- 5.0 sec 12.2 MBytes 20.5 Mbits/sec C:\tools\iperf> User Manual Revision 1.0 27-Oct-2021 CFR0012 52 of 80 © 2021 Dialog Semiconductor...
  • Page 53: Dpm Setup

    DPM Keep Alive Time(0~600000 ms) ? [Quit] (Default 30000 ms) : Custom value or “enter” for default. DPM User Wakeup Time(0~86400 Sec.) ? [Quit] (Default 0 Sec.) : Custom value or “enter” for default. User Manual Revision 1.0 27-Oct-2021 CFR0012 53 of 80 © 2021 Dialog Semiconductor...
  • Page 54: Hold/Disable Dpm Mode

    * - Serial Flash : 4 MB * - SDK Version : V3.1.3.0 GEN * - F/W Version : FRTOS-GEN01-01-15129-000000 * - F/W Build Time : Aug 26 2021 22:58:01 User Manual Revision 1.0 27-Oct-2021 CFR0012 54 of 80 © 2021 Dialog Semiconductor...
  • Page 55 >>> Associated with 80:ca:4b:30:02:0a Connection COMPLETE to 80:ca:4b:30:02:0a -- DHCP Client WLAN0: SEL(6) -- DHCP Client WLAN0: REQ(1) -- DHCP Client WLAN0: CHK(8) -- DHCP Client WLAN0: BOUND(10) User Manual Revision 1.0 27-Oct-2021 CFR0012 55 of 80 © 2021 Dialog Semiconductor...
  • Page 56: Current Measurement

    [/DA16200] # sys.hal 4. Run the sleep 2 <time(sec)> command to enter sleep 2 mode for the specified time in seconds. ○ [/DA16200/SYS.HAL] # sleep 2 <time(sec)> User Manual Revision 1.0 27-Oct-2021 CFR0012 56 of 80 © 2021 Dialog Semiconductor...
  • Page 57: Sleep 3

    ○ 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 User Manual Revision 1.0 27-Oct-2021 CFR0012 57 of 80 © 2021 Dialog Semiconductor...
  • Page 58: Figure 38: Current Measurement With Dpm

    DTIM 10 (about 1sec @ AP DTIM=1) and Keep Alive 30s. Sleep 3 current means current between RX or between RX and TX. Figure 39: Current Measurement with DPM User Manual Revision 1.0 27-Oct-2021 CFR0012 58 of 80 © 2021 Dialog Semiconductor...
  • Page 59: Appendix A Configure Da16600 Evk To Use At-Cmd Via Uart

    UART2 in AT-CMD image, so UART2 can be connected to FT2232H to use AT-CMD. The image is available on the Dialog website. (https://www.dialog-semiconductor.com/products/wi-fi/da16600- modules#tab-field_tab_content_resources) GPIOC6/7 are 2/4 pins of J2 connector, please connect the wires from SW3 to J2. See Figure User Manual Revision 1.0 27-Oct-2021 CFR0012 59 of 80 © 2021 Dialog Semiconductor...
  • Page 60: Figure 40: Connect Uart2 To Ft2232H

    DA16xxx FreeRTOS Getting Started Guide Figure 41: Connect UART2 to FT2232H Figure 42 for the picture of AT-CMD connection via UART on EVK. Figure 42: Setting for AT-CMD over UART2 User Manual Revision 1.0 27-Oct-2021 CFR0012 60 of 80 © 2021 Dialog Semiconductor...
  • Page 61: Appendix B Da16200 Debug Interface Commands

    Category command (for example sys, nvram, net): move to the category. To run each commands of each category, go to the category first, or prefix the category name to the command as shown in the example: ○ ○ net.ifconfig User Manual Revision 1.0 27-Oct-2021 CFR0012 61 of 80 © 2021 Dialog Semiconductor...
  • Page 62: Root Commands

    DPM backup data [options] ● rtc: view DPM RTC timer ● debug [level]: turn DPM debug on / off ○ level = 1(MSG_ERROR), 2(MSG_INFO), 3(MSG_DEBUG), 4(MSG_EXCESSIVE) User Manual Revision 1.0 27-Oct-2021 CFR0012 62 of 80 © 2021 Dialog Semiconductor...
  • Page 63: Network Commands

    For example: arpsend wlan0 10.0.0.1 ipaddress] Transmit a GARP message with option: ● [interface] 0: normal garp garpsend [option] ● 1: check IP conflict For example: arpsend wlan0 User Manual Revision 1.0 27-Oct-2021 CFR0012 63 of 80 © 2021 Dialog Semiconductor...
  • Page 64: Cli Command

    [/DA16200/NET] # cli status Display Network Information. sta0 mac_address=d4:3d:39:10:a2:48 bssid=80:ca:4b:30:02:0a ssid=U+Net0208 id=0 mode=STATION key_mgmt=WPA2-PSK pairwise_cipher=CCMP group_cipher=CCMP channel=4 wpa_state=COMPLETED B.2.2 CLI Format There are four CLI formats (Type A~D): User Manual Revision 1.0 27-Oct-2021 CFR0012 64 of 80 © 2021 Dialog Semiconductor...
  • Page 65: Common Commands

    Delete a certain mode (STA, AP) profile (D) <mode>: 0(STA) | 1(AP) remove_ <mode> network For example: [/DA16200/NET] # cli remove_network 1 ○ Delete a profile for AP Mode User Manual Revision 1.0 27-Oct-2021 CFR0012 65 of 80 © 2021 Dialog Semiconductor...
  • Page 66 <value>: Country Code that meets ISO 3166-1 alpha-2 standards Default: KR country <value> For example: [/DA16200/NET] # cli country US ○ Set the Country Code to US For example: [/DA16200/NET] # cli country ○ User Manual Revision 1.0 27-Oct-2021 CFR0012 66 of 80 © 2021 Dialog Semiconductor...
  • Page 67: Sta Commands

    Roaming triggering RSSI value (dBm) setting (B) <value>: Roaming threshold RSSI (dBm) roam_threshold <value> Default: -65 (dBm) For example: [/DA16200/NET] # cli roam_threshold -85 ○ Set the roaming threshold to -85 dBm User Manual Revision 1.0 27-Oct-2021 CFR0012 67 of 80 © 2021 Dialog Semiconductor...
  • Page 68: Soft-Ap Commands

    Get main information about the interface at DA16200 (C) For example: [/DA16200/NET] # cli ap_status state=ENABLED phy=fc9k_phy0 freq=2472 num_sta_non_erp=0 num_sta_no_short_slot_time=0 ap_status (none) num_sta_no_short_preamble=0 olbc=0 num_sta_ht_no_gf=0 num_sta_no_ht=0 num_sta_ht_20_mhz=0 num_sta_ht40_intolerant=0 olbc_ht=0 ht_op_mode=0x0 cac_time_seconds=0 cac_time_l User Manual Revision 1.0 27-Oct-2021 CFR0012 68 of 80 © 2021 Dialog Semiconductor...
  • Page 69 CWmax=63, and Burst=10 or TxOP For example: [/DA16200/NET] # cli wmm_params sta vo 4 7 15 60 Limit(STA)> ○ For WMM STA's voice category, AIFS=4, CWmin=7, CWmax=15, TXOP_Limit=60 User Manual Revision 1.0 27-Oct-2021 CFR0012 69 of 80 © 2021 Dialog Semiconductor...
  • Page 70 Off: if there is no constant data frame exchange with the STA accessed to DA16200 AP interface for ap_max_inactivity timeout, then disconnect. Default: 0 (not used) For example: [/DA16200/NET] # cli ap_send_ka 1 ○ ap_send_ka=1 User Manual Revision 1.0 27-Oct-2021 CFR0012 70 of 80 © 2021 Dialog Semiconductor...
  • Page 71: Advanced Commands

    Reset to the Bootloader prompt (none) Display version of MaskRom help /? (none) Display help information for the corresponding category booting boot [address] address : booting address User Manual Revision 1.0 27-Oct-2021 CFR0012 71 of 80 © 2021 Dialog Semiconductor...
  • Page 72: Memory Access Commands

    : anything socid (none) Display socid(secure soc id) B.3.6 Additional Commands Table 20: Additional Commands in MROM Command Parameters Description Boot mode config bmcfg [op][bootmode] Not used User Manual Revision 1.0 27-Oct-2021 CFR0012 72 of 80 © 2021 Dialog Semiconductor...
  • Page 73: Appendix C Sdk Memory Maps

    : GigaDevice - GD25LE32E : ISSI - IS25LP032D, IS25LQ032B : MXIC - MX25L3233F, MX25L25635F, MX25R3235F, MX25U3232F, MX25U3235F : Winbond - W25Q32JV, W25Q32JW To use a different type of SFLASH with the DA16200/600, please contact Dialog Semiconductor to confirm compatibility. User Manual Revision 1.0...
  • Page 74: Sflash Memory Map

    SFLASH device that is being used and copy it to da16xtpmconfig.cfg SRAM Memory Map In the FreeRTOS SDK, the overall memory map is organized as shown in Figure User Manual Revision 1.0 27-Oct-2021 CFR0012 74 of 80 © 2021 Dialog Semiconductor...
  • Page 75: 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 User Manual Revision 1.0 27-Oct-2021 CFR0012 75 of 80 © 2021 Dialog Semiconductor...
  • Page 76 FBOOT and FRTOS firmware images. NOTE Do not reset the board between the FBOOT and FRTOS downloads or the download will fail. User Manual Revision 1.0 27-Oct-2021 CFR0012 76 of 80 © 2021 Dialog Semiconductor...
  • Page 77: Appendix E Country Codes

    Ukraine Bahamas Haiti Malaysia Uganda Bhutan Hungary Nigeria United Kingdom Belarus Indonesia Nicaragua Belize Ireland Netherlands Uruguay Canada Israel Norway Uzbekistan Central India Nepal Vatican City Africa User Manual Revision 1.0 27-Oct-2021 CFR0012 77 of 80 © 2021 Dialog Semiconductor...
  • Page 78 Mayotte Nevis St. Pierre and Czech N.Korea S.Africa Miquelon Germany S.Korea Puerto Rico Zimbabwe Denmark Kuwait Portugal Cayman Dominica Palau Islands Dominican Kazakhstan Paraguay Algeria Lebanon Qatar User Manual Revision 1.0 27-Oct-2021 CFR0012 78 of 80 © 2021 Dialog Semiconductor...
  • Page 79: Revision History

    UM-WI-056 DA16xxx FreeRTOS Getting Started Guide Revision History Revision Date Description 27-Oct-2021 First Release. User Manual Revision 1.0 27-Oct-2021 CFR0012 79 of 80 © 2021 Dialog Semiconductor...
  • Page 80 Dialog Semiconductor product (or associated software) can reasonably be expected to result in personal injury, death or severe property or environmental damage.

This manual is also suitable for:

Da16200Da16600Da16200 freertosDa16600 freertos

Table of Contents