Output Two ADC Channels Over UART
- February 1, 2019
- 2 replies
- 1195 views
I'm using the nucelo STM32F446RE dev board and attempting to output two ADC channels over UART (technically I think it's USART). I Can see in the debug tab that I'm reading the ADC channels correctly. I had been reading out one channel over UART 2 (the default) but I'm now trying to read two channels our over UART 1 but I'm not getting any data out of the UART (both Baud rates are matched, and it's connected to my computer). On the Dev board I had to Bridge SB62 and SB63 and took off SB13 and SB14 to enable UART 1.
To read two ADC channels I used the DMA, but I'm using the "HAL_UART_Transmit" command to try to transmit the data. I noticed there is a "HAL_UART_Transmit_DMA" command, do I have to use that instead? When trying to read the UART I get no data output.
If someone has time to take a look at my code or make a suggestion(main.c file attached), I'm probably making a very simple mistake and would be forever grateful for any help. Thanks in advance.
