background image

 

 

 

 

 

 

 

 

 

 

 

 

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. 

 

 

Содержание DA16 Series

Страница 1: ...d 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 ...

Страница 2: ...Station Mode 21 Setup for Soft AP Mode 23 Setup for Wi Fi Provisioning Using Bluetooth LE DA16600 25 5 Software Development Kit 26 5 1 Introduction 26 5 2 System Requirements 26 5 3 Installing the GNU Arm GCC Cross Compiler 26 5 4 Installing the Eclipse IDE 26 5 5 Configuring the Eclipse IDE 27 5 6 Importing the DA16200 FreeRTOS SDK into Eclipse 29 5 7 Import and Build a Project 33 Changing the Fl...

Страница 3: ...A 1 Turn OFF switch 59 A 2 Connect UART2 to FT2232H 59 Appendix B DA16200 Debug Interface Commands 61 B 1 Console Commands 61 B 1 1 Root Commands 62 B 1 2 Network Commands 63 B 2 CLI Command 64 B 2 1 Overview 64 B 2 2 CLI Format 64 B 2 3 Common Commands 65 B 2 4 STA Commands 67 B 2 5 Soft AP Commands 68 B 2 6 Advanced Commands 71 B 3 MROM Commands 71 B 3 1 Common Commands 71 B 3 2 Memory Access Co...

Страница 4: ...op up 35 Figure 23 Location of firmware image files 36 Figure 23 Run Generate Configuration Window 37 Figure 24 Download J Link Software 38 Figure 25 J Link 9 pin Cortex M Adapter 38 Figure 26 J Link 20 Pin 39 Figure 27 DA16200 Module External Connector 39 Figure 28 Run Debug Mode 40 Figure 29 Select Debug Mode 41 Figure 30 The installation of the J Link Software Package 42 Figure 31 The Flash Loa...

Страница 5: ...mands on STA Mode 67 Table 13 CLI Commands on Soft AP Mode 68 Table 14 Advanced CLI Commands 71 Table 15 Common Commands in MROM 71 Table 16 Memory Access Commands in MROM 72 Table 17 Download Commands in MROM 72 Table 18 SFLASH Commands in MROM 72 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 ...

Страница 6: ... FreeRTOS SDK Programmer Guide User Manual Dialog Semiconductor 3 UM WI xxx DA16200 Example Application Guide User Manual Dialog Semiconductor 4 UM B 114 DA14531 Devkit Pro Hardware User Manual Dialog Semiconductor 5 UM WI 012 DA16200 SPI SFlash Downloader User Manual Dialog Semiconductor 6 UM WI 003 DA16200 AT Command User Manual Dialog Semiconductor 7 UM WI 038 DA16200 Getting Started with AT Co...

Страница 7: ... Section 5 7 How to debug an application see Section 5 9 How to perform various test procedures to demonstrate the capabilities of the DA16200 600 see Section 6 Once completing these steps the EVK and development environment is 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 interfac...

Страница 8: ...rd with either DA16200 or DA16600MOD installed USB Cable 4 2 DA16200 Module EVK Ver 9 0_210205 Figure 1 shows the hardware configuration of the DA16200 Module Evaluation Kit EVK Figure 1 DA16200 Module EVK Hardware Configuration DA16200 has the following components Table 1 Components on DA16200 EVK No Name Description 1 DA16200MOD AACWA32 Dialogs Wi Fi Module 2 Board information Board version and ...

Страница 9: ...e P1 pins For normal operation this jumper should be shorted 10 P2 Jumper to measure current consumption of the DA16200 Pin for current measurement For normal operation this pin should be shorted Pull out the Short Pin cap and use jumper wires to connect to the measuring equipment 11 SW1 GPIO selection switch GPIO selection switch default OFF see Table 2 below 12 SW2 GPIO selection switch GPIO sel...

Страница 10: ...A16600 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 4 GPIOA9 Connects FT2232H to SPI_MOSI Ext Con J3 J4 only SW2 1 GPIOA4 Connects FT2232H to UART1_TXD Ext Con J3 J4 only 2 GPIOA5 Connects FT2232H to UART1_RXD Ext Con J3 J4 only SW3 1 GPIOA0 Connects FT2232H to SPI_CSB Ext Con J3 J4 o...

