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?
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:
Relevant files:
Makefile: includes the EEPROM driver
mios32_config.h: configures the EEPROM function
presets.c: reads/writes into EEPROM
Best Regards, Thorsten.