Page 1 of 1
USART3 to USART1 possible?
Posted: Thu Oct 13, 2016 5:52 pm
by nighthunter
Hi everybody, i built my own board, but i routed the USART1 instead of usart3, is there a possibility to swap communication in firmware?
Re: USART3 to USART1 possible?
Posted: Thu Oct 13, 2016 5:55 pm
by AndreyB
Can you please provide more details to help us help you?
A picture of the board would certainly help. Do you use discovery board or the stm32f4 chip right on your board?
Re: USART3 to USART1 possible?
Posted: Thu Oct 13, 2016 6:36 pm
by nighthunter
Now it is working. I made a library for Discovery board and i swapped the names of USART1 and USART3. The connection is now OK on pins PC10/PC11 but i have disconnected the PB1. So it starts only in console mode. Is there a way to set the USART3 automatically on start without the PB1 grounded and without the need to compile my own firmware? I have attached the schematic.
Re: USART3 to USART1 possible?
Posted: Thu Oct 13, 2016 7:42 pm
by AndreyB
I am sorry i do not understand the problem. I do not understand how a library (what kind of a library) is helping.
Pb1 is pretty much not used now, it makes very little difference. Need to clean-up the code.
Uart3 is currently hard coded on the firmware, one day it would be configurable.
Re: USART3 to USART1 possible?
Posted: Thu Oct 13, 2016 8:42 pm
by nighthunter
If i power on the board, i can not connect using USART3. It goes only with USB/Console. After resetting the board it connects in TunerStudio OK. As you can see on my PORT configuration the PB1 is left floating. So i am asking if there is any constant/setting that can i edit to use it right after booting to use the USART3 without resetting the board?
Re: USART3 to USART1 possible?
Posted: Thu Oct 13, 2016 8:44 pm
by AndreyB
I believe floating PB1 should not affect anything. I believe your uart3 should work as is, any chance you are using the wrong speed?
Re: USART3 to USART1 possible?
Posted: Thu Oct 13, 2016 9:19 pm
by nighthunter
Speed is set correctly to 38400. 38400 in TunerStudio and the same on the firmware. So if i understand it the PB1 was used as a communication switch only on older versions of the firmware?
Re: USART3 to USART1 possible?
Posted: Thu Oct 13, 2016 9:37 pm
by AndreyB
nighthunter wrote:So if i understand it the PB1 was used as a communication switch only on older versions of the firmware?
yes