Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 2 months ago.
LCD Module LMB162AFC-2 and compiling problems using the TextLCD library for LPC812 Max Board
Hi guys,
Once I am trying to compile a TextLCD program, I am receiving some of the following error messages:
Error: No space in execution regions with .ANY selector matching ctype_c.o(.constdata). Error: No space in execution regions with .ANY selector matching TextLCD.cpp.LPC812.o(i._ZN7TextLCDD1Ev). Error: No space in execution regions with .ANY selector matching FileLike.o(.constdataZTVN4mbed8FileLikeE). Error: No space in execution regions with .ANY selector matching FileBase.o(i._ZN4mbed8FileBaseD1Ev). Error: No space in execution regions with .ANY selector matching Serial.o(i._ZN4mbed6SerialC1E7PinNameS1_PKc). . . . .
Error: Sections of aggregate size 0xac4 bytes could not fit into .ANY selector(s).
I am using LPC812 Max Board. I suppose it is because of the RAM. This LPC has only 4KB.
Here is the program:
----------------------------
- include "mbed.h"
- include "TextLCD.h"
Serial pc(USBTX, USBRX); tx, rx
TextLCD lcd(D0, D3, D10, D11, D12, D13, TextLCD::LCD16x2); rs, e, d4-d7
int main() { pc.printf("LCD Test. Columns=%d, Rows=%d\n\r", lcd.columns(), lcd.rows());
Clear screen lcd.cls();
lcd.printf("Hello\nWorld!"); wait(3);
Example using putc() which automatically moves the cursor lcd.cls(); for (char c = '0'; c <= 'Z' ; c++) { lcd.putc(c); wait(0.3); }
while(1);
}
----------------------------
Any clues?
Thanks,
Filip