Jump to content
cry_viem

eeprom interface

Recommended Posts

hi, everyone, i need some help from you,

i have a problem with writing and reading eeprom in lm4f120, i don't know how to do.

your comments is very useful for me, thanks all

Share this post


Link to post
Share on other sites

Are you talking the internal EEPROM, or using an external one?

 

If Internal:

Be sure to read the errata, your code should check which version of the chip it is running on, since some versions have a bug where using the internal EEPROM will brick the chip.

 

You didn't mention what programming language/environment you are using.

 

If you are using Energia, there is a library for accessing onboard EEPROM.  (Which unfortunately does not do the appropriate check for chip version).

If you are using Tivaware/Stellarisware - there are library calls to access the eeprom (driverlib/eeprom.h, eeprom.c)

http://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/t/334683.aspx

 

If not using either - look at the source code for the above libraries to learn how to program the EEPROM.

(If using eLua - I have an EEPROM library on the back burner someplace ;-)

 

 

If you are using an external EEPROM - there are some Energia libraries for some types I believe.

But need to specify what interface,  (SPI, ...), chip, data sheet, etc.

 

General thoughts:

www.catb.org/esr/faqs/smart-questions.html

 

For future reference, this particular forum is more for posting code, your question is more likely to be seen in the general forum (as the listing says "Beginners, feel free to ask your questions here." )

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×