2 Replies Latest reply on Oct 11, 2017 3:13 AM by anks

    Flash status when reprogram Psoc

    scarralero_2319841

      I want to read an array in flash that I previously written array.

       

      The steps done are:

      1. Write the array in emulated eprom with "Em_EEPROM_Write"

      2.Turn off the power of the psoc

      3. Turn on the power and read the array

       

       

      In mode debugging this array is '0'.

      It is because when you reprograming the psoc creator put all '0' in flash??

       

       

      Regards

        • 1. Re: Flash status when reprogram Psoc
          scarralero_2319841

          /code

                  case WRITE_SWITCHING:      //Escribir en flash el valor del switching

                      for (i=0 ; i < 8 ; i++)

                          {

                          status = Em_EEPROM_Write(&RAMarray[0][i] , &eepromArray[0][i] ,1u);

                          status = Em_EEPROM_Write(&RAMarray[1][i] , &eepromArray[1][i] ,1u);

                          status = Em_EEPROM_Write(&RAMarray[2][i] , &eepromArray[2][i] ,1u);

                          }

           

           

          my Array is eepromArray[3][8]

          • 2. Re: Flash status when reprogram Psoc
            anks

            Yes, while programming PSoC Programmer  does erase of flash,You can try this option for debugging which is "Debug without programming"

             

            1 of 1 people found this helpful