Страница 11: ...rom sleep mode 7 RTC Power key SW2 Switch to turn the EVB on and off 8 Jumper P2 Jumper to measure current used by the Wi Fi device For normal operation this jumper must be shorted 9 Jumper P1 Jumper to measure current used by the Bluetooth LE device For normal operation this jumper must be shorted 10 Connector CN4 GPIO test connector Add jumpers from J2 J4 to CN4 to control the four LEDs using GP...

Страница 12: ...DA14531 UART2 TX DA14531 P0_9 DEBUG OFF 7 Does not use OFF 8 Does not use OFF 9 Does not use OFF 10 Does not use OFF SW3 1 Enables UART1 of DA14531 1 wire UART DA14531 P0_5 WLAN_ACT OFF 2 Enables UART1 of DA14531 1 wire UART DA14531 P0_5 WLAN_ACT OFF SW4 1 Manual control of the internal RF SPDT Pin1 OFF Pin2 OFF internally controlled Pin1 ON Pin2 OFF DA14531 RF path ON Pin1 OFF Pin2 ON DA16200 RF ...

Страница 13: ...manager see Figure 3 Figure 3 Windows COM Ports NOTE On Windows If the ftdi serial driver installation does not happen automatically the drivers can be downloaded from the following URL and installed manually http www ftdichip com Drivers CDM CDM21224_Setup zip On Linux the COM ports are created in the dev directory as ttyUSBx devices ls l dev ttyU List the available ttyUSB serial ports crw rw 1 r...

Страница 14: ...VK 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 DA16200 SDK Information CPU Type Cortex M4 120MHz OS Type FreeRTOS 10 4 3 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 Boot Index 0 System Mode Station Only 0 DA16x Supp Ver2 7 2020_07 M...

Страница 15: ...Control HW SW None Open a second serial terminal application and connect to the DA16200 debug console and run the reboot command The following output will appear in the DA14531 debug console user_on_init 4 5 Updating the Firmware When first receiving an EVK the firmware must be updated to the latest version Prebuilt versions of the firmware for DA16200 and DA16600 can be downloaded from the Dialog...

Страница 16: ... the flash version These firmware images are stored in the following locations in flash Table 6 Serial Flash Memory Map Item 4 MB Notes Address Size 2nd Bootloader 0x0000_0000 136 kB FBOOT firmware image Boot Index 0x0002_2000 4 kB Selects RTOS 0 or RTOS 1 as he active firmware RTOS 0 0x0002_3000 1788 kB FRTOS firmware image RTOS 1 0x001E_2000 1792 kB Alternate FRTOS firmware image used during OTA...

Страница 17: ...load each firmware image a At the MROM prompt use one of the following loady commands to load the required firmware images Table 7 FW Image loady Commands FW Image Command Notes FBOOT loady boot or loady 0 Second bootloader firmware Only needs to be downloaded for a new EVK or if the SFDP changes FRTOS loady 23000 Main firmware DA14531 firmware loady 3ad000 1000 bin For the DA16600MOD only Only ne...

Страница 18: ...command to start the firmware Wakeup source is 0x0 dpm_init_retmemory DPM INIT CONFIGURATION 1 DA16200 SDK Information CPU Type Cortex M4 120MHz OS Type FreeRTOS 10 4 3 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 Boot Index 0 System Mode Station Only 0 DA16x Supp Ver2 7 2020_07 MAC address sta0 d4 3d 39 10 a2 48 sta0 interf...

Страница 19: ... configured by doing the Wi Fi provisioning process See Section 4 6 for details on how provision the Wi Fi communication interface 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 m...

Страница 20: ...d RTOS Image 4 DA16200 will reboot automatically after all images are downloaded 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 Please see the UM WI 039 DA16200 DA16600 Multi Downloader Tool User Manual 8 ...

Страница 21: ... Index and F W Version matches the one that was selected 4 6 Provisioning Wi Fi 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 run the setup command at the DA16xxx prompt and then answer the questions to complete the...

