Page 1 of 1

EEPROM on M2351

Posted: 03 Jan 2019, 10:05
by blastpb
I'm unable to find any documentation on using EEPROM emulation or storing user variables in non-volatile memory on the Nuvoton M2351 Numaker board. Can anybody provide some examples of this?

Re: EEPROM on M2351

Posted: 23 Jan 2019, 14:12
by workman
The M2351 has embedded flash memory (512KB)
You can store your data in it.
For example

SYS_UnlockReg();
FMC_Open()
FMC_ENABLE_AP_UPDATE();

FMC_Erase(0x10000); // Erase page
FMC_Write(0x10000, 0x12345678); // Write data 0x12345678 to 0x10000

If you want to write data to W77F32 (Winbond Secure SPI flash), It is a secure SPI flash on board.
You need to contact with Winbond to get support.
(https://www.winbond.com/hq/about-winbon ... __locale=e)