Use this forum for requesting small changes in ChibiOS. Large changes should be discussed in the development forum. This forum is NOT for support.
becafuel
Posts: 15 Joined: Sun Feb 19, 2017 1:45 pm
Post
by becafuel » Mon Jan 22, 2018 6:57 pm
Hello,
is there a way to use UART7 and UART8 on STM32F4xx MCUs ?
So far, only uartv2 offer such support but it does not compile for F4
Best regards,
__________
Christophe
becafuel
Posts: 15 Joined: Sun Feb 19, 2017 1:45 pm
Post
by becafuel » Mon Jan 22, 2018 7:12 pm
Yes, there are present for example on STM32F427VGT, STM32F429IGH, STM32F429ZI, to name a few.
Giovanni
Site Admin
Posts: 14891 Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times
Post
by Giovanni » Mon Jan 22, 2018 7:14 pm
This will require an update of USARTv1, you cannot use USARTv2 with the wrong parts. Giovanni
becafuel
Posts: 15 Joined: Sun Feb 19, 2017 1:45 pm
Post
by becafuel » Mon Jan 22, 2018 7:23 pm
Oh, thank you for the reply. I will then wait for such update. Best regards, ________ Christophe
Giovanni
Site Admin
Posts: 14891 Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times
Post
by Giovanni » Tue Jan 23, 2018 9:31 am
Hi, I double checked, UART 7 and 8 are supported in latest version. What version are you using? Giovanni
becafuel
Posts: 15 Joined: Sun Feb 19, 2017 1:45 pm
Post
by becafuel » Tue Jan 23, 2018 10:02 am
Hello Giovanni,
Giovanni
Site Admin
Posts: 14891 Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times
Post
by Giovanni » Tue Jan 23, 2018 10:36 am
Are you using the UART driver or the Serial driver? those UARTs are supported in the serial driver. Giovanni
becafuel
Posts: 15 Joined: Sun Feb 19, 2017 1:45 pm
Post
by becafuel » Tue Jan 23, 2018 10:47 am
I am using UART driver, here. Serial driver is used to create a connection to a PC (via USB). Are you saying that Serial can be used to drive external peripherals ? If so, what are the differences between Serial and UART ? And when should I use one or the other ? You may have lost me, here.
Giovanni
Site Admin
Posts: 14891 Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times
Post
by Giovanni » Tue Jan 23, 2018 10:51 am
Hi, Serial is buffered and uses circular queues without DMAs, UART is unbuffered and uses DMA for transfers. Serial is best used for general terminal-like I/O, UART is best for fixed lenght message-based protocols. In general Serial is much more commonly used. Giovanni