Hello,
I'm using a cc2540 256kb custom board running BLE stack 1.4 and now, i need to migrate to a cc2540 128kb. Everything works fine except for the osal_snv functions.
Here is one simple test i tried to do, but neither the write or read function return SUCCESS :
void ProjectFunction_Init( uint8 task_id ){
//init gap, ports, etc...
while(1){ if(osal_snv_write(0x80, 6*sizeof(int8), buff1) ==SUCCESS){ //code } if(osal_snv_read(0x80,6*sizeof(int8), buff2)== SUCCESS){ buff2[1]=buff2[1]+1; }
}
So, i'd like to know if my project configs (using IAR) are correct, since i don't know where else my issue could be.
Here are the configs :
General Options->Target : CC2540F128 and Number of virtual register : 12 (instead of 16 since it can't work an other way using IAR)
C Compiler->Preprocessor :
INT_HEAP_LEN=3072
HALNODEBUG
HAL_BOARD_128
OSAL_CBTIMER_NUM_TASKS=1
HAL_AES_DMA=TRUE
HAL_DMA=TRUE
POWER_SAVING
CC2540_MINIDK
Linker->Config : $PROJ_DIR$\..\..\common\cc2540\ti_51ew_cc2540f128b.xcl
Debugger->Setup : $TOOLKIT_DIR$\config\devices\Texas Instruments\ioCC2540F128.ddf
I tried the same test with the SimpleBlePeripheral 128kb project but only the read function worked so far.
BR,
HrH Gui