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.

TMS320F28335: How to initialize the DATA_SECTION variables

Part Number: TMS320F28335


I used DATA_SECTION many times for applications for storing the data, but never had the need to initialize those variables.

I am storing long data of arrays in DATA_SECTION in XINTF zone 7.

If all the variables needs to be initialized with same values, i would use 'for loop'

If number of variables are small, i would initialize individually.

Below array is for example. Actual size of the buffer would be around 200+ length.

Eg: Array_Input_Buffer[] = {1, 1.11896985452742, 1.08979021355160,0.938253665384576};

how to initialize the buffer ?

I am using CCS9 with v20.2.4 LTS compiler.