chipKIT® Development Platform

Inspired by Arduino™

EEPROM emulation problems on MX1/MX2 parts

Created Mon, 24 Mar 2014 17:09:45 +0000 by EmbeddedMan


Mon, 24 Mar 2014 17:09:45 +0000

I've been investigating an EEPROM emulation failure on the existing MX1/MX2 based chipKIT boards (like the chipKIT Pi, Fubarino Mini and DP32). It turns out that the EEPROM emulation library that chipKIT uses (which is not based on Microchip's DEE) was not written to handle the smaller (and more numerous) flash blocks that these awesome little parts have.

The symptom of the problem is that the values that you read back from the EEPROM will be 0xFF even though you wrote valid values to valid address previously.

I've since fixed the problem (see GitHub issue #421) and will be merging the fixed code into the main code base in the next couple days. So the next test build of MPIDE/chipKIT will have this fix in it.

Please let me know if you experience any problems with EEPROM emulation.