I need to relacate constant data like:
const byte geh_interface[18] = { 18, 0x3, 'H',0, 'I',0, 'D',0, '-',0, 'L',0, 'E',0, 'D',0, 's',0 };
and I see that it places it:
geh_interface 862B 12 18 1 .rodata
How can I relocate read only data?
Thanks,
Robert
解決済! 解決策の投稿を見る。
I may have answerd this myself:
in SECTIONS
Bootloader = READ_ONLY 0xD000 TO 0xFFAD;
in Placement
Bootloader_CONST INTO Bootloader;
In code:
#pragma CONST_SEG Bootloader_CONST
I may have answerd this myself:
in SECTIONS
Bootloader = READ_ONLY 0xD000 TO 0xFFAD;
in Placement
Bootloader_CONST INTO Bootloader;
In code:
#pragma CONST_SEG Bootloader_CONST