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.

how to choose SARAM/DARAM

Hello, is it possible to force C compiler to put certain variables in DARAM or SARAM? For example, there are two global arrays:

char str_saram[18];

char str_daram[18];

and I want the first to be placed in saram, and the second in daram. I've tried to add these lines at the end of linker command file:

 .data:str_saram >> SARAM0
 .data:str_daram >> DARAM0

but it changes nothing - both strings are placed in  DARAM1 (0x2abb and 0x2acd). How should it be done?