- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Per the thread here Re: WICED Smart BCM92073X EEPROM and SFLASH Layout
How can I expand VS section over 8kB? I use BCM920737S and it has 64kB EEPROM.
If I configured VS size over 8kB, no boot.
=================OK.btp=====================
DLConfigVSOffset = 0
DLConfigSSLocation = 0
ConfigDSLocation = 16384
DLConfigVSLocation = 320
DLConfigVSLength = 8176
========================================
=================NG.btp=====================
DLConfigVSOffset = 0
DLConfigSSLocation = 0
ConfigDSLocation = 16384
DLConfigVSLocation = 320
DLConfigVSLength = 8192 (or over)
========================================
I don't use OTA FW Updating, so I expect following layout.
---------------------------------------------------------------------------------------
| SS 256Byte @ 0x00 | VS 15kB @ 0x140 | DS 44kB @ 0x4000 |
---------------------------------------------------------------------------------------
Is it require any additional settings?
Solved! Go to Solution.
- Labels:
-
FlashEEPROM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for pointing this out. The max VS length is 8191. Anything more than this will not boot the device.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I used multiples of 2. May you can try the below:
---------------------------------------------------------------------------------------
| SS 256Byte @ 0x00 | VS 16kB @ 0x0140 | DS 32kB @ 0x4200 |
---------------------------------------------------------------------------------------
Let us know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
VS can't be larger than 8KB I think.
In my understanding;
-----
VS is used by bleprofile_WriteNVRAM() and bleprofile_ReadNVRAM() from the application.
The vsID is only 8bit = up to 256 blocks can be used.
Each block has 32Byte.
Then 256 * 32 = 8KB is the maximum size of VS.
-----
If you would like to save larger application data like 16KB,
you can access to unused EEPROM space directly by cfa_bsc_OpExtended().
Please try to keep VS size as 1024 and access to EEPROM like @0x2000.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for pointing this out. The max VS length is 8191. Anything more than this will not boot the device.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for clarifying the max VS length. I understood the limitation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear dmiya,
Thank you for your advice to use cfa_bsc_OpExtended(). I will try.
BTW, I think maximum size of each block is 255 bytes. And valid vsID is 0x10~0x6F. Therefore I thought maximum size of NV which can be handled by bleprofile_(Write/Read)NVRAM is ((0x6F-0x10)+1) x 255 = 24,480 bytes if we can increase the VS length.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your advice.
I tried below setting but no boot. Any wrong setting or require any other setting?
DLConfigVSOffset = 0
ConfigDSLocation = 16896 (= 0x4200)
DLConfigSSLocation = 0
DLConfigVSLocation = 320 (= 0x140)
DLConfigVSLength = 16384 (= 0x4000 = 16kB)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content