Начинаю осваивать IAR. Использую макетку с LPC2148. Попытался динамически выделить память на 20 байт и получил ошибку линкера
Инструкция: temp = (char *) calloc(20, sizeof(char));
Ошибка: Linking Error[e16]: Segment HEAP (size: 0x8000 align: 0x2) is too long for segment definition. At least 0x2310 more bytes needed. The problem occurred while processing the segment placement command "-Z(DATA)HEAP+8000=40000000-40007FFF", where at the moment of placement the available memory ranges were "CODE:40002310-40007fff" Reserved ranges relevant to this placement: 40000000-4000020f DATA_Z 40000210-4000220f CSTACK 40002210-4000230f IRQ_STACK 40002310-40007fff HEAP
Видимо я что-то не правильно настроил. Подскажите где смотреть.
--------------------
Иван Сусанин - первый полупроводник
|