WICED Smart BCM92073X EEPROM and SFLASH Layout (con't)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

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?

0 Likes
1 Solution

Thanks for pointing this out. The max VS length is 8191. Anything more than this will not boot the device.

kz.osaka

View solution in original post

7 Replies
BoonT_56
Employee
Employee
500 likes received 250 likes received 100 likes received

I used multiples of 2. May you can try the below:

---------------------------------------------------------------------------------------

| SS 256Byte @ 0x00 | VS 16kB @ 0x0140  | DS 32kB @ 0x4200 |

---------------------------------------------------------------------------------------

Let us know.

dmiya

Anonymous
Not applicable

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.

Thanks for pointing this out. The max VS length is 8191. Anything more than this will not boot the device.

kz.osaka

Anonymous
Not applicable

Thank you for clarifying the max VS length. I understood the limitation.

0 Likes
Anonymous
Not applicable

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.

0 Likes
Anonymous
Not applicable

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)

0 Likes

I think DLConfigVSLocation should be 0x0140?

dmiya