Problem with uartSendFullTimeout() function

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, utzig, tfAteba, barthess

sntnjrg
Posts: 65
Joined: Mon Jul 22, 2019 2:19 pm
Has thanked: 18 times
Been thanked: 3 times

Re: Problem with uartSendFullTimeout() function

Postby sntnjrg » Mon Sep 30, 2019 4:08 pm

Hi Giovanni,

In the same project and using the same port, Is the following possible?

1. Use the SERIAL driver to configure a device,
2. Use the UART driver to read packets from device.

I know that ChibiOS performs a check at compile time to avoid the same port. I tried to force the situation but I get this mistake:

Code: Select all

Linking build/ch.elf
./build/obj/hal_uart_lld.o (symbol from plugin): In function `uart_lld_stop_receive':
(.text+0x0): multiple definition of `VectorD8'
./build/obj/hal_serial_lld.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
make: *** [../../chibios191/os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk:205: build/ch.elf] Error 1


Thank you.

steved
Posts: 825
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 135 times

Re: Problem with uartSendFullTimeout() function

Postby steved » Mon Sep 30, 2019 6:10 pm

Try the appropriate serial driver from viewtopic.php?f=38&t=3941

You can use it in either "normal" serial mode, or with character by character callbacks.

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Problem with uartSendFullTimeout() function

Postby Giovanni » Mon Sep 30, 2019 7:04 pm

The two drivers cannot be combined on the same UART.

I recommend you take your time and learn things step by step or you will hit a lot of showstoppers. Guides on playembedded.org are very useful, have you tried those?

Giovanni


Return to “General Support”

Who is online

Users browsing this forum: No registered users and 6 guests