Questions tagged [dma]

Direct memory access (DMA) is a feature of computerized systems that allows certain hardware subsystems to access main system memory independently of the central processing unit (CPU).

Filter by
Sorted by
Tagged with
2 votes
1 answer
36 views

Synchronous Sampling of ADC over SPI on STM32 (STM32G474)

I have a design incorporating an ADC with an SPI interface that requires: SPI Transfers of 32-bits to read the conversion results from the previous conversion. To be able to sample the ADC at 1 MSps ...
gordonC's user avatar
  • 21
0 votes
1 answer
22 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 ...
SRobertJames's user avatar
1 vote
1 answer
91 views

MAX32660 SPIMSS DMA documentation?

SPIMSS DMA examples are conspicuously missing from the MAX32660 SDK version that I have. Is there any documentation that explains whatever operating conditions are relevant to an actual SPIMSS DMA ...
personal_cloud's user avatar
1 vote
0 answers
42 views

Stm32F746g ADC SCAN mode not printing any values through DMA

I have an STM32F746g-Disco board that I'm using to continuously read 4 ADC channels directly to the memory. I've tested the ADC on continuous conversion mode for each pin separately and it works, but ...
Eli Y's user avatar
  • 75
0 votes
0 answers
36 views

STM32H750B-DK ADC sample rate calculation

