3 Replies Latest reply on Jun 9, 2019 6:06 PM by RyanZ_36

    cy8c4245 can not run except for programming it again, how it would be ?

    76456919_1559361

      I can read hex file by programmer from  flash, and compare it with the original, and find that the difference is  in hex file all capital letters change to low case, for example  , A changes to a, and B changes to b, and so on .  At  the same time, I also notice that the two files are different  at the end of the files. QQ截图20190520213526.pngQQ截图20190520213846.png

        • 1. Re: cy8c4245 can not run except for programming it again, how it would be ?
          RyanZ_36

          Hi Hao,

           

          1. In the hex generated by PSoC Creator buiding, each char character in hex is UPPERCASE, but in the read back hex file, each each char character in hex is lowercase, it won't have influence for PSoC Programmer to decoder the hex file.

          2. The difference in the end.  The '..' in your hex tool is Line break mark.  Actually, At the end of original hex file generated by PSoC Creator building and compiling, there is no line break. But for the hex file read back and encoded by PSoC Programmer, there is a line break at the end. So that this is the reason. For better understanding, you can try using Notepad++ or DiffMerge to compare these two hex files again.

           

          The the UPPERCASE or lowercase format won't have influence on programming and program running.

          Regarding the issue you met, I guess it caused by your project. Are there Flash operation in your project, or could you describe more about the issue you met?

           

          Thanks,

          Ryan

          • 2. Re: cy8c4245 can not run except for programming it again, how it would be ?
            76456919_1559361

            thanks, this is a thermostat project   and I  use ADC, LCD_seg, capsense, eeprom, and uart.  Two bytes  eeprom should  be  read and writed, no other operations in it。  While, the AC voltage fluctuation occurs frequently,  so  the power voltage for  cy8c4245 will change。 I guess the  hex file in flash could be changed when the voltage raise to a  higher value.  I use DC5V to power for  4245 in this project.

            • 3. Re: cy8c4245 can not run except for programming it again, how it would be ?
              RyanZ_36

              EEPROM is emulated by PSoC internal Flash, so, if you write eeprom, you write flash. The should be the reason why flash data changed.

               

              Thanks.

              Ryan