I am using Kinetis K82 FRDM-K82 Board, found example code for flexio uart in SDK2.0 which is using FLEXIO pin D4 and D5 which is working fine.
But in my hardware kit i connected FLEXIO pin D2 and D3 for fingerprint sensor in uart mode. I need help to change the Pin D4 and D5 in sample code to Pin D2 and D3.
I tried the following way but no result,
#define BOARD_FLEXIO_BASE FLEXIO0
#define FLEXIO_UART_TX_PIN 2U
#define FLEXIO_UART_RX_PIN 3U
No result for above code
Hi Mohammad,
I suppose that you forgot to change these values of pins in pin_mux.c
By default there is
PORT_SetPinMux(PORTB, 10U, kPORT_MuxAlt7);
PORT_SetPinMux(PORTB, 11U, kPORT_MuxAlt7);
but according to RM is needed to change it according
So, please change it to
PORT_SetPinMux(PORTB, 2U, kPORT_MuxAlt7);
PORT_SetPinMux(PORTB, 3U, kPORT_MuxAlt7);
according to schematic it should work
Please let me know, if this helps you.
Best Regards,
Iva