I want to update the firmware from a file stored in a USB flash drive. I'm going to write my custom bootloader that will read the file(s) containing the firmware and write its content in flash memory.
I need advice about the file format: CSS can produce ELF or HEX file. I'd like to have a source c code that parse the file to use as baseline for the development. I couldn't find source code for (TI) ELF file format.
There are many parser available for Intel HEX file, but the files generated by C2000 Hex Utility seem to be in a custom format: the lines start with percent symbol instead of colon, for example.
So my questions are:
- is there a way to generate standard Intel HEX files from CSS?
- is there c source code available to parse the HEX file generated by C2000 Hex Utility?
- is there c source code available to parse the .out file generated by CSS?
Thank you for help.