lambda-shuttle / mbed-os-example-ble-fota

MbedOS Example for BLE FOTA Service
Apache License 2.0
0 stars 0 forks source link

Build process automation #5

Closed lambda-shuttle closed 3 years ago

lambda-shuttle commented 3 years ago

Please refer to the associated issue (#1) for more information. In summary, a cli tool fota.sh was created to aid the end-user in setting up and building the BLE FOTA examples. The tool takes in as arguments the example, target board, mount point of target board, and toolchain.

Note: If the mount point is not provided (it could be the case that an end-user is trying to build without the board connected), then the target binary is not flashed. This is especially useful for building the examples with a CI workflow.

In the case of the MCUboot example, the "factory firmware" is saved and would require manual transfer when the board is indeed connected. In either case, the demonstration step would be the only part that requires manual intervention from the user.

Important: For now, the tool assumes the target board, toolchain, and example unless otherwise specified by the end-user. Currently, the only board and toolchain supported are NRF52840_DK and GCC_ARM respectively.

Closes #1