1. Abstract¶
This manual intends to assist software developers which implement applications using the DA1468x development platform. A certain degree of reader familiarity with programming environments, debugging tools and software engineering process in general is assumed by the authors.
2. Figures¶
Figure 1 LED D1 on Pro DK DA1468x
Figure 2 LED D1 on Basic DK DA1468x
Figure 3 Importing “pxp_reporter” into Eclipse
Figure 4 Project build in Release_QSPI mode
Figure 5 Selecting the build mode
Figure 6 External Tool Configurations Menu
Figure 7 QSPI programming configuration
Figure 8 Changing existing QSPI programming configuration
Figure 10 Configure and start Debug perspective
Figure 11 LightBlue application connected to Proximity Reporter application
Figure 13 B-BLE application connected to Proximity Reporter application
Figure 14 pxp_reporter project structure
Figure 15 FTDI cable connected to UART on Basic DK with no flow control
Figure 16 Connecting USB-UART cable to UART2
Figure 17 peripherals_demo – system overview
Figure 18 Building the project in Release_QSPI mode
Figure 19 Selecting build mode to be programmed
Figure 20 Program the QSPI Flash
Figure 21 Configuration of the Serial Terminal
Figure 22 Enable local echo in TeraTerm
Figure 23 Output in serial terminal
Figure 24 Jumper settings for UART2 and GPIO configuration ProDK Virtual COM port with Flow Control
Figure 25 Connect USB-UART cable to ProDK Breakout Headers with Flow Control
Figure 26 Connect USB-UART cable to BasicDK Breakout Headers with Flow Control
Figure 27 Building Project in Release_QSPI mode
Figure 28 Selecting the build mode to be programmed
Figure 30 Set advertising interval via CLI
Figure 31 Set Advertising Interval via GPIOs
Figure 32 Power Profiler output for the second configuration index
Figure 33 Set advertising channel map via CLI
Figure 34 Three advertising channels
Figure 35 Two advertising channels
Figure 36 Set recharge period via CLI
Figure 37 SLEEP_TIMER_REGISTER contents
Figure 38 Connection parameters update
Figure 39 Sleep current measurement
Figure 44 Flash memory partition layout comparison between SUOTA and non-SUOTA build (1Mbyte QSPI Flash)
Figure 45 Run mkimage.bat script on Windows
Figure 46 Run mkimage.sh on Linux
Figure 52 Parameter settings for SPI
Figure 53 Parameter settings for I2C
Figure 54 Uploading the image file
Figure 56 When file upload is finished, press “Close”
Figure 57 Dual SUOTA architecture
Figure 58 Building ble_suota_client
Figure 59 Flash the ble_suota_client binary to the QSPI Flash
Figure 60 Selecting the target device
Figure 61 Building pxp_reporter for SUOTA
Figure 63 Jumpers only on Rx and Tx for ProDK no Flow Control
Figure 64 Uploading image to the Client
Figure 65 Building ble_suota_loader project
Figure 66 Flashing ble_suota_loader to QSPI Flash
Figure 67 Selecting target device
Figure 68 Jumpers on Rx, Tx and CTS
Figure 69 Specifying the serial port number
Figure 70 Configuring the serial port
Figure 71 Information regarding the image stored in the NVMS_BIN_PART partition are displayed during boot
Figure 72 Specifying serial port number
Figure 73 Configuring serial port
Figure 74 ble_suota_loader information is displayed during boot
Figure 75 Scanning for available devices
Figure 76 Stop scanning procedure
Figure 77 Connecting to loader device
Figure 78 Updating with new image the loader device
3. Tables¶
Table 1 Build configuration Pattern
Table 2 Components need for the “pxp_reporter” project
Table 4 GPIO configuration type
Table 5 GPIO configuration index
Table 6 Advertising interval settings
Table 8 Recharge period settings
Table 9 Connection parameters settings
Table 10 Dialog BLE API header files
Table 11 BLE service API header files
Table 12 Macros for the configuration of the hook functions
Table 13 Notification bit masks
Table 14 SUOTA service characteristics
4. Codes¶
Code 1 Create the Proximity Reporter application task
Code 2 Initializing and configuring the BLE
Code 4 Immediate Alert and Link Loss Services
Code 5 Set up device to start advertising
Code 7 Configuration for additional hardware
Code 8 Enable UART and/or GPIO configuration
Code 9 Flash memory partition table
Code 13 Defining SUOTA version and L2CAP COC PSM
Code 14 Passing L2CAP events to the SUOTA service
Code 15 Declare SUOTA variable
Code 16 Register SUOTA and DIS
5. Terms and definitions¶
ADC Analog to Digital Converter
API Application Programming Interface
ATT Attribute Protocol
BLE Bluetooth Low Energy
BSP Board Support Package
CCC Client Characteristic Configuration
COC Connection Oriented Channels
DIS Device Information Service
DK Development Kit
FreeRTOS Free Real Time Operating System
ISR Interrupt Service Routine
LED Light Emitting Diode
L2CAP Logical Link Control and Adaptation Protocol
MTU Maximum Transmission Unit
NVMS Non-Volatile Memory Storage
OS Operating System
OSAL Operating System Abstraction Layer
PM Proximity Monitor
PR Proximity Reporter
SDK Software Development Kit
SUOTA Software Update Over The Air
SW Software
QSPI Queued Serial Peripheral Interface
ROM Read Only Memory
RTOS Real Time Operating System
GATT Generic Attribute Profile
GAP Generic Access Profile
UUID Universally Unique Identifier
6. References¶
[Ref_01] | DA14680, Datasheet, Dialog Semiconductor. |
[Ref_02] | UM-B-057-SmartSnippets_Studio_user_guide, User manual, Dialog Semiconductor. |
[Ref_03] | UM-B-047 DA1468x Getting Started, User manual, Dialog Semiconductor. |
[Ref_04] | UM-B-044-DA1468x Software Platform Reference, User manual, Dialog Semiconductor |
[Ref_05] | UM-B-060-DA1468x_DA1510x Development kit – Pro, User manual, Dialog Semiconductor |
[Ref_06] | UM-B-066-DA1468x_DA1510x Development kit – Basic, User manual, Dialog Semiconductor. |
[Ref_07] | UM-B-083 SmartSnippets Toolbox, User manual, Dialog Semiconductor |
7. Prerequisites¶
- SmartSnippets™ Studio package
- Dialog’s Semiconductor SmartSnippets™ DA1468x SDK
- Operating System (Windows or Linux)
- Pro DA1468x and accessories or Basic DA1468x Development Kits (DK)
- Android or iOS mobile phone
- SUOTA Dialog Application for mobile
- A PC terminal application, for example Tera Term (download at https://ttssh2.osdn.jp/index.html.en)