Other Parts Discussed in Thread: CC2531, TIMAC
Dear Community,
I'm using the CC2531 with 256kb and the TIMAC (Version 1.5.0, May 09, 2013) with the default "banked code model", TI linker file "ti_51ew_cc2531b.xcl" (from TIMAC) and IAR CSTARTUP file (from C:\Program Files (x86)\IAR Systems_8051\Embedded Workbench 6.5\8051\src\lib, IAR 8.30.2).
I want to modify that linker configuration file (of the firmware) in context of bootloader creation (making space for the bootloader code). I encountered a problem when changing the segment location of XDATA_ROM_C_FLASH from
-P(CODE)XDATA_ROM_C_FLASH=0x18000-0x1FFFF //-> WORKS
to one of the following variants
-P(CODE)XDATA_ROM_C_FLASH=0x48000-0x4FFFF //-> ERROR
-P(CODE)XDATA_ROM_C_FLASH=0x48000-0x49FFF //-> ERROR
-P(CODE)XDATA_ROM_C_FLASH=0x4000-0x7FFF //-> ERROR
-P(CODE)XDATA_ROM_C_FLASH=0xC000-0xFFFF //-> ERROR
The error that I notice is a undefined firmware behaviour, e.g. simple operations do not work correctly and generally the firmware crashes.
Question: Is there any reason why the location of XDATA_ROM_C_FLASH is restricted to bank 1?