Страница 22: ...Fi configuration No Yes Quit Default No N Enter N to skip this step SSID AndroidHotspot0568 AUTH WPA WAP2 ENCRYPTION TKIP AES CCMP PSK KEY 123abc456 KEY TYPE ASCII Hidden AP Not connect WIFI CONFIGURATION CONFIRM Yes No Quit Y Enter Y to confirm the configuration IP Connection Type Automatic IP Static IP Quit A Enter A for automatic DHCP IP address IP Connection Type Automatic IP IP CONFIGURATION ...

Страница 23: ...he DA16xxx debug console and run the setup command at the DA16xxx prompt and then answer the questions to complete the setup as follows DA16200 setup Start the Easy Setup Wizard Stop all services for the setting Are you sure Yes No Y Enter Y to stop the running services DA16200 EASY SETUP Country Code List AD AE AF AI AL AM AR AS AT AU AW AZ BA BB BD BE BF BG BH BL BM BN BO BR BS BT BY BZ CA CF CH...

Страница 24: ...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 WLAN1 IP ADDRESS 10 0 0 1 SUBNET 255 255 255 0 GATEWAY 10 0 0 1 IP CONFIGURATION CONFIRM Yes No Quit Y Enter Y to confirm the IP configuration DHCP SERVER CONFIGURATION Yes No Qui...

Страница 25: ...Fi interface to operate in Station Mode Please see UM WI 042_DA16200_Provisioning_the_Mobile_App 11 for details on how to use the mobile application Setup for Wi Fi Provisioning Using Bluetooth LE DA16600 The DA16600 module can be used in a product such as Wi Fi door lock where Wi Fi is the main connection used during normal operation and Bluetooth LE is a support connection used to do the Wi Fi P...

Страница 26: ... J Link Debug Probe 5 3 Installing the GNU Arm GCC Cross Compiler The simplest method for installing the GNU Arm GCC 10 2 1 cross compiler is to use the xPack Project Manager xpm and install them from an xPack package If the xPack tools are not already installed follow the instructions on the xPack website to install either the Windows or GNU Linux version depending on your development system http...

Страница 27: ...jre linux64 tar gz cd eclipse installer eclipse inst After running the installer select the Eclipse IDE for Embedded C C Developers package and then select Install Figure 9 Eclipse Installer Run NOTE The Eclipse Installer will automatically install the required JRE and embedded development extensions required by the DA16200 DA16600 FreeRTOS SDK After the installation is complete run Eclipse and op...

Страница 28: ...C Users user AppData Roaming xPacks xpack dev tools arm none eabi gcc gcc version content bin Figure 11 MCU Global Arm Toolchains Paths If the toolchain folder is empty or incorrect press the xPack button and select the correct Version Figure 12 xPack Selection Dialog Box For the Windows 10 installation also check the MCU Global Build Tools path and verify it points to where the Windows Build Tool...

Страница 29: ...A16200_DA16600_SDK_V3 2 0 0 This directory is known as the sdk_root_directory Run Eclipse and open the newly created workspace 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_direct...

Страница 30: ...project into the Eclipse workspace as follows 1 Under the File menu select Import to open the Import dialog box and then select General Existing project into workspace and press Next 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 ...

Страница 31: ...12 31 of 80 2021 Dialog Semiconductor 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 15 Select Folder to import the SDK into the Eclipse IDE ...

Страница 32: ... 80 2021 Dialog Semiconductor 3 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 16 Import SDK to the Eclipse IDE 4 The project will appear in the Eclipse Project Explorer Figure 17 Eclipse Project Explorer ...

Страница 33: ... the SDK is now complete The next step is to import a target project and build that project 5 7 Import and Build a Project Various projects are contained within the SDK directory structure These projects are all stored under 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 ...

Страница 34: ...mples Crypto Crypto_AES projects da16200 sdk_root_directory apps common examples Crypto Crypto_AES projects da16600 Imported any of these projects using the Eclipse Project Explorer by navigating to the specific project directory and then right click on project directory and select Import as Project Figure 19 Import a Project Once the target project is imported it will appear in the Eclipse Projec...

