- Custom Development
Ex and Re bootloaders are implemented to re-program the internal flash of Ex and Re. PSoC Bootloader Host tool may be used to communicate with Ex and Re bootloaders to download new firmware.
Ex and Re bootloaders cannot be used to flash the target for the first time. Please refer to Ex or Re Firmware Update wiki page for general guidelines on how to flash a brand new device.
.cyacdfile which has embedded bootloader and new firmware inside
Follow the instructions below to update existing Ex or Re firmware.
Refer to PSoC Bootloader Host installation wiki page if the tool hasn't been installed yet.
Mnon PCB. If the connector is exposed, the enclosure doesn't need to be removed. The FFC contacts have to face the PCB (ie. not visible from above).
./manage_builder.sh ExecuteFieldUpdate-[HW_VERSION] [FILENAME]
./manage_builder.sh ExecuteFieldUpdate-rigid3.0 "C:\GitHub\fx-rigid-re\fx-rigid-re.cydsn\CortexM3\ARM_GCC_541\Debug\fx-rigid-ex.cyacd"
./manage_builder.sh RegulateFieldUpdate-[HW_VERSION] [FILENAME]
./manage_builder.sh RegulateFieldUpdate-rigid3.0 "C:\GitHub\fx-rigid-re\fx-rigid-re.cydsn\CortexM3\ARM_GCC_541\Debug\fx-rigid-re.cyacd"
User should see messages on the terminal as shown in below screenshots through a successful firmware update.
User cannot terminate field update process once the bootloader is activated. It is also not recommended to unplug USB cable during field update process or terminate any running script to abort field update. Most likely, this may cause flash content corruption. If either power loss or script termination occurs during field update in some way, please refer to Ex or Re Firmware Update wiki page to flash the target.
Below table shows the color codes during firmware updating process
|LED Color||LED State|
If an error occurs, the script would try to re-program the target 3 more times. If all attempts are resulted in failure, the script terminates itself without updating existing software. Once the script is terminated, it is recommended to make a fresh start by re-programming Mn before executing the script again.
Programming may be terminated with error #1 like shown below. If the script fails at all attempts, check the filename and directory provided.