Search found 6 matches
- Sun Apr 05, 2015 3:49 pm
- Forum: STM32 Support
- Topic: SerialDriver rx problem
- Replies: 9
- Views: 2966
Re: SerialDriver rx problem
I successfully resolved a problem. The problem was that i forgot to set the number of stop bits in the cr2 register. Thank you for your help.
- Sun Apr 05, 2015 12:59 pm
- Forum: STM32 Support
- Topic: SerialDriver rx problem
- Replies: 9
- Views: 2966
Re: SerialDriver rx problem
I tried to use usart3 instead of usart2 and the problem is still present. I tried to read a response with an sdReadTimeout() function into a buffer and noticed that the return value of the function is always 10. The content of a buffer is not a proper response value(\r\nOK\r\n) but a weird string ...
- Sat Apr 04, 2015 3:28 pm
- Forum: STM32 Support
- Topic: SerialDriver rx problem
- Replies: 9
- Views: 2966
Re: SerialDriver rx problem
I connected only pins PA2 and PA3 with a usart2(alternate function 7). Pins such as PD6 and PD5 which can also be used for usart2 are not connected with usart2(they don't have an alternate function set). I am going to try a sdReadTimeout() function with a timeout set to one second and see if i am ...
- Sat Apr 04, 2015 3:11 pm
- Forum: STM32 Support
- Topic: SerialDriver rx problem
- Replies: 9
- Views: 2966
Re: SerialDriver rx problem
I checked a datasheet and i figured out that besides pin PA3, there is also a pin PD6 assigned to a usart2_rx. Pin PD6 has an alternate function 0 set in a board file.
- Sat Apr 04, 2015 2:36 pm
- Forum: STM32 Support
- Topic: SerialDriver rx problem
- Replies: 9
- Views: 2966
Re: SerialDriver rx problem
i'm using a stm32f4 discovery board. Datasheet for this board states that pins PA2 and PA3 are free pins.
- Sat Apr 04, 2015 2:29 pm
- Forum: STM32 Support
- Topic: SerialDriver rx problem
- Replies: 9
- Views: 2966
SerialDriver rx problem
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 ...
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 ...