Страница 35: ...lly so that the flash memory type can be selected Select the flash type and press generate to create the appropriate flash configuration file required to build the firmware Figure 21 Generate Configuration Window 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 fi...

Страница 36: ..._path img directory For Example DA16200_FBOOT GEN01 01 14128 834dea5b8_W25Q32JW img DA16200_FRTOS GEN01 01 15129 866facc56 img can be found in the directory show in Figure 23 Figure 23 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 must be the first thing loaded into flash for a new device Sin...

Страница 37: ...iate flash configuration file required to build the firmware 5 8 Downloading the Firmware Images Firmware Update There are two different methods for downloading the firmware images 1 Using the debug serial port of the DA16200 600 Connect the EVK and configure the debug interface as described in Section 4 4 Follow the process described in Section 4 5 to download the firmware to the EVK 2 Using Ecli...

Страница 38: ...lled by running the downloaded installer The Linux version can be installed using the following command sudo dpkg i JLink_Linux_V752d_x86_64 deb Connect J Link The following section describes how to connect the J Link debug probe to the DA16200 Module There are two ways to connect J Link Debugger Method 1 Connect to the JTAG connector Connect the 20 pin connector of the J Link 9 pin Cortex M Adapt...

Страница 39: ...er wires can be used to connect a J Link 20 pin connector to the DA16200 EVKs external connector J3 J4 as shown below Table 8 DA16200 Module External Connector Mapping for J LINK 20Pin DA16200 J3 J4 J LINK VBAT J4_3 5 V Supply 19 VDD_DIO1 J4_4 VTref 1 GND J3_18 GND 8 JTAG_TMS J3_4 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 F...

Страница 40: ...de User Manual Revision 1 0 27 Oct 2021 CFR0012 40 of 80 2021 Dialog Semiconductor 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 ...

Страница 41: ...SH In this mode watchdog is turned off and wdt_kicking thread is not executed DA16x_Main_Debug Attach Linux_DA16x_Main_Debug attach This mode executes the debugger in attach mode without rebooting the image currently stored in SFLASH NOTE Before using Attach mode first turn off the watchdog using the sys wdog off command as follows DA16200 sys wdog off WATCHDOG off DA16x_Main_Debug attach_with_rto...

Страница 42: ...com downloads jlink 3 Eclipse 2021 06 4 20 0 or later see Section 5 4 Preparation The J Link setup procedure required to work with J Flash is described in chapter 2 of the J Link J Trace User Guide UM08001 Setup 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 ...

Страница 43: ...JLINK_CORE_CORTEX_A9 JLinkScriptFile Devices Altera Cyclone_V Altera_Cyclone_V JLinkScript Device AmbiqMicro Device ChipInfo Vendor AmbiqMicro Name AMA3B1KK KBR Core JLINK_CORE_CORTEX_M4 JLinkScriptFile Devices AmbiqMicro AmbiqMicro_Apollo3 pex Device 3 Copy the flash loader files from the sdk_root_directory utility j link scripts flashloader Devices Dialog directory which are referenced in the JL...

Страница 44: ... x86 SEGGER JLink 5 Click OK and the Apply and Close to save the setting Figure 33 The Path of J Link Installation in Eclipse Programming To program binaries into the target device run the program_all_jtag_win script for Windows or the program_all_jtag_linux script for Linux in the External Tools 1 Select the project to be programmed in the Project Explorer 2 Under the Run menu select External Too...

Страница 45: ...ash memory program_boot_jtag_win program_boot_jtag_linux Program BOOT image into the flash memory program_rtos_jtag_win program_rtos_jtag_linux Program RTOS image into the flash memory program_all_central_jtag_win program_all_central_jtag_linux Program all images for BLE central role into the flash memory For DA16600 program_ble_peri_jtag_win program_ble_peri_jtag_linux Program BLE image for a per...

Страница 46: ...ond to ping commands while in DPM mode Test Setup The ping communication test requires an access point AP and two stations consisting of a DA16200 or DA16600 EVK and a laptop The two stations must be connected to the same sub network AP as shown in Figure 35 The DA16200 must be connected to the AP via WIFI and the laptop must be connected to the AP with an Ethernet cable After the DA16200 600 is c...

