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.

CCS/MSP430f47187: Integrating binary ressource to project

Part Number: MSP430F47187


Tool/software: Code Composer Studio

Hi everyone.

i'm searching a way to integrate a small binary file as ressource to my CCS MSP430 project in order to use it inside my software.

how can i do that ?

i mean i should tweak the linker command but have not found any option related to this.

thank you

  • What do you want the linker to do?

    Can you do what the image reformer does and create a file with a real C object?

    i.e, write a simple program to convert 1,0,1,1,0,0,1,1...

    to

    uint8_t binary_data[] = {0xB3, ...}

    It is even easier if the ti compiler accepts the 0b10110011 extension.
  • i have a component on my board which i need to upgrade FW.
    this FW is given by the manufacturer as a raw binary file.
    so i need to get these raw data to the flash memory of MSP430 in order to my own software can read the flash array and send it to the external component.
    at this time i have converted the bin file to simple C array and using it as is.
    but this is not a good solution because of converting needs.

    so i imagine, like GCC does, to integrate the bin file as is and tell linker to add these raw data to the final software with a Symbol in order to do same thing as here above.
    as an external ressource in fact i prefer to not modify....