STM32Discovery - Using HAL_UART_Transmit_IT() in ew_bsp_console

158 views
asked Mar 20 in GUI Development by rscr

Hi, 

I don't know if it is the best place to ask it but:

I am using STM32F769-Discovery Platform Package for developing a product prototype.

I have modified ew_bsp_console.c for using USART6 instead of USART1 for communications. That is working perfectly if using HAL_UART_Transmit() in EwBspConsolePutCharacter().

Now I'm trying to use HAL_UART_Transmit_IT() along with USART6_IRQHandler(). Also, I have modified  EwConsoleOutput() for sending all buffer at once, instead of single characters.

Attached the modified files:https://ask.embedded-wizard.de/?qa=blob&qa_blobid=588006794209012583

The issue is that I get this response when transmitting (PC and stm32 serial config are: 9600,8bits,1stop, none parity, none hw control)

Why sometimes the transmission is not correct?

Kind Regards,

Rafa

1 Answer

0 votes
answered Mar 20 by Manfred Schweyer
Hi Rafa,

since this question is not related to GUI development with Embedded Wizard, let me recommend to have a look into the UART examples that are provided with the STM32 Cube firmware tree and to have a look into some STM32 forums. I think there will be a lot of discussions about UART configuration with or without interrupts.

Best regards,

Manfred.

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...