Страница 47: ...16200 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 Reply from 192 168 0 66 bytes 32 time 14ms TTL 255 Reply from 192 168 0 66 bytes 32 time 18ms TTL 255 Reply from 192 168 0 66 bytes 32 time 25m...

Страница 48: ...mode and there are multiple network interfaces enabled on the laptop an ARP entry must be added for the specific interface so that the laptop knows how to find the DA16200 600 This section describes how to add a DHCP assigned IP address to the ARP table and change that IP address from a dynamic to a static IP address Since retransmission logic is not included in the higher protocol TCP UDP an addi...

Страница 49: ...t 192 168 0 66 d4 3d 39 10 a2 48 C WINDOWS system32 arp a Interface 192 168 0 105 0x12 Internet Address Physical Address Type 192 168 0 1 80 ca 4b 30 02 09 dynamic 192 168 0 66 d4 3d 39 10 a2 48 static 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 25...

Страница 50: ...Rx Time Out Min 1 sec F Forever Client specific c host run in client mode connecting to host t time in seconds to transmit for default 10 secs x tcp API mode default basic tcp API 1 Altcp 2 Socket y Transmit delay tick 1 100 l PacketSize option UDP default 1470 IPv6 1448 TCP 1000 n UDP Tx packet number P Pair Index 0 1 2 default Max Step 1 100 Mbps O use Main Packet Pool Miscellaneous h print this...

Страница 51: ...erver listening on TCP port 5001 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 to run the Iperf client test on the DA16200 600 DA16200 net Switch to network command mode Command List is changed N...

Страница 52: ...06h 00m 00s Renewal Time 03h 00m 00s DA16200 2 In the DA16200 600 console window switch to NET command mode and run iperf I wlan0 s to run the Iperf server DA16200 net Switch to network command mode Command List is changed NET DA16200 NET iperf I wlan0 s Run Iperf in server mode iPerf Server TCP Ready DA16200 NET The DA16200 600 is now running in iperf server mode 3 In the CMD window run iperf I w...

Страница 53: ...ceive Enable DPM Mode This section describes how to enable DPM mode 1 Follow the steps in Section 4 6 to setup the DA16200 600 in station mode a During the setup enable DPM as follows Dialog DPM Dynamic Power Management Yes No Quit y Enter y to enable DPM DPM factors Defaults Yes No Quit y Enter y to accept defaults DPM MODE Enable Dynamic Period Set Disable Keep Alive Time 30000 ms User Wakeup Ti...

Страница 54: ...3 Hold Disable DPM Mode When the DA16200 600 is in DPM sleep mode user input is not accepted by the debug terminal This is because the UART interfaces are powered down during DPM Sleep To exit this state and start over with setup do the following 1 Copy the string dpm hold to the clipboard a For example open Notepad type dpm hold and then copy Ctrl C the command string 2 Use RTC_PWR_KEY to power o...

Страница 55: ...ime 05h 00m 00s DA16200 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 dpm_init_retmemory DPM INIT CONFIGURATION 1 DA16200 SDK Information CPU Type Cortex M4 12...

Страница 56: ...ure 38 shows a typical test setup environment Figure 38 Current Test Environment Sleep 1 To measure the Sleep 1 current power off the EVK by setting RTC_PWR_KEY to the OFF position SW6 on the DA16200 EVK or SW2 on the DA16600 EVK Sleep 2 To measure the Sleep 2 current use either the CLI command or the AT command as described in the following section 6 5 3 1 CLI Command 1 To measure the Sleep 2 cur...

Страница 57: ...retained and this is basic sleep 2 operation When the DPM memory is retained the sleep current is same with sleep 3 mode The fast reconnection functionality is possible in this mode 3 Read the explanation of AT SETSLEEP2EXT in the following table Also see to the relevant section Basic Function Commands in the document UM WI 003 for details Command Parameters Description AT SETSLEEP2EXT period reta...

Страница 58: ...n 1 0 27 Oct 2021 CFR0012 58 of 80 2021 Dialog Semiconductor For example the current waveform in Figure 39 shows settings 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 ...

