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.
11 years, 10 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
- 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:
1 Answer
11 years, 10 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.
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 27 Jul 2014For 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.