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.

CC2652R: Command line or programmatically flashing cc2652r

Part Number: CC2652R
Other Parts Discussed in Thread: CC2652P, UNIFLASH

Hi,

We have a requirement wherever we want to store custom data into internal flash while programming.
Currently we are using a DMM project and I am combining the BIM hex and application binary using the srec tool.

However I want to add additional metadata information of the HW into the the image and then flash that onto cc2652R.

Steps:
1. Build combined hex of BIM and Application using srec. (Original hex).
2. Take inputs about hardware through a UI/console and create custom Metadata hex to write into internal flash at a fixed location. 
(Need inputs on how I could create a custom hex image which writes to a particular location in memory, alternatively I could create a bin if I could control where to write in memory)
3. Combine the Original hex with Metadata hex
4. Identify target device. We are using CC2652R as well as CC2652P. (Need inputs on how I could do this). 
5. Choose corresponding hex and perform OTA. ( through a script and run  uniflash command line tool to program and verify).

Currently we are just using the Original hex to flash, but I want to write more info to internal flash in a reserved location based on certain HW.

Any inputs would be greatly helpful

Thanks
Akhilesh