2018-04-01 06:36 AM
Hey guys,
I am trying to receive the nmea sentences from my gps module. I am putting the received bytes in an array and if I get the '\n' I want to transmit the array.
Problem is it only works once, then it stops:
What could be the problem?
&sharpstm32l4discovery
#discovery #receive #problem #uart #stm32l4discovery #trasnmit #byte2018-04-01 06:48 AM
This should be scoped with i, the data length actually receive, not the maximal empty buffer length
HAL_UART_Transmit(&huart2, rx_buffer, sizeof(rx_buffer), 1000);
Also be aware that this with block for multiple byte times, resulting in data loss and overrun errors on HAL_UART_Receive() that also blocks.
Please try to keep your progress in a single thread rather than forking it at every hurdle.
2018-04-01 06:58 AM
https://community.st.com/0D50X00009XkWVWSA3