Finally I used the HAL_UARTEx_ReceiveToIdle_DMA(...) function and the associated HAL_UARTEx_RxEventCallback(...) Interruptcallback. It works nice now, but I had some issues, which have been not so easy to explore. So I want to share them here. Maybe,...
Hello Community,I'm developing a program for a STM32 L051R6T6 with CubeIDE.on bare metal, using HAL driver functions.It reads some cyclic data from two USARTS using DMA.The maincycle does processing of the rxTelegrams, transmits and does some logging...
Hello community, I experienced a strange behavior, when when using the UART-DMA-mechanism.The MCU is a STM32L051R6T6, and I use CubeIDE with HAL-drivers.I receive a cyclic telegram of 40 bytes on both USARTs.The telegram starts with two detection byt...
Hello community,I use CubeIde to program my STM32 L051R6T6.Language is C.I do the following definition in a .c file:enum internalFaults{
internalFaultsTransmitPrepare,
internalFaultsTransmit,
internalFaultsWatchdogAlarm,
internalFaultsTelegramsRx...
Hello @F.Belaid ,I know, that on circular DMA configuration data also will be stored in byte with index 0 again. But what I tried to say is, for an example:If this first byte (index 0) is the last one, that was written before idle interrupt happens,...
So now I can answer for myself. Maybe someone could help this.In my case all my code was in an extra folder. And, however, this folder was excluded from build in release configuration.So solution was: switch to release configuration, then right clic...
Since I could only attach one file, here comes the debug build:I'm not familiar to eclipse, so I dont want to change something I do not understand well. But there seemsto be something missing in the release build configuration.Thank you.
Have the same problem here.Debug compiles and links without errors, release does not.I didn't change anything in the build configurations. But i looks as Release doesnt clean end compile my my own code. So functions called in main.c are not definded ...
Yes, I see, that it's not documented in manual. But why is it included in stm32l0xx_hal_uart.h (which is integrated to the project, when I start a new priject for my STM32 L051R6T6)? And however, as I experienced, It just works.I have a Nucleo Board ...