USART3 to USART1 possible?
-
- donator
- Posts: 95
- Joined: Sun Feb 21, 2016 8:39 pm
USART3 to USART1 possible?
Hi everybody, i built my own board, but i routed the USART1 instead of usart3, is there a possibility to swap communication in firmware?
- AndreyB
- Site Admin
- Posts: 14332
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: USART3 to USART1 possible?
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?
A picture of the board would certainly help. Do you use discovery board or the stm32f4 chip right on your board?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
-
- donator
- Posts: 95
- Joined: Sun Feb 21, 2016 8:39 pm
Re: USART3 to USART1 possible?
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.
- Attachments
-
- discovery.png (10.96 KiB) Viewed 5546 times
- AndreyB
- Site Admin
- Posts: 14332
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: USART3 to USART1 possible?
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.
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.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
-
- donator
- Posts: 95
- Joined: Sun Feb 21, 2016 8:39 pm
Re: USART3 to USART1 possible?
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?
- AndreyB
- Site Admin
- Posts: 14332
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: USART3 to USART1 possible?
I believe floating PB1 should not affect anything. I believe your uart3 should work as is, any chance you are using the wrong speed?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
-
- donator
- Posts: 95
- Joined: Sun Feb 21, 2016 8:39 pm
Re: USART3 to USART1 possible?
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?
- AndreyB
- Site Admin
- Posts: 14332
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: USART3 to USART1 possible?
yesnighthunter wrote:So if i understand it the PB1 was used as a communication switch only on older versions of the firmware?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute