SerialDriver rx problem
Posted: Sat Apr 04, 2015 2:29 pm
Hello,
I would like to include a gsm module into my project but i have an issue with a SerialDriver. Gsm module is connected to a stm32f4 via usart2 interface and it uses PA2 and PA3 pins for communication. When i send a command string to the gsm module everything works ok, the gsm module receives my command and it responds accordingly. The problem is that when i want to read the response i get an empty string, even if the response is clearly seen with a help of a logic analyzer. I have set a pin mode for PA2 and PA3 as an alternate function 7(according to a datasheet), output type pushpull, speed 50mhz and i also turned on pull up resistors.
What could be a problem?
I would like to include a gsm module into my project but i have an issue with a SerialDriver. Gsm module is connected to a stm32f4 via usart2 interface and it uses PA2 and PA3 pins for communication. When i send a command string to the gsm module everything works ok, the gsm module receives my command and it responds accordingly. The problem is that when i want to read the response i get an empty string, even if the response is clearly seen with a help of a logic analyzer. I have set a pin mode for PA2 and PA3 as an alternate function 7(according to a datasheet), output type pushpull, speed 50mhz and i also turned on pull up resistors.
What could be a problem?