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.

NV Memory / Flash memory

Other Parts Discussed in Thread: CC2541

I am looking for the documentation that will tell me what NV memory keys are available on a CC2541. The SWRA194 Version 1.12 which is included in the BLE CC254x-1.4.0 development kit provides a memory map for ZigBee and swru191f.pdf document is unclear if it provides this information or not.

  • Hi,

    If you search for BLE_NV_IDS, you will find a list of the ones used by SNV and GAP.

    /** @defgroup BLE_NV_IDS BLE Non-volatile IDs
     * @{
     */
    // Device NV Items -    Range 0 - 0x1F
    #define BLE_NVID_IRK                    0x02  //!< The Device's IRK
    #define BLE_NVID_CSRK                   0x03  //!< The Device's CSRK
    #define BLE_NVID_SIGNCOUNTER            0x04  //!< The Device's Sign Counter
    
    // Bonding NV Items -   Range  0x20 - 0x5F    - This allows for 10 bondings
    #define BLE_NVID_GAP_BOND_START         0x20  //!< Start of the GAP Bond Manager's NV IDs
    #define BLE_NVID_GAP_BOND_END           0x5f  //!< End of the GAP Bond Manager's NV IDs Range
    
    // GATT Configuration NV Items - Range  0x70 - 0x79 - This must match the number of Bonding entries
    #define BLE_NVID_GATT_CFG_START         0x70  //!< Start of the GATT Configuration NV IDs
    #define BLE_NVID_GATT_CFG_END           0x79  //!< End of the GATT Configuration NV IDs
    /** @} End BLE_NV_IDS */
    

    Any ID over 0x80 is available for the user. Though, some example applications may - rightly - use the application-reserved addresses.

    BR,
    Aslak