2014-08-25 07:06 AM
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?
2014-08-25 07:20 AM
Why can't you simply reconfigure the pin?
Can you change behaviour via RTSE or RXE?2014-08-26 01:54 AM
I have tried and it's working but only when my gpio is in OUT mode. If the gpio is set to af mode, then setting it or the pin or the ODR has no effect on the rts level.