![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
|
Example description
The EEPROM example shows how to use EEPROM interface driver.
The examples allows you to place a small string in a single page of the EEPROM and the string will remain across reset cycles.
To use the example, connect a serial cable to the board's RS232/UART port and start a terminal program to monitor the port. The terminal program on the host PC should be setup for 115K8N1.
Special connection requirements
Need to connect with base board for using RS232/UART port.
Build procedures:
LPC13xx example quickstart for Code Red Xpresso
LPC13xx example quickstart for Keil uVision4
LPC13xx example quickstart for IAR EWARM
Supported boards and board setup:
NXP Xpresso LPC1347 board
Submitting LPCOpen issues:
Community support for LPCOpen
Macros | |
| #define | EEPROM_ADDR 0x40 |
| #define | BUFFER_SIZE 0x40 |
| #define | CHKTAG "NxP" |
| #define | CHKTAG_SIZE 3 |
| #define | ESC_CHAR 27 |
Functions | |
| static void | ShowString (char *str) |
| static uint32_t | MakeString (uint8_t *str) |
| int | main (void) |
| Main program body. | |
Variables | |
| uint32_t | buffer [BUFFER_SIZE/sizeof(uint32_t)] |
| int main | ( | void | ) |
| uint32_t buffer[BUFFER_SIZE/sizeof(uint32_t)] |