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.

Concerto-including a binary file in the .out file

Hello,


I have some const data in the form of two binary files that I would like to load to a specific section/memory address range together with the other initialized sections.

What is the best way to do this, I would like to have only one .out file that includes both my binary data and the rest of the project compiled code.

My suggestion would be to make a little script that translates my binary data into source code of the form

#pragma SET_DATA_SECTION("bindata")

const char largeArrary[size] = { 0xAA, 0xBB, ..........and so on};

and then link the bindata to the specific range I have in mind.
But there must be a better more direct way?

Best regards,

Christian