Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

All Questions

Tagged with
0
votes
0answers
13 views

STM32H7 - MDMA with DCMI

I am using DCMI peripheral on STM32H7 to capture an 320x240 monochrome image (1 byte per pixel) and DMA to transfer it to D1 SRAM. DMA uses FIFO, Threshold: Full, Data width: Word for both source and ...
0
votes
1answer
44 views

DMA, Interrupt and UART connection in STM32 for detecting chararcters

I am trying to make a project and am planning to use DMA for my UART from one STM32 to another STM32. Here are some details of what am I using: Chip: STM32F107RB debugger and programmer: Atollic for ...
0
votes
2answers
95 views

How does the DMA know “when to send” the next byte?

I'm transferring data from memory to a peripherial's register in an STM32 uC. For example take 20 bytes. I understand that after sending all the 20 bytes, the "Transfer Complete" interrupt will occur. ...
0
votes
1answer
21 views

MultiByte data integrity with DMA on STM32F3

Despite low-pass hardware filters on ADC inputs I am having a lot of erratic readings. There are 8 single-ended channels in DMA sequence and it is configured for cyclic sampling. Sampling time is set ...
0
votes
0answers
184 views

STM32H7 SPI DMA

On STM32H7 I'm using DMA for SPI transfer. I use SPI1 and SPI4, both in D2 domain, together ...
3
votes
2answers
309 views

How to configure DMA to receive variable length USART messages?

I am trying to receive USART messages on a microcontroller originating from PC which will command it to execute certain tests. I am using STM32F4, I chose to use DMA as messages on the same USART ...
0
votes
1answer
29 views

CS43L22 DMA constant beep noise

I am using CS43L22 with STM32F4 discovery board. I generate sounds by sending I2S messages to CS43L22 using circular DMA buffer (32 size array). However, chip creates a constant beep whether it's ...
0
votes
1answer
35 views

DMA Init code for ADC sampled data

I am trying to figure out how this DMA Initialization code is used to sample following 4 ADC channels and save data in 'adc_data'. ...
1
vote
0answers
92 views

STM32L4 ADC DMA only Triggers Once

for some reason my DMA only seems to update ADC values once. I've set it up so that the callback function simply raises a flag everytime the DMA converts the ADCs, this flag only seems to go off once. ...
2
votes
0answers
60 views

STM32f7 ADC DMA transfer not populating the buffer

I'm trying to compute the FFT of a 100 kHz signal from the STM32f746G discovery board using the HAL and CMSIS DSP libraries and I've run into a few issues. My first issue was trying to trigger the ...
0
votes
0answers
37 views

Concurrent DMA streams handling UART

I've currently got a STM32F777VI microcontroller working with UART receive working through DMA. The problem starts when I try to receive data from 2 UART peripherals using DMA. According to the ...
1
vote
2answers
115 views

Garbage in SPI RX Buffer with DMA (STM32)

MCU: STM32f030f4p6 There is garbage in reception buffer, when I use SPI and 2 DMAs (for reception and transmission). ...
0
votes
1answer
71 views

STM32L432 full duplex DMA SPI slave locks up after communication starts

I am continuously sending a substantial amount of data between the STM32L432 and a FPGA using SPI in full-duplex mode. I decided to implement DMA on the L432 in order to increase the transfer rate ...
0
votes
1answer
153 views

Using Character Match functionality in a STM32F7 chip

I'm trying to implement a UART receiver that works by finding a '\0' in the datastream, OR when it receives 256 characters at which point the data should be processed by an interrupt. The point is to ...
2
votes
1answer
87 views

Why is DMA running continuously?

I'm facing a strange behaviour of DMA which I cannot explain myself. I just want DMA to send a data block (i.e. one 32bit word) to the SAI peripherie and quit then and give a "transfer complete ...
1
vote
0answers
252 views

STM32 HAL PWM output with DMA misbehavior

I use the Blue pill STM32F103C8T6 to generate variable duty cycle PWM with DMA and using HAL library. And stuck with undesired results. First, I generated code with STM32CubeMX v5.0.1, HAL v1.7.0, ...
0
votes
0answers
473 views

STM32 HAL UART receive timeout interrupt

