AnsweredAssumed Answered

Set USART2_RTS when GPIO is in alternate function mode.

Question asked by nyul.zoltan on Aug 25, 2014
Latest reply on Aug 26, 2014 by nyul.zoltan
I have a STM32L152RCT6 mcu and a bluetooth module connected to usart2. I've also set up the dma for the communication. The gpio is set to alternate function mode. It works, however sometimes a packet loss happens. The manufacturer of the bt modul has suggested that maybe there's a problem with the rts signal and the bt module sends data while i'm processing the previous. So now i would like to test to set the rts manually while i'm processing the incoming packet to prevent the bt module to send anything. However the gpio is set to alternate function mode and i can't set the rts. Is there any way to set the rts pin while it's in af mode?