Need help for FlexIO UART

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Need help for FlexIO UART

1,146 Views
gouse_saudi
Contributor II

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

Labels (1)
0 Kudos
Reply
1 Reply

938 Views
ivadorazinova
NXP Employee
NXP Employee

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

pastedImage_2.png

So, please change it to

  PORT_SetPinMux(PORTB, 2U, kPORT_MuxAlt7);
  PORT_SetPinMux(PORTB, 3U, kPORT_MuxAlt7);

pastedImage_3.png

according to schematic it should work

pastedImage_5.png

Please let me know, if this helps you.

Best Regards,

Iva

0 Kudos
Reply