-
I am trying to program a LGT8F328 with bare minimum code. No Arduino libraries. This is the function I am using to write one byte to EEPROM: void DrvEEPROM_Init(void) void DrvEEPROM_ProgByte(uint16_t u16Addr, uint8_t u8Data){
} Any idea what I am missing? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Forgot to comment, |
Beta Was this translation helpful? Give feedback.
-
LGT8F328P ha no EEPROM. You could store data in a small part of the program flash with hardware / software emulated EEPROM functions. |
Beta Was this translation helpful? Give feedback.
LGT8F328P ha no EEPROM. You could store data in a small part of the program flash with hardware / software emulated EEPROM functions.
You could rewrite those bytes which was empty (0xFF) before. If you want to rewrite the same byte you need to clear 1 KB program flash first.
This procedure is so complex that it is recommended to use the LGT EEPROM library.