Page 1 of 1

BIN file validation for OTA

Posted: Wed Sep 05, 2018 9:14 am
by davdav
Hi all,

I would like to do an OTA in this way:

-I download a BIN file from a server from my factory APP
-I store the BIN file in an SD card
-I read the file and validate the BIN file
-If the validation is OK, I read the file and write the ota partition APP

This seems feasible. What I would like to check is if the BIN file has not been corrupted during reception.
Is there a CRC (or other validation method) inside the BIN file generated by the compiler?

Thanks

Re: BIN file validation for OTA

Posted: Mon Oct 26, 2020 7:01 pm
by 01xDaniel
I'm looking for the same functionally, did you find a solution?

Re: BIN file validation for OTA

Posted: Wed Dec 02, 2020 3:50 pm
by davdav
01xDaniel wrote:
Mon Oct 26, 2020 7:01 pm
I'm looking for the same functionally, did you find a solution?
Hi,
I solved using MD5 and calling my APP file as "myapp_<MD5string>.bin" where <MD5string> is a 32characters string composed of the MD5 hash.