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.

osal_snv_init fail

Hello

I am in a jam Please help me 

I want to save user some data in the internal NVRam or flash memory

but I can't save my data in to the nvram memory

When i call osal_snv_init() return value is always equal to FAILURE(0x01) 

uint8 osal_snv_init( void )

{

  if (!initNV())

  {

    // NV initialization failed

    HAL_ASSERT_FORCED();

 

    return FAILURE; // ===> always return this value in my case

  }

   return SUCCESS;

}

My config is as below

######## General Options ###########

CC2541F256

Code model : Banked

Data model : Large

Number of virtual : 8

XDATA stack reentrant

ROM mapped as data

##### defined symbol #########

INT_HEAP_LEN=3072
HALNODEBUG
OSAL_CBTIMER_NUM_TASKS=1
HAL_AES_DMA=TRUE
HAL_DMA=TRUE
xPOWER_SAVING
xPLUS_BROADCASTER
HAL_LCD=TRUE
HAL_LED=TRUE
SERIAL_INTERFACE
HAL_UART=TRUE
HAL_UART_DMA=1
HAL_UART_ISR=0
HAL_KEY=TRUE

  • Hey,
    The initiation of SNV is typically already done in main() so make sure you don't have duplicates. What software example are you using? For more information, see the OSAL documentation found at C:\Texas Instruments\BLE-CC254x-1.4.0\Documents\osal.

    Best Regards
    Joakim