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.

RTOS/CC1310: CC1310 TI 15.4 NVS store user data

Part Number: CC1310

Tool/software: TI-RTOS

Dear all,

I'm using TI 15.4 stack, sdk_1_60_00_21. I'd like to using NVS to store my data when power of. I'm using as example of TI

void nv_init()
{
    // Read - Write To Internal flash:
    NVS_Handle nvsHandle;
    NVS_Attrs regionAttrs;
    NVS_Params nvsParams;

    NVS_init();

    NVS_Params_init(&nvsParams);
    nvsHandle = NVS_open(0, &nvsParams);

    if (nvsHandle == NULL) {
        Ssf_displayError("\r\n Start NVS_open() failed ",0);
    }

    NVS_getAttrs(nvsHandle, &regionAttrs);

    NVS_read(nvsHandle, 0, (void *) buffer, 1);
    Ssf_displayError("\r\n Finish Reading = ", buffer[0]);

    signature[0] = buffer[0] + 1;
    NVS_write(nvsHandle, 0, (void *) signature, sizeof(signature),
        NVS_WRITE_ERASE | NVS_WRITE_POST_VERIFY);

    Ssf_displayError("\r\n Write to Flash = ", signature[0]);
}

But when run into NVS_init() then loop forever in it. Can we use it within TI 15.4?

reagrds,