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 ago.
FRDM kl25z usart pinmap not found
Hello my name is Jorge and i'm using this code for communicate a rs232 device whith the computer but the hyerteminal shows me this massage "pinmap not found" i had seen the kl25z sch pdf and the pte 22 an 23 are the uart2 tx and rx
i dont know where is the error i'm new using mbed compiler
Thanks for your help
- include "mbed.h"
Serial pc(USBTX, USBRX); tx, rx Serial device(PTE22, PTE23); tx, rx
int main() { while(1) { if(pc.readable()) { device.putc(pc.getc()); } if(device.readable()) { pc.putc(device.getc()); } } }
2 Answers
11 years ago.
Works fine for me. Are you sure you have selected the correct device for the compiler: check the upper righthand corner of your compiler window. It should say Freescale KL25Z (rather than mbed NXP LPC1768). Use the dropdown menu to change that. You may have to remove and/or update the mbed lib from your projectfile also.