Sauraen Posted October 23, 2012 Report Posted October 23, 2012 I would like to save a small amount of data (less than a kilobyte) somewhere that will always be available: configuration options, what file to load from the SD card upon startup, etc. Is it possible to allocate an array in the LPC17's flash memory that I can use to store this data? Or is the risk of corrupting the code stored there (or the bootloader!) too great, and I should just use a single BankStick permanently connected to the core?
TK. Posted October 23, 2012 Report Posted October 23, 2012 The LPCXPRESSO module has an external EEPROM (something like a on-board bankstick), which can be accessed through include $(MIOS32_PATH)/modules/eeprom/eeprom.mk An application example can be found under: http://svnmios.midibox.org/listing.php?repname=svn.mios32&path=%2Ftrunk%2Fapps%2Fmisc%2Fusb_osc_midi_proxy%2F Relevant files: Makefile: includes the EEPROM driver mios32_config.h: configures the EEPROM function presets.c: reads/writes into EEPROM Best Regards, Thorsten.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now