This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Write/Read Flash into W77e58

I'm trying to write and read internal RAM with w77e58 but without success.

I'm using the following code.

#include<string.h>
#include<W77E58.h>


unsigned char xdata xdata_buffer [1];


void main(void){
TA = 0xAA; /*W77e58 Time Accessed Functions*/
TA = 0x55;
memcpy (xdata_buffer, "2", sizeof (xdata_buffer));
}

It does not work.

Any suggestion?

Thanks in advance.

Parents
  • "Does this Winbond device actually have any EEPROM?"

    As far as I'm aware no, the code space is flash but I don't think any of it can be configured as xdata for runtime storage. There is some internal volatile xdata though, but there's an SFR bit that needs to be set if that's what he's trying to access.

    Stefan

Reply
  • "Does this Winbond device actually have any EEPROM?"

    As far as I'm aware no, the code space is flash but I don't think any of it can be configured as xdata for runtime storage. There is some internal volatile xdata though, but there's an SFR bit that needs to be set if that's what he's trying to access.

    Stefan

Children