8 Replies Latest reply on Mar 18, 2015 1:38 PM by jota_1939431

    BCM920737TAG NVRAM data lost after usb plug out

      Hi,

      I have a problem with programming NVRAM on BCM920737TAG. I have tried every solution taht is available on this forum, but none solved my problem.

       

      Here is the problem:

      After i program board board (SW4 set to 1,2,3,4 are ON, 5,6,7,8 are OFF) with SDK NVRAM works ok. It remembers state correctly. Without pluging out USB i can set SW4 to all 8 switches to OFF and reset board and NVRAM sill work correctly – it remembers state when i reset board.

       

      The problem starts when i plug out USB and plug in it again – NVRAM remember last state that was written before pluging out USB .

       

      Could you help me to make NVRAM remember written data despite plugging out usb after programming device?

       

      My Configuration:

      My BCM920737TAG board is configured to use SFLASH (resistors are configured configured  and BCM920737TAG_Q32.mk  has set  PLATFORM_NV ?= SFLASH). Board has Vout set to 3.3V. SW2 set to VUSB, SW3 set to VREG.

      GPIO is configured as:

      #define GPIO_PIN_WP               1

      #define GPIO_SETTINGS_WP          (GPIO_OUTPUT | GPIO_INIT_LOW  | GPIO_WP)

      const BLE_PROFILE_GPIO_CFG wiced_sense_gpio_cfg =

      {

      /*.gpio_pin =*/

      {

      GPIO_PIN_WP,     

      -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1     },

      /*.gpio_flag =*/

      {

      GPIO_SETTINGS_WP,

      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0

      }

      };

       

      And bleprofile_WriteNVRAM(); bleprofile_Read NVRAM(); are used after bleprofile_GPIOInit(bleprofile_gpio_p_cfg); I even use bleprofile_WPEnable(0);.

       

      Wiadomość była edytowana przez: Łukasz Tymczyna