This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi there,
while processing the given documentation on the OAD SimplelinkBLEPeripheral sample project I stumbled over some cryptic statements.
The OAD Guide cites:
"Unlike OAD Image for On-chip OAD, OAD Image for Off-chip OAD doesn’t have the metadata embedded. Instead, it has just 2-byte CRC and 14-byte 0xFF’s in the beginning. Anyway, the first 16 bytes can be ignorable."
I would interpret that as the fact that the first block written to the Image Block Characteristics is 2 bytes CRC and 14 bytes of 0xFF's, correct ?
Obviously after writing the Metadata to the Image Notify Characteristics.
About the Metadata structure:
CRC is a CRC16
CRC shadow is the binary complement of the CRC
Version needs to be always higher then the version on chip or 0, correct? so to "reflash" the device with the same image loaded previously Version can be set to 0 ?
Length it says it is 4 times the Length in byte, in view from somebody processing the hex file it is 1/4 of the length of the to bin conversion of the hex file.
Start Address in case of off chip OAD should be always 0, correct?
Thanks for any help
Hi Zahid,
thank you for replying, however, I tried to be very specific in my question and your answer does leave me alone with what I was asking regarding the hex file computation.
I am asking this because we are developing an Android app performing OAD.
This App has to compute the hex file created by CCS, this is the point of view here.
So by guessing what you say is, that the off chip OAD image created by CCS is valid entirely, the first 16 byte are not to ignore.
Second, the hex file created by CCS does include only data records, not one start address record, and obviously the end of file record.
by guessing on your answer, the start address of that image is the start address given in the first data record of the hex file.
Please, may you confirm these statements ?
Thanks in advance.
Hi Ralph,
If you are making an Android app, I would follow same procedure as our SensorTag Android app:
https://git.ti.com/sensortag-20-android
specifically look in the FwUpdateActivity_CC26xx.java for image setup implementation.
Best wishes
Hello Ralph,
Ralph Deffke said:The generated hexfile is about 128Kb big, the hex file does use, however, 16bit address field hence address range of 65534
This statement is not entirely correct; the hex files are generated in Intel Hex format and allow addressing up to 32bits. Please see the Wikipedia article on Intel Hex or similar articles on the Intel Hex standard. Pay special attention to the "Extended Linear Address" record type.
Processing of hex files is not provided by TI, although some examples are provided using external tools (e.g., hex2bin).
Best wishes