Translating incoming data from PA10 (USART1 Rx) to PB4 (JTRST) with erased FLASH or under reset in STM32G473
I have RS-485 transceiver connected to USART1 (PA9 + PA10) and relay connected to PB4. If MCU have erased FLASH or RST-pin connected to GND all incoming data to pin PA10 (Rx) for RS-485 line translated to pin PB4 in inversion (0 on PA10 => 1 on PB4, and 1 on PA10 => 0 on PB4). Why PB4 set as output and how it connected to USART1 Rx? And why is the output level inverted relative to the input?)
