thanks for the info provided. I have found the project folder and imported into the eclipse / on-semi workspace. Building the project reports an error:
“make: *** No rule to make target ‘stack/fota_stack.o’, needed by ‘fota.elf’. Stop.”
I have tried using a command prompt (Windows) with the PATH correctly setup for arm binaries and run “buildfotalib.cmd” from the generate Release folder. This reports multiple errors but I’m unsure what the argument “%1” is required. Please could you supply some for details on this.
sorry missed this at the top of the console output:
16:56:26 **** Incremental Build of configuration Release for project fota ****
make -j8 all
C:/Program Files (x86)/ON Semiconductor/IDE_V126.96.36.199/arm_tools/bin/make --no-print-directory pre-build
‘Invoking: Build FOTA stack’
“…/tools/buildfotastack.cmd” “C:/Users/XXX/ON_Semiconductor/PACK/ONSemiconductor/RSL10/3.5.285/lib/” Release
‘…’ is not recognized as an internal or external command,
operable program or batch file.
make: [makefile:79: pre-build] Error 1 (ignored)
I have already added the file makefile.init so it gets this far (Windows).
As for sending a .fota file to a device, there are two approaches that can be used.
The first will be UART based and communicated to the Bootloader portion of the firmware. The ‘updater.py’ script that does this can be found in the ‘Bootloader’ sample project under the scripts folder.
The second option is the DFU Service based method that requires you to have an already function FOTA sample firmware on your device (a full FOTA stack contains: Bootloader, Standalone FOTA DFU & BLE Library, Custom Firmware). The ‘RSL FOTA’ application on Android and iOS is able to communicate this update with the Standalone FOTA DFU. If you wish to implement your own smartphone app, the best place to start is looking at the wireless update process within the ‘fota’ project you have just build.
I need to use BLE for DFU. A quick look at the relevant sources it looks complicated! Encode & decode frames etc. Are the sources available for the iOS application? Or is there a PC equivalent that use a BLE dongle?