9 years, 7 months ago.

FRDM-K64F support

If you are using any compatible LCD Keypad Shield (like Dr. Robot) and FRDM-K64F, you need to power the board from "K64F USB". Otherwise, the display will not work.

For headers in FRDM-K64F, please use:

TextLCD lcd(D8, D9, D4, D5, D6, D7); // rs, e, d4-d7

Full working example:

#include "mbed.h"
#include "TextLCD.h"
 
int main() {
    lcd.cls();
    lcd.printf("HELLO");
    while(1);
}

Question relating to:

TextLCD library for controlling various LCD panels based on the HD44780 4-bit interface HD44780, TextLCD

I ran into this too when trying to get an Arduino SainStudio-compatible LCD shield working. The errata says that D8 doesn't work when using "debug" mode: http://cache.freescale.com/files/32bit/doc/errata/FRDMK64F_ERRATA.pdf

I confirmed this with a bunch of LEDs. All the pins worked except D8. I however was able to get around it by rewiring D8 on the board to D10.

posted by Rob Woolley 31 Mar 2015

Thanks, Rob. Very useful information.

posted by Marcelo Barros 31 Mar 2015
Be the first to answer this question.