You are here

CY8MBR3116 - reprogramming flash | Cypress Semiconductor

CY8MBR3116 - reprogramming flash

Summary: 6 Replies, Latest post by Yuva Vignesh Muruganandam on 18 Oct 2016 11:51 PM PDT
Verified Answers: 2
Last post
Log in to post new comments.
santosh_1948971's picture
User
3 posts

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?

ANKS's picture
Cypress Employee
90 posts

Hello,

Can you mention specifically which parameters you wish to modify.

You can look at page no.70-71 of this document which may help you-

http://www.cypress.com/file/46366/download

santosh_1948971's picture
User
3 posts

I was attempting to modify prox_en and buzzer_en registers. 

Thanks

 

yuva's picture
Cypress Employee
29 posts

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

santosh_1948971's picture
User
3 posts

I am following this process, there are no errors indicated in the CMD_STATUS/CMD_ERR registers. However, the write is not taking effect. After a power reset and when i read the value back, they have not changed. Is this device meant to be reconfigured multiple times - or is it one time configuration? It does behave as if  it allows only a single configuration.  

yuva's picture
Cypress Employee
29 posts

It is possible to configure the device multiple times. Can you tried to configure directly using the EZ-Click and check the status of the registers? Also trying to configure the entire generated file (with prox/buzzer) enabled from EZ-Click.

 

Thanks,

Yuva.

 

ANKS's picture
Cypress Employee
90 posts

Please provide us with the commands that you are using for configuring  the device via I2C.

Log in to post new comments.