Table of Contents

Advertisement

Quick Links

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.

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

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