1 Reply Latest reply on Aug 21, 2020 2:11 AM by ZhengbaoZ_96

    Laird Sterling-EWB OTA

    BiCh_4608001

      Hi, I run code(43xxx_Wi-Fi\otr_fr) on Sterling-EWB(Laird).

      Is the OTA flash layout belong to internal flash?

       

      My question is how to setup Internal(STM32F412 1MB)+External(2MB) flash layout for OTA? in DCT?

      internal flash: bootloader / DCT / Current Application

      External flash: FileSystem / APP0 / APP1

       

      WICED version: 6.4

      OS: ThreadX

      Platform: GitHub - LairdCP/ewb_wiced_demo: Demo firmware for Laird Connectivity Sterling-EWB

       

      註解 2020-08-20 072722.png

       

      Many thanks.

      Billy C

        • 1. Re: Laird Sterling-EWB OTA
          ZhengbaoZ_96

          Hello:

              I am just print out the OTA_fr compile and download log for your refrence ..

          // bootloader to internal flash

          Downloading Bootloader ...

              \

              .\tools\OpenOCD\Win32\openocd-all-brcm-libftdi.exe -s .\tools\OpenOCD\scripts \

                  -f ./tools/OpenOCD/CYW9WCD1EVAL1.cfg \

                  -f ./tools/OpenOCD/stm32f2x.cfg \

                  -f ./tools/OpenOCD/stm32f2x-flash-app.cfg \

          // DCT to internal flash

          Downloading DCT ...

          .\tools\OpenOCD\Win32\openocd-all-brcm-libftdi.exe -s .\tools\OpenOCD\scripts -f ./tools/OpenOCD/CYW9WCD1EVAL1.cfg -f ./tools/OpenOCD/stm32f2x.cfg -f ./tools/OpenOCD/stm32f2x-flash-app.cfg -c "verify_image_checksum build/snip.ota_fr-BCM943362WCD4/DCT.stripped.elf" -c shutdown >> build/openocd_log.txt 2>&1 && echo No changes detected && "./tools/common/Win32/echo.exe" ||

           

          //FR_APP to external flash

          echo Downloading FR_APP build/snip.ota_fr-BCM943362WCD4/binary/snip.ota_fr-BCM943362WCD4.stripped.elf at sector 1  address 4096...

          Downloading FR_APP build/snip.ota_fr-BCM943362WCD4/binary/snip.ota_fr-BCM943362WCD4.stripped.elf at sector 1 address 4096...

          .\tools\OpenOCD\Win32\openocd-all-brcm-libftdi.exe -s .\tools\OpenOCD\scripts -f ./tools/OpenOCD/CYW9WCD1EVAL1.cfg -f ./tools/OpenOCD/stm32f2x.cfg -f apps/waf/sflash_write/sflash_write.tcl -c "sflash_write_file build/snip.ota_fr-BCM943362WCD4/binary/snip.ota_fr-BCM943362WCD4.stripped.elf 4096

           

          echo Downloading DCT_IMAGE build/snip.ota_fr-BCM943362WCD4/DCT.stripped.elf at sector 82 offset 335872 size 7...

          Downloading DCT_IMAGE build/snip.ota_fr-BCM943362WCD4/DCT.stripped.elf at sector 82 offset 335872 size 7...

          .\tools\OpenOCD\Win32\openocd-all-brcm-libftdi.exe -s .\tools\OpenOCD\scripts -f ./tools/OpenOCD/CYW9WCD1EVAL1.cfg -f ./tools/OpenOCD/stm32f2x.cfg -f apps/waf/sflash_write/sflash_write.tcl -c "sflash_write_file build/snip.ota_fr-BCM943362WCD4/DCT.stripped.elf 335872 BCM943362WCD4-SDIO 0 0" -c shutdown >> build/openocd_log.txt 2>&1

           

          //resource filesystem to external flash

          echo Downloading resources filesystem ... build/snip.ota_fr-BCM943362WCD4/filesystem.bin at sector 89 size 53...

          Downloading resources filesystem ... build/snip.ota_fr-BCM943362WCD4/filesystem.bin at sector 89 size 53...

          .\tools\OpenOCD\Win32\openocd-all-brcm-libftdi.exe -s .\tools\OpenOCD\scripts -f ./tools/OpenOCD/CYW9WCD1EVAL1.cfg -f ./tools/OpenOCD/stm32f2x.cfg -f apps/waf/sflash_write/sflash_write.tcl -c "sflash_write_file build/snip.ota_fr-BCM943362WCD4/filesystem.bin 364544 BCM943362WCD4-SDIO 0 0" -c shutdown >> build/openocd_log.txt 2>&1

           

          // look up table to external flash.

          Downloading apps lookup table in wiced_apps.mk ... build/snip.ota_fr-BCM943362WCD4/APPS.bin @ 0x0000 size

          .\tools\OpenOCD\Win32\openocd-all-brcm-libftdi.exe -s .\tools\OpenOCD\scripts -f ./tools/OpenOCD/CYW9WCD1EVAL1.cfg -f ./tools/OpenOCD/stm32f2x.cfg -f apps/waf/sflash_write/sflash_write.tcl -c "sflash_write_file build/snip.ota_fr-BCM943362WCD4/APPS.bin 0x0000 BCM943362WCD4-SDIO 0 0" -c shutdown >>

           

          // OTA_FR to internal flash

          Downloading Application ...

          .\tools\OpenOCD\Win32\openocd-all-brcm-libftdi.exe -s .\tools\OpenOCD\scripts -f ./tools/OpenOCD/CYW9WCD1EVAL1.cfg -f ./tools/OpenOCD/stm32f2x.cfg -f ./tools/OpenOCD/stm32f2x-flash-app.cfg -c "verify_image_checksum build/snip.ota_fr-BCM943362WCD4/binary/snip.ota_fr-BCM943362WCD4.stripped.elf" -c shutdown >> build/openocd_log.txt 2>&1 && echo No changes detected && "./tools/common/Win32/echo.exe" || .\tools\OpenOCD\Win32\openocd-all-brcm-libftdi.exe -s .\tools\OpenOCD\scripts -f

           

          So what I considered is the OTA update image will be processed to external flash after filesystem.

          You can calculate the size info after download to see if your flash size is big enough .

          1 of 1 people found this helpful