Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 6 months ago.
Remote firmware updating OTA from MTS Dragonfly?
Are there any examples for firmware update OTA from Dragonfly over cellular?
Question relating to:
1 Answer
7 years, 6 months ago.
Amod,
Our wiki page about this should be helpful.
Cheers,
Mike
We don't have any complete examples, because that would require hosting actual new firmware somewhere. Is there a specific part of the process you're having trouble with?
-Mike
posted by 26 Apr 2017Sorry for the late reply, I went through the above documentation, my question is what actually is the user application? Can we upgrade firmware bin file which is downloaded using HTTP?
posted by 12 May 2017The user application is whatever application you write to run on the Dragonfly. Where the new firmware is located and how it is downloaded must be known by the application and is outside the scope of the bootloader.
Your application must connect to where the new firmware is hosted, download it, put it into the filesystem with the proper name, and reset. The bootloader will take care of the rest.
posted by 12 May 2017Thanks Mike,
I am able to fetch the bin file and put it into the file system with the proper file name, but when i reset the system, I get error the following error:
- [ERROR] validate_firmware: lseek failed
- [ERROR] update_firmware: Failed to validate new firmware
I have also attached screenshot of the another error I faced
posted by 15 May 2017Amod,
Did you build your new firmware using mbed-cli or the online compiler? Those tools append a CRC to the firmware so the bootloader can validate it before flashing. According to the log you posted, the CRC check failed, which means the FW was corrupted or you built it using a tool that didn't append the CRC like the mbed tools do.
-Mike
posted by 15 May 2017