I am making an oscilloscope. I am using ADC with configuration like this: And I am triggering my ADC with 1 ms (at least I think it is (was always confused on how to calculate its tick, so I just set ...
LaCalienta's user avatar
3 votes
3 answers
356 views

STM32, how to create microseconds long custom pulses

In steady state the line (output) is high and we have to create pulses that are microseconds long and are low. It is going to be a custom sequence with different pulse lengths (for example the line ...
dsplover123's user avatar
0 votes
0 answers
64 views

STM32G474 Bizarre ADC Issue - Values starting jumping periodically some time after startup

I'm at my wits end trying to debug an STM32 ADC issue. I'm using 9 channels of ADC4 to read cell voltages from op amps, instrumentation amps, and a few other voltages through dividers. These circuits ...
Ryan Coleman's user avatar
0 votes
0 answers
20 views

How can I use the DMA of a PIC24F microcontroller?

I want to use the DMA of a PIC24FJ1024GB610 that I have. Basically, what I want is to read some analog inputs and store them in a memory space that the CPU can access whenever it wants to perform ...
WalterPH's user avatar
  • 348
0 votes
0 answers
94 views

STM32 - How to convert ADC (with DMA) sample number to time without assuming uniform conversion time?

I'm new to working with ADCs on STM32. I'm reading a rectified voltage using ADC with DMA on an STM32G0B1. I know the ADC conversion time from the datasheet but I want to compare the ADC's output with ...
Kartik's user avatar
  • 17
1 vote
0 answers
102 views

How do I synchronize SPI DMA transfers to an external ADC using STM32

I am trying to receive data continuously from an ADC using an STM32G4 microcontroller. The ADC has an independent clock, free running from the MCU, and indicates data ready with a DRDY pulse. 18 bytes ...
Mike's user avatar
  • 513
0 votes
0 answers
25 views

How to chose the correct value for configuring burst ETH-DMA accesses for STM32F207?

I'm checking the default configuration of an ethernet communication project based on STM32F2 microcontroller (stm32f207 RM0033 UM). Where the comments I'm gone to do, they could be find on section 28....
Suvi_Eu's user avatar
  • 787
0 votes
0 answers
39 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 ...
Mr Smile's user avatar
0 votes
1 answer
260 views

how to convert a uint32_t array data buffer to an uint8_t array in C?

I'm making a STM32F4 RC transmitter using the NRF24L01, but this device only support a uint8_t buffer array to transmit. I'm using in the ADC (DMA mode) in my STM32 board but the ADC read output is in ...
miguel ramirez's user avatar
0 votes
2 answers
66 views

STM32H750B configuring DMA to transfer from GPIO to RAM

on STM32F769i I used DMA2 triggered by TIM1 to read data from GPIOB port like this so timer1 counted and when it triggered DMA read data in circular mode from GPIOB into my buffer ...
LaCalienta's user avatar
1 vote
0 answers
153 views

STM8L DMA and ADC out of sync

I have STM8LDiscovery (with STM8L152C6T6 CPU). I need to continuously read 2 ADC channels with writing the data to the memory. I'm doing my project in IAR EW for STM8 v. 3.11.4. I run into the problem:...
Roman Matveev's user avatar
1 vote
1 answer
245 views

Data coherency with DMA and I2S audio on STM32H7

Moving from a audio effect prototype based on the STM32F407 to the STM32H757. Did a lot of stuff on the F4 with audio but on the H7 I'm getting stuck and can't get a simple audio loopback with DMA. I'...
Alefal's user avatar
  • 31
0 votes
1 answer
119 views

Why does Ethernet stop working if the value of Ethernet DMA control registers refers to CCM memory?

Development environment and application details I'm working with STM32F427 and I use Keil uVision V5.29 to develop my application. The version of the ArmCLang Compiler, of the Assembler and the linker ...
frankfalse's user avatar
0 votes
0 answers
563 views

Issue with getting HAL_ADC_ConvCpltCallback to continuously trigger

I have STM32F0 code that reads 7 ADC channels, stores them in DMA, and transmits the values over CAN to drive a motor controller. ADC events are triggered by tim1, then I send the CAN message in the ...
mysteryflavor133's user avatar
1 vote
0 answers
374 views

Using multiple ADC-s with DMA simultaneously – STM32

Is there a way to use DMA with multiple ADCs at the same time? I know you can scan multiple channels on one ADC, but I currently use 5 different ADCs on my STM32G4. I use the HAL library function <...
Taavi's user avatar
  • 11
1 vote
1 answer
165 views

STM32F4 ADC+DMA wrong values

I try to setup STM32F407ZGT6 chip to work with ADC throught DMA, currently I'm using HAL lib for fast prototype but have some problem. I set up ADC as 3 chanel Scan Continous mode using DMA in ...
Alexey's user avatar
  • 33
0 votes
0 answers
61 views

Transfer a received array to memory in real-time

I'm using STM32F407. I save the data read from a microphone via the HAL_I2S_Receive_DMA API using a circular buffer. I store the received data in an ...
KaleM's user avatar
  • 327
1 vote
0 answers
130 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?...
Surendran 's user avatar
1 vote
1 answer
733 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 ...
Surendran 's user avatar
0 votes
0 answers
74 views

STM32F103C8 and ili9341 (SPI, DMA without HAL) troubles

I arrange code from CubeIde in my project(KeilIde). My project uses StdPeriph and CMSIS but does not use HAL. I believe that I did the initialization of SPI and DMA and GPIO correctly, I checked it ...
ArchiKu's user avatar
2 votes
1 answer
721 views

Performance difference when comparing PCIe DMA vs. MMIO for same data access size

Some PCIe devices can map their own device memory region fully to contiguous host physical memory address space through a feature called PCIe Resizable BAR (base address register), which makes it ...
hurryman2212's user avatar
0 votes
0 answers
96 views

STM32/ESP32/PIC32 + multiple SPI devices + Ethernet

I am developing a measurement system, comprised of a MCU (being STM, ESP or PIC), multiple (let's say 8) ADCs sending data over SPI. ADCs are to be triggered using a SYNC signal so that they sample at ...
kubajed's user avatar
  • 13
0 votes
0 answers
67 views

Color depth incompatibility in esp_lcd

I'm developing a project where, using a ESP32 with the esp-idf framework. I need to control, among other things, an LCD display with an SSD1963 controller, and I can only spare 8 GPIO pins for its ...
rubemnobre's user avatar
-5 votes
1 answer
98 views

How to read HLDA pin DMA Controller 8237 with Assembly Codes [closed]

I trying to read HLDA Pin in 8237. But i can not find a literature(s) about it in Internet. In Assembliy codes. The circuits is use for i/o cards in PCI or ISA BUS. addeds DMA Process with all. I use ...
adhitronic's user avatar
0 votes
1 answer
86 views

How to use DMA for sampling external ADCs connected in daisy chain and SPI interface with STM32F303?

I use twenty AD7685 ADCs connected in a daisy-chain configuration. They communicate with an STM32F303VCT6 MCU via the SPI interface. I want to trigger DMA to process such an amount of information. So ...
Valeriya's user avatar
  • 147
0 votes
0 answers
234 views

Read Parallel CMOS ADC using (STM32)DCMI interface

I have an external ADC with 3 outputs, 2 bit (I0,I1) and 1 clock(clk_out). I am trying to read those pins at the falling clock edge using DCMI in NUCLEO-H743ZI2 board, I wrote a code using HAL where I ...
AHMED's user avatar
  • 3
1 vote
1 answer
1k views

How do I receive data over USB on an STM32F401RE Nucleo board?

I am very new to STM32s. I have been trying to interface a sensor using an STM32F401RE Nucleo board but failing to receive sensor data from the board. I generate 3 clock signals to drive the sensor. I ...
Harit's user avatar
  • 73
4 votes
1 answer
359 views

STM32: Problem with DMA while CPU is in sleep

I'm completely baffled as to how to make DMA and sleep mode work together on an STM32F0. It appears when the CPU enters sleep mode via the wfi instruction, DMA ...
neoxic's user avatar
  • 226
0 votes
0 answers
950 views

How to stop the DMA transfer when it reaches end of the buffer?

I want to mimic the "double buffer mode" without using it (because I don't want to deal with the error conditions, plus, I didn't really understand how it works) so I need to Start DMA ...
ceremcem's user avatar
  • 1,396
0 votes
1 answer
490 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 ...
steevglez's user avatar
0 votes
0 answers
228 views

Teensy read two encoders simultaneously

I am trying to read two Quadrature encoders at exactly the same time. They are 4000CPR encoders, and they will be spinning between 10 to 60 RPM. The two encoders are mechanically paired to the same ...
Marko Jurisic's user avatar
0 votes
2 answers
257 views

Using MDMA for buffer manipulation on STM32H743vit

I have buffer buff[BUFFER_SIZE], I want to fill it with data from random generator peripheral. Then the copy must increment equal to BUFFER_SIZE. After calling DMA ...
mohammadsdtmnd's user avatar
1 vote
0 answers
266 views

What DMA settings should I use for DCMI for STM32?

OV7670 is a camera with 8-bit bus communication. It's possible to connect that to a STM32 who has a DCMI communication bus. There are two types of OV7670. One with FIFO chip behind the camera and one ...
euraad's user avatar
  • 1,045
0 votes
1 answer
145 views

STM32H743 MDMA can't access APB2

I have a code that mdma can access any variable feed to it by &var (AXI SRAM) also I have gave it an address of ADC common registers from APB1 but adress from APB2 &hrng.Instance.DR causes ...
mohammadsdtmnd's user avatar
2 votes
1 answer
445 views

Why DMA can't approach global variable (STM32)?

I test memory to memory DMA with my STM32H750VBT. I study with following this link. enter link description here According this link, source is inside flash and destination is inside SRAM. I test ...
박성재's user avatar
  • 115
2 votes
0 answers
767 views

How to use DMA to sample external ADC (16bit ADS8688) using SPI with both single ADC and daisy chain configurations

I am using an STMF446ZE MCU for a data acquisition + engine control unit application. My application uses four ADS8688's to sample 32 sensors. 28 of them are required to be logged at 100 Hz while the ...
AngusE's user avatar
  • 73
3 votes
1 answer
187 views

STM32H747 MDMA Transfer Error Address when using FreeRTOS

I'm using the MDMA to communicate with an external flash over QUADSPI. I have an implementation which works great without FreeRTOS, but when I implement it using FreeRTOS I get Transfer Error Address. ...
GBohlin's user avatar
  • 51
0 votes
1 answer
260 views

Interfacing a microcontroller to a PDM microphone via DMA and low power

I need to interface a low power PDM microphone (Vesper VM1010) to a low power microcontroller with ZigBee support. For the latter, I've settled on Silicon Labs EFM32 Gecko, primarily due to its ...
SRobertJames's user avatar
2 votes
3 answers
443 views

Is it possible to send data through I2C with TIM without CPU interrupt and just DMA Interrupt

Because I've seen HAL_TIM_Base_DMA_START() in the STM32F7 HAL timer library, I though maybe it is possible to, for example, call HAL_TIM_Base_DMA_START() and timer continually requesting DMA to ...
mohammadsdtmnd's user avatar
0 votes
2 answers
607 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 ...
davegravy's user avatar
  • 319
2 votes
0 answers
652 views

How to timer-triggered multi-channel ADC conversion run in STMH7

I've managed to get the timer-triggered ADC to run for single-channel conversions where an interrupt routine is called upon completion of the conversion. However, I need three channels to be converted ...
Hansel's user avatar
  • 278
1 vote
0 answers
340 views

Receive frame of ADC samples via SPI with discontinuous clock using DMA

With stm32u5 as SPI master I'd like to use DMA to receive sample data from an external ADC (LTC2512-24). The ADC has pretty tight timing requirements that SCK stop 740ns after the falling edge of the ...
davegravy's user avatar
  • 319
1 vote
0 answers
442 views

How to initialize STM32F401 DMA SPI Slave with an empty FIFO Tx? (Or how to flush it?)

I am using the DMA SPI as slave on a STM32F401. I use: DMA SPI SlaveHAL_SPI_TransmitReceive_DMA(&hspi2, pTxData, pRxData, len}; When I do this a len amount of ...
Arjuna Deva's user avatar
1 vote
1 answer
180 views

Can run LTDC by circular buffer for easy graph drawing on STM32F7?

In stm32f746G-Discovery, I want to draw moving graph like drawing ADC output on real time. Is it possible to make start address of LTDC buffer shifting in every single new ADC data to having graph ...
mohammadsdtmnd's user avatar
1 vote
1 answer
150 views

STM32F7 Two Timer Channels Share One DMA Channel

I am trying to write a driver that sends DShot commands to an ESC. I am using an STM32F722 MCU. The DShot protocol is similar to addressable LEDs where 1/3 duty cycle represents a 0 and a 2/3 duty ...
Jeremy Wolfe's user avatar
1 vote
1 answer
628 views

HAL_I2C_Master_Transmit_DMA sends only one byte

i am having an issue using STM32G4 with I2C DMS and FreeRTOS. I have used the library https://github.com/firebull/STM32-LCD-HD44780-I2C for a long time with STM32F4 and free RTOS and it works ...
Majdgh's user avatar
  • 33

1
2 3 4 5