Content originally posted in LPCWare by FrankAndersen on Thu Nov 17 02:14:10 MST 2011
What is the state of the EEPROM data, on a new LPC1788?
The CMSIS driver for EEPROM, gives a hardfault error when writing 64 bytes to page 63
When using IAR compiler, the EEPROM driver only works in MODE_8_BIT
Because of this:
#ifdef __IAR_SYSTEMS_ICC__
#if (mode == MODE_8_BIT)
uint8_t *tmp = (uint8_t *)data;
#elif (mode == MODE_16_BIT)
uint16_t *tmp = (uint16_t *)data;
#else
uint32_t *tmp = (uint32_t *)data;
#endif
#endif
which made tmp an uint8_t at compile time.
Best regards