Tool/software:
Error[e16]: Segment DATA16_ID (size: 0xf3c align: 0x1) is too long for segment definition. At least 0x34e more bytes needed. The problem occurred while processing the segment placement command "-Z(CONST)DATA16_C,DATA16_ID,TLS16_ID=5C00-DF7F", where at the moment of placement the available memory ranges were "CODE:d392-df7f" Reserved ranges relevant to this placement:
5c00-df7f DATA16_C
下面是我的XCL文件的配置
-Z(CONST)DATA16_C,DATA16_ID,TLS16_ID=5C00-DF7F
// ---------------------------
// Code
//
-Z(CODE)BOOT=E000-FF7F
-Z(CONST)ONLINE_CRC=E000-FF7F
-Z(CODE)INT_CODE=DF80-DFFF
-Z(CODE)CSTART,ISR_CODE,CODE16=5C00-DF7F
// -------------------------------------
// All memory 0-FFFFF
//
// ---------------------------
// Code
//
-P(CODE)CODE=5C00-DF7F,10000-45BFF
// ---------------------------
// Constant data
//
-Z(CONST)DATA20_C,DATA20_ID,CODE_ID,DIFUNCT,CHECKSUM=5C00-DF7F,10000-45BFF
// -------------------------------------
// Special vectors
//
-Z(CODE)INTVEC=FF80-FFFF
-Z(CODE)RESET=FFFE-FFFF