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.

CC1312 error #10099-D:

我用sensor_CC1312R1_LAUNCHXL_tirtos_ccs编译后有这个错误

Description Resource Path Location Type
<a href="processors.wiki.ti.com/.../10099"> program will not fit into available memory. placement with alignment fails for section "flash_last_text" size 0x1f74 . Available memory ranges: cc13x2lp.cmd /sensor_CC1312R1_LAUNCHXL_tirtos_ccs line 108 C/C++ Problem

"../cc13x2lp.cmd", line 108: error #10099-D: program will not fit into available memory. placement with alignment fails for section "flash_last_text" size 0x1f74 . Available memory ranges:
FLASH_LAST size: 0x2000 unused: 0x2000 max hole: 0x2000
error #10010: errors encountered during linking; "sensor_CC1312R1_LAUNCHXL_tirtos_ccs.out" not built

#define FLASH_BASE 0x00000000
#ifdef ONE_PAGE_NV
#define FLASH_SIZE 0x54000
#define FLASH_NV_BASE 0x54000
#define FLASH_NV_SIZE 0x2000
#else
#define FLASH_SIZE 0x52000
#define FLASH_NV_BASE 0x52000
#define FLASH_NV_SIZE 0x4000
#endif
#define FLASH_LAST_BASE 0x56000
#define FLASH_LAST_SIZE 0x2000
#define RAM_BASE 0x20000000
#define RAM_SIZE 0x14000


/* System memory map */

MEMORY
{
/* Application stored in and executes from internal flash */
FLASH (RX) : origin = FLASH_BASE, length = FLASH_SIZE
/* FLASH NV */
FLASH_NV (RWX) : origin = FLASH_NV_BASE, length = FLASH_NV_SIZE
/* Last flash page */
FLASH_LAST (RX) : origin = FLASH_LAST_BASE, length = FLASH_LAST_SIZE
/* Application uses internal RAM for data */
SRAM (RWX) : origin = RAM_BASE, length = RAM_SIZE
}

/* Section allocation in memory */

SECTIONS
{
.intvecs : > FLASH_BASE

flash_last_text
{
mac_user_config.obj(.text)
nvoctp.obj(.text)
macTask.obj(.text)
hmac_rom_init.obj (.const)
osal_port.obj (.text)
} > FLASH_LAST

.text : > FLASH

config_const { mac_user_config.obj(.const) } > FLASH

.const : > FLASH
.constdata : > FLASH
.rodata : > FLASH
.cinit : > FLASH
.pinit : > FLASH
.init_array : > FLASH
.emb_text : > FLASH
.ccfg : > FLASH_LAST (HIGH)

GROUP > SRAM
{
.data
.bss
.vtable
.vtable_ram
vtable_ram
.sysmem
.nonretenvar
} LOAD_END(heapStart)

.stack : > SRAM (HIGH) LOAD_START(heapEnd)
}