2015-08-17 01:32 PM
Hi,
I am currently working with an STMF103RB on a board I made. I am using the STMCube_FW_F1_V1.2.0 libraries. I am currently using USART2 to connect to a computer though an FTDI breakout board. Everything works fine however, I forgot to connect TX/RX of the STMF103RB to RX/TX of the FTDI breakout. Is there a way to switch in firmware which pins correspond to TX and RX of USART2? E.g. have PA3 be USART2_TX and PA2 be USART2_RX?Thanks!2015-08-17 02:23 PM
No
2015-08-17 03:56 PM
So if I wanted to correct for this issue without reworking the board, I would have to make like a software serial type communication that would use the pins in reverse order. Is that possible?
2015-08-17 04:16 PM
The TX mode could probably be fashioned with a TIM+DMA+GPIO arrangement. RX might prove a bit more challenging, not sure what the timer associativity is with the pin. Slow baud rates might work with a periodic timer check.
Other than that consider jumper/magwire.2015-08-17 04:17 PM
Thanks again!