Extending NVRAM Section while using OTA

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

cross mob
Anonymous
Not applicable

Hi,

Using the BCM20736S I would like to increase the size of the VS1 section. I just found the following helpful discussion:

"DLConfigVSLength - length of this volatile section.

ConfigDSLocation - location of the application code and data (also known as DS).;

Note that the VS and DS areas cannot overlap. For the layout in the EEPROM or SF, see comments in ws_upgrade.c in the SDK (1.1.0 or 2.0) and so if you want to support field upgrades (OTA or uart or other mechanisms), you have to move these sections appropriately."

in Re: BCM20732S NVRAM Size

So what are your experiences with changing ws_upgrade.{c|h}, especially what do I have to change?

I hope you can help.

Regards,

Kilian

0 Likes
1 Solution
Anonymous
Not applicable

Make sure that the btp file matches what is in the c file;

const WS_UPGRADE_NV_LOC_LEN nv_loc_len[2] =

 

   /* .ss_loc = */  {0, 256},

   /* .ds1_loc = */  0x580,  // ConfigDSLocation

   /* .ds1_len = */  0x7A00,  // ~31KB

   /* .ds2_loc = */  0x8000,

   /* .ds2_len = */  0x7A00,  // ~31KB

   /* .vs1_loc = */  0x140,  // DLConfigVSLocation

   /* .vs1_len = */  0x400,  // DLConfigVSLength

   /* .vs2_loc = */  0,  // No VS2 for EEPROMS

   /* .vs2_len = */  0  // No VS2 for EEPROMS

Hope this helps

JT

View solution in original post

3 Replies
Anonymous
Not applicable

Make sure that the btp file matches what is in the c file;

const WS_UPGRADE_NV_LOC_LEN nv_loc_len[2] =

 

   /* .ss_loc = */  {0, 256},

   /* .ds1_loc = */  0x580,  // ConfigDSLocation

   /* .ds1_len = */  0x7A00,  // ~31KB

   /* .ds2_loc = */  0x8000,

   /* .ds2_len = */  0x7A00,  // ~31KB

   /* .vs1_loc = */  0x140,  // DLConfigVSLocation

   /* .vs1_len = */  0x400,  // DLConfigVSLength

   /* .vs2_loc = */  0,  // No VS2 for EEPROMS

   /* .vs2_len = */  0  // No VS2 for EEPROMS

Hope this helps

JT

BoonT_56
Employee
Employee
500 likes received 250 likes received 100 likes received

So did you manage to sort this out?

kilian.timmler@exelonix.com

0 Likes
Anonymous
Not applicable

I'm working on something else right now it will take about a month until I can get an answer.

I think that I could theoretically reduce the size of DS1 and DS2 to make some room for a larger VS1. My code size is 10KBytes smaller than the space available so this could be possible.

Regards,

Kilian

0 Likes