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.

IWR1642: Can I just add some data into the bin? I add some data at the end of bin file, but it can not boot

Part Number: IWR1642
Other Parts Discussed in Thread: UNIFLASH

Can I just add some data into the bin? I add some data at the end of bin file, and flash the new bin to FLASH by uniflash.

But finally I found it can not boot correctly. Is there any check on file by boot loader?

  • Hi Wang,

    The process of generating a flash-able binary image for xWR1xxx devices is highlighted in the MMWAVE-SDK user's guide under section 6. 5: xWR1xxx Image Creator and it is described in detail in the Image Creator User Guide available in the SDK under C:\ti\mmwave_sdk_02_00_00_04\packages\scripts\ImageCreator\xwr16xx\Image_Creator_User_Guide.pdf. The binary image has a well defined format as described in the image creator user guide and is CRC protected so you cannot simply add data to the end of the image.

    Thanks

    -Nitin

  • hi, Nitin,

    Thanks for your reply.
    I have read image creater user guide alreaady, and I find the CRC is used in META header which is followed by RPRC image files.
    They are all about image type, size, offset and so on, and I do not see clearly why I can't add data to the end.

    Or in other words, could you help to provide a way to add some data, e.g. radar ID, to the end of image?

    Thanks!
  • Hi Wang,

    One way you can add an identifier to the build could be to define a global string (i.e. char array) variable containing the identifier. You can choose to define a memory section for it in the linker command file so that the string is always in the same location in memory. This will get compiled into the binary as a global variable and you should also be able to read the string using standard file utilities such as cat and grep e.g.
    For example, if your identifier contains the string RadarId, you can search for it in the binary file as shown below:

    $ cat "binary_image.bin" | grep -a "RadarId"

    Regards
    -Nitin