I'm evaluating the Arrow Quicksilver evaluation kit (based on Murata 1GC module which is based on CYW43907) and I want to build the OTA2-example that is included in WICED Studio (6.1.2 in my case) to test the OTA update capability.
I've built with success the snip.ota2_extract using this command :
But when I build the snip.ota2_example, I get an error. I use this command to build it :
snip.ota2_example-Quicksilver_EVL ota2_image download run
Here the console output :
Downloading DCT ... build/snip.ota2_example-Quicksilver_EVL/DCT.bin @ SFLASH_DCT_LOC=0x0020d000
./tools/common/Win32/mk_wicedfs32 build/snip.ota2_example-Quicksilver_EVL/filesystem.bin build/snip.ota2_example-Quicksilver_EVL/resources/Staging/
Creating Filesystem Done
Illegal division by zero at ./tools/text_to_c/sector_count.pl line 49.
Finished Building OTA2 Failsafe
Building apps lookup table
tools/makefiles/wiced_apps.mk:454: *** OTA2 Factory Reset Image Info File Not built!. Stop.
make.exe: *** Waiting for unfinished jobs....
make: *** [main_app] Error 2
Makefile:351: recipe for target 'main_app' failed
What I've understood so far, it's when I run this command: "snip.ota2_example-Quicksilver_EVL ota2_image" (without the download and run) I was getting an overlapping error :
OTA2 component OTA_APP_FILE overlaps FILESYSTEM_FILE by 0x7000 bytes Adjust platform's "ota2_image_defines.mk file" !!
start: 0x00225000 padded size: 0x00047000 end: 0x0026c000 :: OTA_APP_FILE (build\snip.ota2_extract-Quicksilver_EVL\binary\snip.ota2_extract-Quicksilver_EVL.stripped.elf)
start: 0x00265000 padded size: 0x0007d000 end: 0x002e2000 :: FILESYSTEM_FILE (build\snip.ota2_example-Quicksilver_EVL\filesystem.bin)
So what I've done, I've modified the following file: "platforms/Quicksilver_EVL/ota2_image_defines.mk"
And I've modified the line #98:
# File system
OTA2_IMAGE_CURR_FS_AREA_BASE := 0x00265000 # 876k 0x000DB000
# File system
OTA2_IMAGE_CURR_FS_AREA_BASE := 0x0026F000 # 876k 0x000DB000
To give more space to the snip.ota2_extract binary to fit in its memory space.
After that modification, I am able to build the snip.OTA2_example but it gets the same exact message when I try to put it on the target (download and run).
Do you have any idea how we can fix that issue?
Thanks in advance,
Mister Kim Forest