[an error occurred while processing this directive]
|
Описываю константу следуюшим образом:
*******************************************
#pragma DATA_SECTION(Test_1, "my_rom")
const Uint16 Test_1 = 0xFF;
*******************************************
В cmd-файле выдиляю область памяти следующим образом
*******************************************
MEMORY
{
PAGE 0: /* Program Memory */
FLASH_GHIJ : origin = 0x3D8000, length = 0x00C000
PAGE 1 : /* Data Memory */
}
SECTIONS
{
my_rom : > FLASH_GHIJ, PAGE = 0
}
*******************************************
При загрузке програмы симулятор пишит следуюшее:
*******************************************
Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.
*******************************************
И как пишит LOADER - ничего в память не записалось.
НО ПОЧЕМУ? ЧТО Я НЕ ТАК ДЕЛАЮ?
ПОДСКАЖИТЕ? ИЛИ ДАЙТЕ ПРИМЕР?
E-mail: info@telesys.ru