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.

data model for cc2540 cc2541 with 256KB flash

Hi all,

What is the data model to use with the cc254x with 256DB and BLE stack 1.4

The IAR compiler guide says the generic model is for devices with 64KB of CODE, 64KB XDATA, and 256B IDATA. This fits the description of the TI cc254x's User Guide perfectly (section 2.2), but the data model I see in the example applications all use the Large setting. Changing this to the "Generic setting gives me the error:
"Error[e12]: Unable to open file 'C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.5\8051\LIB\CLIB\cl-pli-bgxd-1e16x01.r51'"

I checked, and indeed there is no bgxd file in my CLIB folder. 

I also get the warning "Warning[Pe767]: conversion from pointer to smaller integer D:\..." for every time HAL_DMA_SET_SOURCE() is called 

2 questions: Why is the default data model for all TI example projects Large  when the Greneric mode seems to suit our chip better? Why is IAR searching for a file that doesn't exist when the Generic setting is used?