Sign In
Upload
Download
Table of Contents
Contents
Add to my manuals
Delete from my manuals
Share
URL of this page:
HTML Link:
Bookmark this page
Add
Manual will be automatically added to "My Manuals"
Print this page
×
Bookmark added
×
Added to my manuals
Manuals
Brands
Renesas Manuals
Computer Hardware
DA1458 Series
User manual
Renesas DA1458 Series User Manual
Using suota
Hide thumbs
1
Table Of Contents
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
page
of
35
Go
/
35
Contents
Table of Contents
Bookmarks
Table of Contents
Abstract
Table of Contents
Contents
Figures
Tables
Terms and Definitions
References
Introduction
Figure 1: SUOTA Feature
Table 1: SPOTA Profile Enabled Location in the SW
Table 2: Pros and Cons of the Different Schemes
Security, External Memory and Product Header Parameters
Security When SUOTA Is Used
Figure 2: Security of the Service Enabled
Table 3: Different Security Levels Defined in the SW
Choice of the External Memory to Store the Images
Address of the Product Header
Table 4: Choice of the External Memory
Table 5: Address of the Product Header Defined in the Secondary Bootloader Project
Hardware Needed
Central Side
Peripheral Side
Using Dialog's Reference Designs
Using Dialog's PRO Development Kit
Using Dialog's BASIC Development Kit
Figure 3: PRO Development HW Configuration
Figure 4: BASIC Development HW Configuration
Running SUOTA with Scheme 1
Figure 5: Memory Architecture of Scheme 1
Running SUOTA with Scheme 2
Figure 6: Memory Architecture of Scheme 2
Use of PYTHON Tool to Create the Binary Files, Images & Programming the Flash
Step by Step Process
Details about the Python Script
Creation of the Fw_Multi_Part_Spi.bin for the SPI Memory Using Scheme 1
Creation of the Multi_Part.bin for the SPI Memory Using Scheme 2
Figure 7: Multi_Part.bin File
Preparing the SPI Memory: Erasing the SPI Memory
Figure 8: Multi_Part.bin File
Figure 9: Select JTAG Connection
Figure 10: ERASE Operation
Figure 11: NON-Bootable Mode
Figure 12: Detection of the DA1458X Advertisements
Running SUOTA from an Ios Platform
Figure 13: Copying Images into the SUOTA App
Figure 14: First 4 Steps to Use SUOTA with Ios
Figure 15: Second 4 Steps to Use SUOTA with Ios
Running SUOTA from an Android Platform
Figure 16: First Four Steps When Using SUOTA with Android
Figure 17 Steps 5 and 6 When Using SUOTA with Android
Running SUOTA with Smartsnippets as a SUOTA Initiator
Figure 18: Smartsnippets SUOTA Initiator Configuration Options
Total Time Vs Energy Consumption to Update a New Image
A Real Life Example
Figure 19: Real Life Example
Table 6: Define the MTU Size in the SW
Total Time to Update a New Image
The Total Time to Update a New Image Using SUOTA Is Depending on Many Parameters
Result in Practise
Result in Theory
Figure 20: Time Needed to Update a 27 Kb Image
Energy Consumption to Update a New Image
Important Notes
Revision History
Advertisement
Quick Links
Download this manual
User Manual
DA1458x Using SUOTA
AN-B-10
Abstract
This document describes how to run a SUOTA (Software-Update-Over-The-Air) demo from iOS and
Android platforms, using Dialog SmartSnippets.
Table of
Contents
Previous
Page
Next
Page
1
2
3
4
5
Advertisement
Table of Contents
Need help?
Do you have a question about the DA1458 Series and is the answer not in the manual?
Ask a question
Questions and answers
Subscribe to Our Youtube Channel
Related Manuals for Renesas DA1458 Series
Computer Hardware Renesas DA16200 User Manual
(108 pages)
Computer Hardware Renesas DA16200 Getting Started Manual
Highly integrated ultra-low power wi-fi system (106 pages)
Computer Hardware Renesas DA16200 User Manual
(29 pages)
Computer Hardware Renesas DA16200 User Manual
(39 pages)
Computer Hardware Renesas DA16200 User Manual
(58 pages)
Computer Hardware Renesas DA16200 User Manual
(40 pages)
Computer Hardware Renesas DA16200 User Manual
(46 pages)
Computer Hardware Renesas DA16200 User Manual
(57 pages)
Computer Hardware Renesas DA16200 User Manual
(40 pages)
Computer Hardware Renesas DA16200 User Manual
(34 pages)
Computer Hardware Renesas DA16200 User Manual
(83 pages)
Computer Hardware Renesas FreeRTOS DA16200 User Manual
(106 pages)
Computer Hardware Renesas DA16200 H/W User Manual
(44 pages)
Computer Hardware Renesas DA14AVDDECTDEVKT User Manual
(23 pages)
Computer Hardware Renesas SMARTBOND TINY DA14535 User Manual
Development kit (32 pages)
Computer Hardware Renesas DA9318 User Manual
Direct charging reference board (40 pages)
Summary of Contents for Renesas DA1458 Series
Page 1: Abstract
User Manual DA1458x Using SUOTA AN-B-10 Abstract This document describes how to run a SUOTA (Software-Update-Over-The-Air) demo from iOS and Android platforms, using Dialog SmartSnippets.
Page 2: Table Of Contents
Result in practise ....................31 11.2.2 Result in theory ....................31 11.3 Energy consumption to update a new image ..............32 12 Important notes ........................... 33 Revision history ..........................34 User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 2 of 35...
Page 3: Figures
Table 4: Choice of the external memory ....................8 Table 5: Address of the product header defined in the secondary bootloader project ......8 Table 6: Define the MTU size in the SW ..................... 30 User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 3 of 35...
Page 4: Terms And Definitions
8. AN-B-023, DA1458x Interfacing with external memory, Application note, Dialog Semiconductor 9. UM-B-019, DA1458x Beacon reference design User Manual, Dialog Semiconductor 10. AN-B-001, DA1458x Booting from serial interfaces, Application note, Dialog Semiconductor User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 4 of 35...
Page 5: Introduction
The “SPOTA Receiver” which receives the new software image, stores the image into the external FLASH/EEPROM device and runs the new image. It is the GATT server for SPOTA service (GAP Peripheral Role). User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 5 of 35...
Page 6: Table 2: Pros And Cons Of The Different Schemes
OTP must be burnt. power down mode and a software reset (e.g.: Watchdog) is triggered, the DA1458X will not boot up properly. The battery has to be removed and replaced. User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 6 of 35...
Page 7: Security, External Memory And Product Header Parameters
The table below describes where the security levels can be changed in the software. Table 3: Different security levels defined in the SW Parameter Variable/macro Source file gapm_write_att_perm gapm_task.h Different security levels User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 7 of 35...
Page 8: Choice Of The External Memory To Store The Images
The product header can be stored at any addresses. By default, it is stored at the address 0x1F000 of the external flash. This can be easily changed as shown below. For more info about the product header, see the section 5 or 6. User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 8 of 35...
Page 9: Hardware Needed
This jumper setting will also allow the DA1458X to boot from the external flash. Figure 4: BASIC development HW configuration • For more information about the basic reference design, please refer to [6]. User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 9 of 35...
Page 10: Running Suota With Scheme 1
Find the last updated (active) image. Load the active image to SRAM and execute the application • SUOTA for firmware update: Update specific image bank or update an older image User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 10 of 35...
Page 11: Running Suota With Scheme 2
Find the last updated (active) image. Load the active image to SRAM and execute the application • SUOTA for firmware update: Update specific image bank or update an older image User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 11 of 35...
Page 12: Use Of Python Tool To Create The Binary Files, Images & Programming The Flash
@File user_modules_config.h */ Example: #define EXCLUDE_DLG_SPOTAR /* included */ Define spotar.h. @File user_profiles_config.h Example: #include "spotar.h" Turn off sleep mode @File user_config.h Example: const static sleep_state_t app_default_sleep_mode = ARCH_SLEEP_OFF; User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 12 of 35...
Page 13
Build the project utilities\secondary_bootloader\secondary_bootloader.uvprojx and copy \Out\secondary_bootloader.hex to the folder named input. Copy paste temp folder contents inside DA1458x_SUOTA_Multipart_Binary_Generator input folder. Figure 8: Content of input folder User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 13 of 35...
Page 14
Execute project_multipart_binary_v2.py from command prompt. Figure 9: Python script in action Check the output folder and you will find fw_multi_part_spi.bin is created. Figure 10: Generated output folder User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 14 of 35...
Page 15: Details About The Python Script
Variable name BOOT_2ND_LOADER Default value "secondary_bootloader" Description Set the name of secondary bootloader file without file extension and represents the secondary_bootloader.hex file from the input folder. User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 15 of 35...
Page 16
Set memory location off-sets for firmware 1 image Variable name MEM_LOC_FOR_FW_2_IMG Default value "0x13000" Description Set memory location off-sets for firmware 2 image Variable name MEM_LOC_FOR_PRODUCT_HEADER Default value "0x1F000" User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 16 of 35...
Page 17
IMG_ENC_KEY_1 Default value "" Description If IMG_1_ENC is set True; AND IMG_1_ENC_MANUAL is set True then a set 32 byte user defined number Format: IMG_ENC_KEY_1 = "AAAABBBBCCCCDDDDEEEEFFFF00001111" User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 17 of 35...
Page 18: Creation Of The Fw_Multi_Part_Spi.bin For The Spi Memory Using Scheme 1
Scheme 1 has the OTP blank. Therefore, the secondary bootloader will have to be stored in the external memory. Using Scheme 1, the file fw_multi_part_spi.bin which will be programmed into the SPI memory has the outline architecture shown below: User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 18 of 35...
Page 19: Creation Of The Multi_Part.bin For The Spi Memory Using Scheme 2
Using Scheme 2, the file fw_multi_part_spi.bin which will be programmed into the SPI memory has the outline architecture shown below: User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 19 of 35...
Page 20: Preparing The Spi Memory: Erasing The Spi Memory
Preparing the SPI memory: erasing the SPI memory First of all, make sure you have selected the JTAG connection from the SmartSnippet window as shown below: User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 20 of 35...
Page 21: Figure 9: Select Jtag Connection
Figure 10: ERASE operation 5. Press the ‘Burn’ button After pressing the ‘burn’ button, the windows shown in Figure 11: NON-bootable mode Figure 11: NON-bootable mode (below) will appear: User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 21 of 35...
Page 22: Figure 12: Detection Of The Da1458X Advertisements
SUOTA application (This application is available from both the App store (iOS version) & the Google Play store (Android version)). Figure 12: Detection of the DA1458X advertisements User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 22 of 35...
Page 23: Running Suota From An Ios Platform
“Firmware rev.” field has the same value as the DA1458X_SW_VERSION string set during image creation. 4. After clicking on the “Update” button, the file selection screen appears. Select fw_2.img to update. User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 23 of 35...
Page 24: Figure 14: First 4 Steps To Use Suota With Ios
For example, in this demo description, the SUOTA_1.img was used for both image banks when creating the multi_part.bin (step 11). When the SUOTA app was used to User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 24 of 35...
Page 25
“Same Image Error” might occur if the two memory banks implementation is not well understood. User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 25 of 35...
Page 26: Running Suota From An Android Platform
‘File Selection’ screen is shown in the table below. Verify that the target image is listed on this screen. Step 1 Step 2 Step 3 Step 4 Figure 16: First four steps when using SUOTA with Android User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 26 of 35...
Page 27: Figure 17 Steps 5 And 6 When Using Suota With Android
Step 6 will appear, prompting the user to reset the SmartTag device. Step 5 Step 6 Figure 17 Steps 5 and 6 when using SUOTA with Android User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 27 of 35...
Page 28: Running Suota With Smartsnippets As A Suota Initiator
Port is displayed. 3. Press to download firmware and connect to DA1458X USB dongle. Upon connection, the Initiator will start to scan for advertising SUOTA Receiver devices. User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 28 of 35...
Page 29
RAM buffer you can afford using. Also, it has to be smaller than the size of the image. A size that is a multiple of 20 bytes (the size of the data packet per notification) is advised. User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 29 of 35...
Page 30: Total Time Vs Energy Consumption To Update A New Image
MTU size = 20 bytes/packet, which is the default size in the software. Table 6: Define the MTU size in the SW Parameter Variable/macro Source file attm_cfg.h MTU size ATT_DEFAULT_MTU User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 30 of 35...
Page 31: Total Time To Update A New Image
The total time needed to update a 27 kB image is around 10.4 seconds. Also, the time to erase the flash plus the writing operation time should be added. User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 31 of 35...
Page 32: Energy Consumption To Update A New Image
2. Every 12 packets (240 bytes) sent over the air, a WRITING operation is done. (time needed to receive 12 packets + writing operation: 92 ms, charge: 154 µC @3V). WRITING operation 7 received packets 5 received packets User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 32 of 35...
Page 33: Important Notes
SPOTA update if reset is requested by the Application layer. It is an optimal improvement made which does not exist in older SDK’s. User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 33 of 35...
Page 34: Revision History
06-July-2015 Initial version. 24-Feb-2016 Document consistent with SDK5 24-Feb-2016 Added description of python scripts for preparing images 02-Dec-2016 Added Important notes section 19-Jan-2022 Updated logo, disclaimer, copyright. User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 34 of 35...
Page 35
Dialog Semiconductor’s 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. User Manual Revision 1.3 19-Jan-2022 © 2022 Renesas Electronics CFR0012-00 35 of 35...
Table of Contents
Print
Rename the bookmark
Delete bookmark?
Delete from my manuals?
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL
Need help?
Do you have a question about the DA1458 Series and is the answer not in the manual?
Questions and answers