Serial and Shell over UART how?
Posted: Mon Jun 11, 2018 9:52 pm
Hi,
I'm trying to implement:
1. printf() functions over UART
2. Shell over UART.
First, I have the UART2 enabled by setting:
HAL_USE_UART in halconf.h
UART_USE_WAIT in halconf.h
STM32_UART_USE_USART2 in mcuconf.h
so far so good, and I can successfully transmit and receive bytes with the uartSendXXX() and uartReceiveXXX() functions.
Now I'm trying to move toward using shell, so I have the serial driver enabled:
HAL_USE_SERIAL in halconf.h
but now I have the error:
../src/hal_uart_lld.c:349: multiple definition of `VectorD8'
../src/hal_serial_lld.c:322: first defined here
What do I wrong?
I'm trying to implement:
1. printf() functions over UART
2. Shell over UART.
First, I have the UART2 enabled by setting:
HAL_USE_UART in halconf.h
UART_USE_WAIT in halconf.h
STM32_UART_USE_USART2 in mcuconf.h
so far so good, and I can successfully transmit and receive bytes with the uartSendXXX() and uartReceiveXXX() functions.
Now I'm trying to move toward using shell, so I have the serial driver enabled:
HAL_USE_SERIAL in halconf.h
but now I have the error:
../src/hal_uart_lld.c:349: multiple definition of `VectorD8'
../src/hal_serial_lld.c:322: first defined here
What do I wrong?