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.
8 years, 10 months ago.
Pinmap not found for peripheral for FRDM-K64f
Hi,
I'm using the FRDM-K64f and trying to work this example. The instantiation of xbee gives the error "pinmap not found for peripheral." I'm trying to use it with pins D0, D1, and D2. I also tried it with PTC16, PTC17, and PTB9.
I'm getting those pins from this diagram: https://developer.mbed.org/media/uploads/pnandy/xfrdm-k64f_header-pinout_jpg_pagespeed_ic_gdev93u6zd.jpg
Not sure what I'm doing wrong any ideas?
Thanks!
Question relating to:
1 Answer
8 years, 10 months ago.
https://developer.mbed.org/forum/helloworld/topic/1211/
#include "xbee.h" xbee::xbee(PinName tx, PinName rx, PinName reset) { _tx = tx; _rx = rx; _reset = reset; }
so be sure to check your TX & RX definitions - try:
#include "mbed.h" #include "xbee.h" xbee xbee1(PTC17,PTC16,PTB9); //Initalise xbee_lib with RX = PTC16, TX = PTC17, RESET = PTB9 Serial pc(USBTX, USBRX); //Initalise PC serial comms