cancel
Showing results for 
Search instead for 
Did you mean: 

Using Hex file or Bin file for FOTA?

NodnarbCas
Associate

Hi community!
I've been tasked with designing and programming a new product that includes a bootloader and LTE communication, the main issue I'm facing now is to design the whole updating and downloading process, supposedly I'll store the update in a server where I would access through HTTPS using a SIM7600 but I haven't decided if I should use a hex file or a bin file. I'm very new to this kind of "architectural design" and this is the first time I'm getting anywhere near a FOTA product (in terms of design and programming).

So, what should I use? If I use a hex file I would have to add some more process time for converting ASCII values to Hex, but the good thing is that I get the size, address, checksum, etc, in the line of hex. Using the binary file is more complicated as far as I see, how is it stored? how is the data structure? is it similar to the hex in where the first 8 bits are the size of the data and the 16 bits are the address?

I'm sorry if this sounds like a *** question but I need help and there's no one in the organization to help me since the department is new (I'm the senior firmware engineer).

How would you address these problems? And is it even possible to send hex or binary data through HTTPS without turning it into ASCII?

1 REPLY 1
TDK
Guru

BIN file seems easier. A BIN file is raw data only, no overhead, no address locations, no metadata. Flash that to 0x08000000 (or wherever) and your program will run.

If you feel a post has answered your question, please click "Accept as Solution".