8 Replies Latest reply on Aug 3, 2018 1:37 AM by user_287327599

    CY8CMBR3116 losts its configuration during use

    user_287327599

      Hello everyone,

      For a project, we developped a keypad using CY8CMBR3116.

      These keypads are installed on bikes, used outside.

      Since some times, the keypads "lost" their configuration and go back in factory configuration.

      We actually are using 12 keys, guard sensor, proximity sensor and shield electrode.

      Our customer made a soft to test CRC at each power on, and if not the same, reconfigure the chip.

      Even with that, we still have problems of loosing configuration.

      The keypad is power off after 1 minute of inactivity, and the user must press a pushbutton to power on.

      In office, we didn't succeed to get this problem (only when the keypad is on the bike)

       

      Do you know where the problem can come from and how to solve it ?

       

      Many thanks for your help ,

      Best Regards,

        • 1. Re: CY8CMBR3116 losts its configuration during use
          nsha

          Hello,

           

          We need more information to debug your issue.

          By losing configuration, I assume that the MBR3 switches to factory default configuration.

           

          Could you please check the following and update?

          Load a valid configuration file and read the SYSTEM_STATUS register to confirm that the configuration is loaded (Bit0 '0').

          While your issue occurs, please monitor the VDD power pin, I2C lines and post the results here.

          Then, read the SYSTEM_STATUS register and let us know if the bit0 is set to '1'.

           

          Thanks,

          Shanmathi

          • 2. Re: CY8CMBR3116 losts its configuration during use
            user_287327599

            Hello,

            Thank you for your reply.

             

            Actually, I can't have access to them (they are on use in different cities).

            But, once i got a keyboard which went in factory system back, and the SYSTEM_STATUS was at 0.

            The customer put a counter in the re-configuration while and he noted a lot of reconfiguration, so it is meaning that the configuration is lost often.

            What can be the causes of a loss ?

            The pull up resitors on SCL and SDA are 4.7K.

             

            Many thanks in advance for your feedback,

             

            Cordialement,

            Best Regards,

             

            Benjamin RECOULES | Bureau d'Etudes / R&D department

            Ligne directe : +33 (0) 4 66 74 64 05

            Standard / Phone : +33 (0) 4 66 74 18 73 - Fax : +33 (0) 4 66 74 36 84

            Web : www.niconix.com ou www.niconix.fr

            • 3. Re: CY8CMBR3116 losts its configuration during use
              nsha

              Hello Benjamin,

               

              1) You have mentioned that you were checking CRC at power on.

              Could you please let us know the procedure followed to check CRC?

               

              I assume you read the CRC register using I2C command.

              Could you read the CRC register for, say, 5 times and confirm if CRC is corrupted in the device? This is to ensure it is not I2C communication issue and actually a flash corruption issue.

               

              2) If the CRC value read is incorrect, then read all the configuration registers and update us on the configuration registers that were modified/corrupted.

               

              3) Could you also let us know under what conditions (stress, temperature, vibrations etc,.) the devices are installed on bikes?

               

              Thanks,
              Shanmathi

              • 4. Re: CY8CMBR3116 losts its configuration during use
                user_287327599

                Hello,

                 

                Thank you for your feedback,

                1) Here is the while used to check CRC each the keypad is powered on :

                while(PAD_ReadHalfWord(0x7E) != 0x216e){

                                               PAD_WriteCommand(0x00, (uint8_t*)configCy8cmbr, 128);

                                               PAD_WriteByte(0x86, 2);

                                               osDelay(200);

                                               PAD_WriteByte(0x86, 0xFF);

                                               osDelay(200);

                }

                Indeed, it is the CRC we are reading and it is not the right value.

                 

                2) The configuration registers are going back in their factory values.

                 

                3) As a normal selfservice bike : Outside, used by everyone who want to.

                 

                Thanks in advance,

                 

                Cordialement,

                Best Regards,

                 

                Benjamin RECOULES | Bureau d'Etudes / R&D department

                Ligne directe : +33 (0) 4 66 74 64 05

                Standard / Phone : +33 (0) 4 66 74 18 73 - Fax : +33 (0) 4 66 74 36 84

                Web : www.niconix.com ou www.niconix.fr

                • 5. Re: CY8CMBR3116 losts its configuration during use
                  nsha

                  Hello Benjamin,

                   

                  Thank you for the quick update.

                   

                  Could you please provide the following information?

                  1. 128-byte configuration registers, after a valid configuration is loaded

                  2. 128-byte configuration registers, when CRC mismatch occurs (You can read the 128 bytes whenever CRC mismatch occurs in while loop of your host)

                  We need the value of all the 128-byte configuration registers because SYSTEM_STATUS register is 0 (which implies that factory configuration is not loaded)

                   

                  Best regards,

                  Shanmathi

                  • 6. Re: CY8CMBR3116 losts its configuration during use
                    user_287327599

                    Hello,

                     

                    Thank you for this feedback,

                    I actually don't have access to the 128-byte configuration when CRC mismatch occurs (I don't have the keypads)

                    In attachment is the valid configuration we used. (I did correct the median filter recently, indeed, on that configuration both IIR and Median filters are activated, do you think that could be problem ?)

                     

                    Does it help ?

                     

                    Cordialement,

                    Best Regards,

                     

                    Benjamin RECOULES | Bureau d'Etudes / R&D department

                    Ligne directe : +33 (0) 4 66 74 64 05

                    Standard / Phone : +33 (0) 4 66 74 18 73 - Fax : +33 (0) 4 66 74 36 84

                    Web : www.niconix.com ou www.niconix.fr

                    • 7. Re: CY8CMBR3116 losts its configuration during use
                      nsha

                      Hello Benjamin,

                       

                      Modifying IIR and median filter configuration is fine. This should not be the reason for flash corruption.

                       

                      However, if you load a configuration with median filter modified, we expect the CRC to be changed.

                      Did you also modify your host according to the modified checksum?

                       

                      Please let us know the number of devices in which you are observing this issue and the total number of devices deployed.

                      Having said these, we require the 128 bytes of configuration data (after CRC mismatch) to debug further.

                       

                      Thanks and regards,Shanmathi

                      • 8. Re: CY8CMBR3116 losts its configuration during use
                        user_287327599

                        Dear,

                         

                        Indeed, in attachment the configuration with the modified median filter.

                        And yes, the while will be modify to correspond.

                         

                        I'll try to get the 128 bytes when the data is corrupted.

                         

                        (I am in holliday from today and I come back 27 august)

                         

                        Many thanks for the support

                         

                        Cordialement,

                        Best Regards,

                         

                        Benjamin RECOULES | Bureau d'Etudes / R&D department

                        Ligne directe : +33 (0) 4 66 74 64 05

                        Standard / Phone : +33 (0) 4 66 74 18 73 - Fax : +33 (0) 4 66 74 36 84

                        Web : www.niconix.com ou www.niconix.fr