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.

CC2540 flash memory size

Other Parts Discussed in Thread: CC2540, CC2530

Dear all,

I'm trying to modify the source code given by TI. My CC2540 has 256KB of memory size but if I compile my code with IAR I get this error:

Error[e104]: Failed to fit all segments into specified ranges. Problem discovered in segment XDATA_N. Unable to place 2 block(s) (0xc02 byte(s) total) in 0xbdf byte(s) of memory. The problem occurred while processing the segment placement command "-P(XDATA)XDATA_N=_XDATA_START-_XDATA_END", where at the moment of placement the available memory ranges were "XDATA:1321-1eff"

To let my code compile I have to remove some constants and on my .map file I get:

 111 153 bytes of CODE  memory

      26 bytes of DATA  memory (+ 66 absolute )

   7 247 bytes of XDATA memory

     192 bytes of IDATA memory

       8 bits  of BIT   memory

   3 701 bytes of CONST memory

Than it looks like IAR compiles for a 128 KB chipset....how can I set IAR in order to compile for a 256 KB chipset?

Many thanks!

Marco