cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 Bad UART communication

michalt
Associate II
Posted on November 13, 2016 at 16:00

Hello,

I created a project using CubeMX and I want to send messages via UART. I used a HAL_DAC_Start_DMA function. My problem is that when I'm sending some messages only 20 first characters are sent but after I send some another messages those wrong ones works fine. Also I noticed that only for optimalization level: Optimize for size UART transmission works.
2 REPLIES 2
Posted on November 13, 2016 at 16:11

Do you think your presentation is adequate to understand what your code is doing?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
michalt
Associate II
Posted on November 13, 2016 at 16:24

For example:

I'm sending to uC command SET_FREQ 100\r and uC should send message OK FREQ SET TO 100Hz\r\n but i receive only OK FREQ SET TO 100. But then I send to uC command SET_SIGNAL SINE\r and uC send message OK SIGNAL SET TO SINE\r\n as it should. And then I send command SET_FREQ 100\r and uC send full messege OK FREQ SET TO 100Hz\r\n.