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.

NVRAM item size?

Hi,

When using the OSAL SNV API, (or even the less simple NV API), what is the maximum item size?

I looked in the 254x user guide, the 2540 data sheet, the OSAL api pdf, a white paper on programming the entire flash of the cc25xx family, etc.   The answer has got to be right in front of me, but I'm just not seeing it.  Could someone gently point me to the right source or explain what I'm missing?

Thanks!

Steve

  • As far as I know (please, some expert correct me if I am wrong), the NV area is configured in the xcl linker file, for example, in the 'ti_51ew_cc2540b.xcl':

    // Internal flash used for NV address space.
    // ---------------------------
    //
    // Address range for HAL_FLASH_PAGE_SIZE == 2048
    -D_BLENV_ADDRESS_SPACE_START=0x7E800
    -D_BLENV_ADDRESS_SPACE_END=0x7F7FF
    //
    // Address range for HAL_FLASH_PAGE_SIZE == 4096
    //-D_BLENV_ADDRESS_SPACE_START=0x7D000
    //-D_BLENV_ADDRESS_SPACE_END=0x7EFFF

    Hope this helps.

    Regards,

    Javier Ruiz

  • Thank you, Javier.

    That and the code reading I've done make me want to assume the snv api treats all available pages of available nvram as a single monolithic logical page without interior boundaries.  Applications can add items as needed, as long as the total space used does not exceed available space.

    If that's the case, that's great.  I would love for an expert to confirm or deny.

    Again, Javier, thanks.

    Steve