CY8MBR3116 - reprogramming flash

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

cross mob
Anonymous
Not applicable

Hello, 

   

We have a custom board with CY8MBR3116. I could configure and program the flash via I2C. However, i am not able to re-configure the device to change the some of the parameters. What process do i need to follow to delete the configuration flash and load a new set of configuration?

   

Here is the sequence i followed:

   

EzClick -> Generate .h with 128bytes of config info

   

Follow process in programming document - Acquire chip, write starting at SENSOR_EN, write flash with CTRL_CMD = 0x02. Issue Reset. This process works - i can read back the values and the chip seems to be operating. 

   

I need to reset / modify some of the parameters, i tried to follow the same sequence as above, but now i am not able to change the values, i cannot update/modify individual registers even. 

   

Is there a separate command or flow i need to follow to delete existing configuration?

0 Likes
1 Solution
Yuva
Moderator
Moderator
Moderator
250 replies posted 250 sign-ins 100 solutions authored

After writing a CMD_OP_CODE value of ‘2’ to the CTRL_CMD (0x86) register, wait for 220 ms and read the CTRL_CMD_STATUS (0x88) register to check if the configuration data is successfully saved to nonvolatile memory. 

   

If the configuration data is successfully saved to nonvolatile memory, the value in the CTRL_CMD_STATUS (0x88) register will be ‘0’ else it will be '1'. Incase of failure read the CTRL_CMD_ERR (0x89) register.

   

 

   

Thanks,

   

Yuva

View solution in original post

0 Likes
6 Replies