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.

Error while running Linker

Other Parts Discussed in Thread: CC2541

I have the Dev Board Smart RF05 Rev 1.8.1  and want to use the CC2541 with a temp sensor.  Starting with the basic simple example....

Using IAR 8.3 eval,  

SimpleBLEPeripheral Work Space, Linker Override checked $TOOLKIT_DIR$\config\devices\Texas Instruments\lnk51ew_cc2540F256.xcl  

Options:  Device:  CC2540F256  CPU Code: Plain  Code Model: Banked

Tried many options and configs. 

Warning[w2]: Symbol ?ESP is redefined in command-line

Fatal Error[e72]: Segment BANKED_CODE must be defined in a segment definition option (-Z, -b or -P)

Error while running Linker

What am I missing???    

Resolved vis a vis post by

Mastermind8180 points

Under the general options / Stack Heap tab, you can set the size  of the stacks and heaps. The default for IDATA generally comes up as 0x40 which is too small. I set it to 0x80.

For some reason my stack heap was set to 0xC0   by setting it to 0x40 or 0x80 the linking error disappeared with a warning $ESP is redefined in command-line.   Now, on to better issues....