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.

CC2541 Compilation for OAD with IAR 8.30

Other Parts Discussed in Thread: CC2541, CC2540

I'm trying compile the example project "SensorTag" that comes with BLE Stack 4.0 into an image that I can upload via OAD. Hence I've set up the project according to "BLE Developer’s Guide for Over-the-Air Download for CC254x Version 1.2".

I've already erased the "+_NR_OF_VIRTUAL_REGISTERS" part from "cc254x_f256_imgA.xcl", to fix the common ISTACK error, and now I receive another error:

Error[e104]: Failed to fit all segments into specified ranges. Problem discovered in segment BANKED_CODE. Unable to place 78 block(s) (0x1e203 byte(s) total) in 0x1bada byte(s) of memory. The problem occurred while processing  
the segment placement command "-P(CODE)BANKED_CODE=_CODE_BEG-_CODE_END,_BANK4_BEG-_BANK4_END,_BANK5_BEG-_BANK5_END,_BANK6_BEG-_BANK6_END,_BANK7_BEG-_BANK7_END", where at the  
moment of placement the available memory ranges were "CODE:38c8-3ff7,CODE:4b000-4ffff,CODE:58456-5ffff,CODE:68000-6ffff,CODE:78000-7e7ff"


I've tried compiling with optimisation for size, but that had no effect.