Страница 59: ...o use AT CMD via UART See below steps A 1 Turn OFF switch UART1 is connected to FT2232H on the board so switch needs to be turned off first To disconnect UART1 from FT2232H SW3 and 5 8 of SW should be turned off See Figure 40 Figure 40 SW3 and SW7 UART1 Connection A 2 Connect UART2 to FT2232H UART2 is available with GPIOA10 11 or GPIOC6 7 See pin mux in Figure 41 GPIOC6 7 are set as UART2 in AT CM...

Страница 60: ... Started Guide User Manual Revision 1 0 27 Oct 2021 CFR0012 60 of 80 2021 Dialog Semiconductor Figure 41 Connect UART2 to FT2232H See Figure 42 for the picture of AT CMD connection via UART on EVK Figure 42 Setting for AT CMD over UART2 ...

Страница 61: ...SER 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 or arrow key on your keyboard show the command history one by one Exclamation mark view the list of the command history Exclamation mark Number select and ex...

Страница 62: ... por POR rebooting reset none Reset to the Bootloader prompt ver none Display SDK version 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 time uptime display booting duration time help display help getwlanmac none Display the MAC address for network interfaces setwlanmac xx xx...

Страница 63: ...erver address static IP to a network interface ifconfig help display help ping I interface wlan0 wlan1 domain ip n count l size w timeout i interval Ping test to the target address with a certain option interface wlan0 wlan1 Network interface With no designated interface an interface for a subnet band of the same destination IP address is designated count the count of ping tests size the size of d...

Страница 64: ...evel setting level 0 2 default 0 dhcpc level DHCP Client debug level setting level 0 5 default 1 umac on off mask debug umac 1 0x4 act on off Start or stop DPM Auto Configuration B 2 CLI Command B 2 1 Overview The DA16200 supplicant plays a key role in providing users with Wi Fi functionality Major functions include IEEE 802 11 management frame various security functions WPA RSN by IEEE 802 11i an...

Страница 65: ... inquired with the following command For example DA16200 NVRAM printenv Total length 95 country_code STR 03 KR SYSMODE STR 02 0 0 NETMODE STR 02 1 N0_Profile STR 02 1 N0_ssid STR 16 ACST_AC_TEST1 select_ network mode Execute a motion in a certain mode STA access AP operation etc D mode STA 0 AP 1 For example DA16200 NET cli select_network 0 Implement STA access For a certain mode through the selec...

Страница 66: ...event automatic profiling on reboot 0 off 1 on value settings for a certain variable For example DA16200 NET cli set_network 1 ssid DA16200_AP 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 t...

Страница 67: ...ge MHz only option For example DA16200 NET cli scan Scans all channels that correspond to the current country setting disconnect none Disconnect the accessed AP D For example DA16200 NET cli disconnect OK With no AP being accessed FAIL roam none or oper Roaming On Off and Roaming status inquiry A oper run On stop Off Default Roaming Off For example DA16200 NET cli roam Roaming STOP Threshold 65 Us...

Страница 68: ...rt 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 ap_chan_switch Ch Modify the AP interface operation channel B Ch AP operation channel 1 14 or frequency MHz For example DA16200 NET cli ap_chan_switch 3 Modify the AP interface channel to 3 242 MHz For ex...

Страница 69: ...sage is transmitted to the access STA with a certain MAC address to cancel the access D addr MAC address of the access STA For example DA16200 NET cli disassociate aa ff 01 00 00 00 Transmit the disassociation message to STA whose MAC address is AA FF 01 00 00 00 wmm_enabled value WMM function availability setting and inquiry A value On 1 Off 0 Default Off For example DA16200 NET cli wmm_enabled 1...

Страница 70: ...0 NET cli acl clear Entire ACL clear For example DA16200 NET cli delete aa ff 01 00 00 08 Delete AA FF 01 00 00 08 from ACL ap_max_inactivity value If there is no data frame exchange of accessed STA during the time setting disconnect the STA A value inactivity timeout sec Default 300 sec For example DA16200 NET cli ap_max_inactivity 600 Disconnect the access STA with no data frame exchange for 600...