I'm developing a software for the STM32l432KC (NUCLEO-L432KC) which uses 2 UARTS with DMA (RX DMA mode to DMA_CIRCULAR) using HAL. My problem seems to be quite common: the UART buffer length is ...
0
votes
0answers
69 views

STM32H7 DMA2D MEM2MEM rectangle coordinates

Question: how do I specify rectangle copy parameters of source (x1, x2, width, height) and destination (x2, y2) buffer using DMA2D registers, in memory to memory mode? My problem is that I cannot ...
0
votes
0answers
106 views

STM32F072 TIMER PWM + DMA : Not working as expected

I am using TIMER2 + CHANNEL 2 PWM to generate 800 Khz wave. The idea is to vary the duty cycle of this wave as per a statically generated pixel bit array (1 SK6812 pixel = 32 bit GRBW = 32 bytes of ...
1
vote
2answers
135 views

SPI using STM32's DMA sends one word too much

On an STM32F103 I configure SPI in 16bit wide mode and set up a DMA transfer to transmit one byte: ...
2
votes
1answer
275 views

STM32 cant get DMA on PWM

I wish to drive a set of NEOPIXELS (ws2812b) using the STM32F4 discovery board, so far i managed to get a 800 kHz PWM signal using the CubeMX. And And the following code: ...
1
vote
2answers
932 views

STM32 ADC+DMA occurring only once

I'm trying to poll the value of the ADC and store it in a variable using DMA but the variable store the value of the ADC1->DR only once(when the program start). ...
0
votes
1answer
269 views

STM32f103 DMA with PWM repeating values

I have a Blue Pill (STM32F103) and connected to it a ws2812b led strip. I am trying to send data to the led strip via PWM over the TIM2 peripheral (Pin A0). To change the duty cycle of the TIM2 PWM I ...
1
vote
1answer
896 views

TIM2 DMA configuration for stm32h7

My problem: I can't configure DMA to working properly on Input Capture event. Data doesn't transfered and error occurs. ...
0
votes
0answers
345 views

Changing PWMs parameters on STM32 board

I am trying to change the values of Prescaler, Autoreload and Pulse of PWM using Serial communication on a stm32 Nucleo-F091RC. For the most part I am able to do so since the below code works fine: ...
0
votes
0answers
249 views

How to store DMA buffer array?

I am trying to store DMA buffer array such as below; ////////////////////Global Area;//////////////////////////////////////// ...
0
votes
0answers
55 views

How to use DMA with LPTIM effectively in STM32L011K4?

I want to read ADC data from 2 channels using the STM32L011 microcontroller. I can successfully read in int main () by calling the ...
0
votes
0answers
568 views

STM32F7 + TI ADS127L01: SPI with DMA circular mode + Timer IC for data ready signal + CRC

I've connected a TI ADS127L01 to the SPI2 of a STM32F746 mcu via SPI2 and Timer 2 Channel 4 input capture for the data ready signal. As soon the data ready signal is captured, the SPI TX DMA (which is ...
3
votes
2answers
978 views

Configuring the DMA request multiplexer on a STM32H7 MCU

I have recently switched to the newly-produced SM32H7 MCUs and I am currently in the process of migrating some of my old code to them (I want to see how they handle some applications that require a ...
0
votes
0answers
246 views

STM32 PWM generates excessive pulses

I use STM32F103C8T6 to drive WS2812 RGB LED strip. So I try to setup TIM1 to generate PWM using DMA. Everything works fine except the fact that I get more waves then I requested. Almost all the code I ...
0
votes
1answer
399 views

How to reconstruct input signal by using DAC?

I am working on a project in which - I have to continuously monitor the the ADC input on a microcontroller(STM32F407) and check if the value crosses a certain threshold. If the value crosses the ...
0
votes
0answers
1k views

STM32F7 Timer and DMA

I'm currently trying to adapt the example project TIM_DMA of the F769I_EVAL to the STM32F746G discovery board. I'm quite new to STM32 and this might be an obvious error. The code creates a timer and ...
2
votes
1answer
1k views

ADC DMA on STM32, Nucleo F334R8 stops main while loop from executing

I am am reading ADC via DMA on the STM32 Nucleo F334R8. However, after I start the DMA using the code below, the main while loop fails to execute ...
0
votes
1answer
39 views

STM32F10x DMA a constant value

does anyone know if it's possible to DMA a constant value using the STM32F103? I've scrutinized the datasheet but can't see anything obvious and nothing via Google either. Could do a single word in ...
1
vote
1answer
1k views

STM32F - how to config DMA transfer to SPI triggered by Timer?

I am trying to make a project with the STM32F746ZG Nucleo board using the DMA to make a transfer of 16-bit values to a DAC connected to the MCU by SPI. I am using the STM32CubeMX to generate the init ...
1
vote
1answer
278 views

[STM32F103RB][C] - DMA, can't change PWM period

Hello i woul'd like change PWM period with DMA. I wrote code but i don't know why LED BLINKING with constant time ...
0
votes
0answers
488 views

STMF4 ADC conversion seems slow

I'm using an STM32F4 to do some 12 bit conversions. I see from here that I should have hopes of getting somewhere around 1us per conversion, and since I'm doing 2 conversions, I would expect ...
1
vote
1answer
1k views

STM32 HAL Using ADC with DMA affects UART transmission

I am using STM32 Nucleo F334R8 board. I transmit some data using UART in asynchronous mode to my PC using: ...
1
vote
1answer
306 views

Unkown issue while parsing a usart fifo buffer

I have an stm32f429-disco configured for USART (Tx and Rx).Communicating with an asynchronous device. The receive data length is not known before hand. It generally varies from 2 bytes to 28 bytes. ...
10
votes
6answers
9k views

Why not always use DMA in favor of interrupts with UART on STM32? [closed]

I spend last month a lot of time getting UART (for MIDI) to work with an STM (STM32F103C8T6) using interrupts, without very much success. However, this evening using DMA it worked quite fast. Since ...
1
vote
2answers
208 views

STM32F103ZET6 USART with DMA behaves differently in debug versus reset run

I am using the STM32F103ZET6 MCU and am having a weird problem where if I program and debug or program and reset my MCU the USART3 used to communicate with a slave device does not work. In debug there ...
1
vote
1answer
614 views

16bit DMA UART w/ STM32F4

How do I transmit 16 bits of data with UART to a 16 bit array? I've got two elements in my array, my UART is set up as 8N1 and my DMA is set to circular. I'm using some HAL stuff, and here's my ...
1
vote
3answers
1k views

stm32 gpio to dma

I have a few questions regarding using the DMA of the stm32f7 board (nucleo F722ZE ). 1) So to get started I'll explain what I'm doing: I need to read data from 2 GPIO pins (ADC) and will have a ...
4
votes
1answer
4k views

STM32 HAL UART Transmit DMA problem

After setting up my project for a custom STM32F7 board which includes a FT2232H UART<->USB converter I got multiple problems when sending (and receiving data). The code I use is mostly generated by ...
5
votes
1answer
904 views

STM32F4 How to stop triple interleaved mode?

I am using triple interleaved mode with DMA in STM32F429 and have problem stopping it. It should be stopped by HAL_ADCEx_MultiModeStop_DMA(&hadc1), but while ...
0
votes
0answers
939 views

4-bit parallel data bus using DMA and GPIO on STM32?

It's possible to generate 8 or 16-bit parallel output on an STM32 by using DMA to transfer from a buffer to the ODR register of a GPIO port, by transferring either a byte or a word at a time. However ...
0
votes
1answer
502 views

DMA circular input

I want to copy the same value, say 0.0f, into a big block of SDRAM through DMA. For example, STM Discovery 429 uses DMA2D for fast screen clearing with the ...
3
votes
1answer
4k views

DMA triggered by Timer using STM32F4-Discovery board

I am trying to trigger the DMA peripheral by the Timer using STM32F4-Discovery board, but it doesn't seem to work. I want to get the value of a port (Port C) every 5 ms and save the value in memory ...
0
votes
2answers
615 views

STM32 DMA short data burst buffer speed limitation

I had gone through few texts on this topic (listed below), but was not able to figure out the speed limitation of STM32´s DMA. What is needed: Take 8bit parallel burst input from external ADC (20 kB ...
4
votes
1answer
4k views

HAL + DMA + UART = STM32 crash

I'm currently working on a project which involves communication between a STM32F303RE (Nucleo board) and a classic GSM/GPS SIM808 module plus other peripherals. I want to use the DMA + UART of the ...