4 Replies Latest reply on Mar 17, 2020 6:36 AM by XinghaoZ_26

    flash存储地址

    YaTr_3516311

      Hi,

       

      wiced_hal_write_nvram ( BTU_LOCAL_KEYS_VS_ID, sizeof( wiced_bt_local_identity_keys_t ), p_keys ,&status );存到的是下面截图的flash里的哪里的地址

        • 1. Re: flash存储地址
          XinghaoZ_26

          在NVRAM的说明中可以看到,是存储在VS1区域:

          /*****************************************************************************

          **                               Constants

          *****************************************************************************/

           

           

          /**

          * @brief Defines the first usable NVRAM Volatile Section Identifier.

          * Application can use the VS ids starting from WICED_NVRAM_VSID_START.

          **/

          #define WICED_NVRAM_VSID_START      0x01

           

           

          /**

          * @brief Defines the last usable NVRAM Volatile Section Identifier.

          * Application can use the VS ids starting from WICED_NVRAM_VSID_START to

          * WICED_NVRAM_VSID_END

          **/

          #define WICED_NVRAM_VSID_END        0x75

          1 of 1 people found this helpful
          • 2. Re: flash存储地址
            YaTr_3516311

            里看出一共有0x75个ID,每个id最大存255,那岂不是算下来要117*255=29K byte了?超过vs1 4k的大小了?

            • 3. Re: flash存储地址
              YaTr_3516311

              这个问题能回答一下吗

              • 4. Re: flash存储地址
                XinghaoZ_26

                这里的函数表述不太准确,应该是在不超过VS1大小的情况下,最多可以有0x75个ID,但是如果总的长度超过了,肯定无法用到0x75个。