My device is an nRF52840 running a C Code application that is built on nRF5_SDK_17.1.0
I am implementing a FOTA solution where a hex file fw image and a .dat file will be dowloaded from the cloud, the fw image being written
to Bank1 and the .dat file containing the necessary DFU info written to it's appropriate space.
This functionality has been confirmed to work via the use of the various available Nordic command line tools (ie. nrfjprog) to write flash.
The question now is how to download the FW hex file and write it to Flash Bank 1?
This data is coming in HTTP chunks through a Telit modem via AT#HTTPQRY and AT#HTTPRCV=0 commands to the modem.
This will require me to parse the Intel Hex records and convert the Ascii data to binary records that I can then write to Flash.
I feel like I'm once again reinventing the wheel here...
Do I really have to write a hex record parser?
Am I overlooking some much easier way to accomplish this?
It seems like there should be some code out there that already does this (Hex file parsing, etc).
Suggestions?