9 years, 8 months ago.

FRDM K64F

HAL API Driver Library, does it support the Freescale K64F series MCU? When compiling a very simple program i get a series of errors. which imply files specific to K64F are missing eg cmsis.h, device.h pinmap.h

  1. include "mbed.h"

Serial pc(USBTX, USBRX); Serial uart(p28, p27);

DigitalOut pc_activity(LED1); DigitalOut uart_activity(LED2);

int main() { while(1) { if(pc.readable()) { uart.putc(pc.getc()); pc_activity = !pc_activity; } if(uart.readable()) { pc.putc(uart.getc()); uart_activity = !uart_activity; } }

Question relating to:

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

1 Answer

9 years, 8 months ago.

Most likely your mbed lib version is old. Right click on the lib in the compiler (assuming you are using the online compiler), click update.

Accepted Answer

yes i got there just before your answer!

However the program still dos'nt function correcly got the following message on pc terminal "pinmap not found for peripheral" I am using only a RED LED and the serial port so what peripheral???

posted by george michie 27 Jul 2014

For that I need to see your program (preferably between <<code>> and <</code>> brackets), since the program you posted in your question won't compile on the K64 (wrong pinnames). Although I can do one guess: Is the LED connected to PwmOut? On the K64 this is not possible, the LED is not connected to a PWM peripheral.

posted by Erik - 27 Jul 2014

Your code uses Serial uart(p28, p27); The pinnames p28,p27 are used only for the mbed lpc1768. Change these pinnames to valid serial port pins for the K64.

posted by Wim Huiskamp 27 Jul 2014