Testing USART2 on STM32F303Discovery board
Posted: Fri Dec 22, 2023 9:11 am
Hi
I have problem with using for using USART2 instead USART1 for log output with chprintf on the Stm32f303discovery board.
I initialise chip:
BaseSequentialStream * chip= (BaseSequentialStream*)&SD2;
I initialise SD2 driver using instruction:
sdStart(&SD2,0);
Then I send information to Uart2 by the instruction;
chprintf(chp,”Main loop\n\r”);
All works without errors.
But when I want to see the output with the view Terminal in Chibios Studio and set serial port to /dev/ttyACM1 or any other, the Terminal view panel is empty.
Where is the problem?
Best Regards
Alexey Gavrilov
P.S. When I use Uart1 , all is good, I can see output information in Terminal view!
I have problem with using for using USART2 instead USART1 for log output with chprintf on the Stm32f303discovery board.
I initialise chip:
BaseSequentialStream * chip= (BaseSequentialStream*)&SD2;
I initialise SD2 driver using instruction:
sdStart(&SD2,0);
Then I send information to Uart2 by the instruction;
chprintf(chp,”Main loop\n\r”);
All works without errors.
But when I want to see the output with the view Terminal in Chibios Studio and set serial port to /dev/ttyACM1 or any other, the Terminal view panel is empty.
Where is the problem?
Best Regards
Alexey Gavrilov
P.S. When I use Uart1 , all is good, I can see output information in Terminal view!