I encounter a problem when I am learning "Bootoader" in "ZStack-CC2530-2.5.1a".
I found that "cc2530-sb.xcl" file in project "\Texas Instruments\ZStack-CC2530-2.5.1a\Projects\zstack\Samples\GenericApp" has following settings:
-D_CODE_START=0x2000
-Z(CODE)INTVEC=_CODE_START
there is no probem.
But when I build a very simpe project myself, and set the same xcl file which has same _CODE_START and INTVEC settings, I encountered a error:
Error[e18]: Range error, The INTVEC segment must begin at address zero
Where $ = #no label found# [0x2000]
in module "CSTARTUP" (C:\Program Files\IAR Systems\Embedded Workbench 6.0_0\8051\LIB\CLIB\cl-pli-nlxd-1e16x01.r51),
offset 0x0 in segment part 5, segment INTVEC
What: 0 + SFB(INTVEC) [0x2000]
Allowed range: 0x0 - 0x0
Operand: #no label found# [0x2000]
in module CSTARTUP (C:\Program Files\IAR Systems\Embedded Workbench 6.0_0\8051\LIB\CLIB\cl-pli-nlxd-1e16x01.r51),
Offset 0x0 in segment part 5, segment INTVEC
Error while running Linker
Why this happened? The application in SBL must begin at "0x2000", but why has error ?