2021-05-25 02:29 AM
Dear all,
I am working on STM32F413 microcontroller.
I want to transmit data on UART without using any HAL function.
And I want to send data in non blocking mode means on interrupt mode not in polling mode.
Can anyone help me out in this?
Thanks
Solved! Go to Solution.
2021-05-25 12:57 PM
First
In the global variables:
In startup part of main():
In the program:
In main, during runtime, whenever need to transmit arises:
JW
2021-05-25 06:51 AM
Here is an example:
https://github.com/STMicroelectronics/STM32CubeF4/blob/2f3b26f16559f7af495727a98253067a31182cfc/Projects/STM324x9I_EVAL/Examples/UART/UART_Hyperterminal_IT/Src/main.c
Edit: oh, without HAL.
2021-05-25 08:06 AM
UART examples by Tilen Majerle. Mostly LL, no HAL. And DMA :thumbs_up:
https://github.com/MaJerle/stm32-usart-uart-dma-rx-tx/tree/master/projects
2021-05-25 09:40 AM
>>Can anyone help me out in this?
I'm not interested in writing all this code, if you want to do it without the HAL at least understand how the HAL implements it at a register level, and how the Reference Manual describes the registers. And how the NVIC works on the CM4.
If you want to do register level coding you need to own the task
2021-05-25 11:48 AM
A good way to do this stuff is to use cube IDE to generate the code, and then chop all the garbage (like error conditions which cannot happen unless the silicon is faulty) out of it, then paste the remainder into your project, and throw away the original "project". I have never done this but know somebody who does.
2021-05-25 12:57 PM
First
In the global variables:
In startup part of main():
In the program:
In main, during runtime, whenever need to transmit arises:
JW