All Questions
37
questions
0
votes
0
answers
77
views
STM32H7 CortexM4 DMA issue
I'm trying to use USART + RTS only + DMA(non circular, peripheral to memory, DMA1 Stram0) on STM32H755ZIT6's M4 processor.
I and D caches are enabled.
My code is working on M7 but it does not works ...
0
votes
1
answer
89
views
STM32F103 UART DMA transmits corrupted data sometimes
I`m using STM32F103CBT6 core with UART via DMA on 9600 baud rate.
The device in idle state transfers data between controller and bill validator unit. In the same time I`m sniffing the data that are ...
1
vote
0
answers
381
views
STM32H7 UART DMA Issue
I have two MCUs, first one is STM32F070F6P6 which sends data over USART2 TX DMA and second one is STM32H755ZIT6 which receives data over USART2 RX DMA.
Also notice that STM32F070F6P6's TX Pin ...
0
votes
1
answer
280
views
How to receive from UART via DMA on STM32F4?
Thanks to help from this site, my code can send and receive over the STM32F446RE Nucleo UART (using the Nucleo's built-in ST-Link / VCP). I'm now trying to move the receive to DMA, and seem to get a ...
0
votes
0
answers
84
views
How to transmit five byte data transmit in UART_DMA?
HAL_UART_Transmit_DMA call in timer interrupt handler to check the output for just now. The output is came but this is not proper output. this method for just call in to the interrupt handler output ...
1
vote
1
answer
200
views
STM32 USART RX with DMA
I'm trying to set up UART communication with DMA using the STM32F103C8 controller. I'm trying to receive data with DMA, but I can't receive data continuously. Can anyone correct me if I made a mistake?...
1
vote
1
answer
1k
views
STM32 UART with DMA
I'm working on firmware for an STM32F103 which is communicating over RS232 at 9600 baud. I need to transmit and receive the data by using UART_DMA method. For transmitting the data, the DMA register ...
1
vote
1
answer
1k
views
STM32F407VET6 - How can I handle frame and noise errors in UART?
I'm receiving data in UART Rx with DMA and I need to make it immune to disconnections. Now, sometimes I can recover the communication after a disconnection, but I need to recover it always.
Using the ...
0
votes
2
answers
899
views
stm32 reading from SPI and forwarding to USART
I'm reading samples at a fairly high bitrate (820kbps) from an external ADC over SPI. I need to add a CRC byte and then forward each sample to USART.
As a consequence of my inexperience, within the ...
2
votes
1
answer
970
views
STM32 ADC & DMA causing infinite loop at startup
I am working with a nucleo-F401RE - I am experimenting with the DMA and ADC. When I try to debug my code it is immediately going into Infinite_Loop
here is my code:
main.c
...
0
votes
0
answers
1k
views
DMA Normal Mode And HAL_UART_TxCpltCallback
I am using UART with DMA on stm32f4xx. I am trying to use RS485 interface.
When I use the HAL_UART_TxCpltCallback, callback I get hardfault in my proccess.
How can I check transfer completed without ...
1
vote
1
answer
2k
views
HAL UART DMA NDTR Register
I am working with the stm32f4xx for the using UART DMA Tx-Rx operations.
I have this line firstly:
...
0
votes
3
answers
4k
views
2
votes
2
answers
5k
views
Determining how many bytes DMA receives with HAL_UART_Receive_DMA
How can I determine how many bytes to receive with DMA?
I use the this function:
HAL_UART_Receive_DMA(&huart2, (uint8_t*)rs485RxDMABuffer, 100)
If I don't ...
1
vote
3
answers
4k
views
HAL_UART_Transmit_DMA function sending wrong data
I am trying to use UART with DMA,
before the DMA I tried polling method with while(HAL_UART_Transmit(&huart2, (uint8_t *)rs485TxBuffer, 17, 100) != HAL_OK); ...