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

  1. 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.

9 years, 4 months ago.

definitivamente ese error se da si asignas mal lis pines de la usart