Страница 71: ...g info and STA access are not allowed Default 0 not used For example DA16200 NET cli greenfield 1 Use the Greenfield function greenfield 1 For example DA16200 NET cli greenfield greenfield 0 B 2 6 Advanced Commands Table 14 Advanced CLI Commands Command Parameters Description wps_pbc none Run WPS PBC Push Button Configuration wps_pin pin Run WPS PIN method pin pin code any generate a random code F...

Страница 72: ...cription loady addr sector_size format boot Download image to SFLASH boot 0 address ymodem addr size sfdp Download image to RAM sfdp download sfdp to 0xf80040 retention memory B 3 4 SFLASH Commands Table 18 SFLASH Commands in MROM Command Parameters Description sflash op start length Sflash access op read write erase start start address length length B 3 5 Secure Commands Table 19 Secure Commands ...

Страница 73: ...pendix C SDK Memory Maps C 1 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 Also the document describes how to change the SFLASH device and adjust the SRAM memory map used in the SDK NOTE The DA16200 600 SDK currently supports the fol...

Страница 74: ...KB 0x003A_7000 TLS Certificate Key 1 16KB 0x003A_B000 NVRAM 4KB 0x003A_C000 NVRAM Backup 4KB NOTE Technical support is required to use a 2 MB SFLASH memory map in the FreeRTOS SDK 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 To change the SFLASH type without using the script go to the sdk_root_d...

Страница 75: ...00 00 00 89 34 6F 93 4o 00F80030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 64 d 00F80040 53 46 44 50 15 16 60 EF 00 00 40 00 F5 20 F1 FF SFDP 00F80050 FF FF FF 01 44 EB 08 6B 08 3B 04 BB EE FF FF FF D k 00F80060 FF FF 00 FF FF FF 44 EB 0C 20 0F 52 10 D8 00 FF D R 00F80070 11 34 1E F3 83 3A 00 CC CC 43 1C 62 7A 75 7A 75 4 C bzuzu 00F80080 07 CD D5 5C 42 00 EF 40 FF 7F 00 01 07 02 36 39 B 69 00F8...

Страница 76: ...0 as normal 2 Power off the DA16200 600 using the RTC_PWR_KEY move it to the OFF position 3 In the terminal program repeatedly press ESC key and at the same time power on the DA16200 600 using the RTC_PWR_KEY move it to the ON position 4 The DA16200 600 will detect the ESC key and boot into MROM mode 5 After entering MROM mode follow the instructions in Section 4 5 1 to manually download both the ...

Страница 77: ...ro SN Senegal AZ Azerbaijan GD Grenada MF Saint Martin SR Suriname BA Bosnia GE Georgia MH Marshall Islands SV El Salvador BB Barbados GF French Guiana MK Macedonia SY Syria BD Bangladesh GH Ghana MN Mongolia TC Turks Caicos BE Belgium GL Greenland MO Macao TD Chad BF Burkina Faso GP Guadeloupe MP Northern Mariana Islands TG Togo BG Bulgaria GR Greece MQ Martinique TH Thailand BH Bahrain GT Guatem...

Страница 78: ...JM Jamaica PE Peru VN Vietnam CO Colombia JO Jordan PF Polynesia VU Vanuatu CR Costa Rica JP Japan PG Papua New Guinea WF Wallis and Futuna Islands CU Cuba KE Kenya PH Philippines WS Samoa CX Christmas Island KH Cambodia PK Pakistan YE Yemen CY Cyprus KN St Kitts and Nevis PL Poland YT Mayotte CZ Czech KP N Korea PM St Pierre and Miquelon ZA S Africa DE Germany KR S Korea PR Puerto Rico ZW Zimbabw...

Страница 79: ...UM WI 056 DA16xxx FreeRTOS Getting Started Guide User Manual Revision 1 0 27 Oct 2021 CFR0012 79 of 80 2021 Dialog Semiconductor Revision History Revision Date Description 1 0 27 Oct 2021 First Release ...

Страница 80: ... version of the device Dialog Semiconductor reserves the right to change the information published in this document including without limitation the specification and the design of the related semiconductor products software and applications in accordance with its standard automotive change notification process Applications software and semiconductor products described in this document are for ill...

Отзывы: