Flash status when reprogram Psoc

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

cross mob
Anonymous
Not applicable

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

0 Likes
1 Solution
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

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

pastedImage_1.png

View solution in original post

2 Replies
Anonymous
Not applicable

/code

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

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

                {

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

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

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

                }

my Array is eepromArray[3][8]

0 Likes
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

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

pastedImage_1.png