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
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....