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
0 votes
1 answer
39 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 ...
user avatar
0 votes
0 answers
49 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 ...
user avatar
0 votes
0 answers
12 views

Stm32CubeIDE ADC interrupt code generation

I configured the ADC interrupt and its priority in the Stm32CubeIDE configuration pannel but the autogenerated code does not mention them at all, other than others configuration e.g. ...
user avatar
  • 1
0 votes
1 answer
63 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 ...
user avatar
1 vote
0 answers
53 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 ...
user avatar
  • 775
0 votes
1 answer
41 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 ...
user avatar
1 vote
1 answer
81 views

STM32) Why DMA can't approach global variable?

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 ...
user avatar
  • 105
2 votes
0 answers
72 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 ...
user avatar
  • 73
3 votes
1 answer
55 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. ...
user avatar
  • 51
0 votes
1 answer
59 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 ...
user avatar
2 votes
2 answers
102 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 ...
user avatar
0 votes
2 answers
136 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 ...
user avatar
  • 229
1 vote
0 answers
167 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 ...
user avatar
  • 186
1 vote
0 answers
106 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 ...
user avatar
  • 229
1 vote
0 answers
135 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 ...
user avatar
1 vote
1 answer
75 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 ...
user avatar
1 vote
1 answer
34 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 ...
user avatar
1 vote
1 answer
193 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 ...
user avatar
  • 33
0 votes
0 answers
26 views

Can we have a mix of streaming and MM DMA in our FPGA?

What do we do if our system uses streaming DMA for data transfers, but we require MM-DMA transactions as well to write to register file? Is there any solution for this while using the DMA subsystem ...
user avatar
1 vote
1 answer
337 views

STM32f7 I2C master transmission using DMA does not work

The problem is the code: HAL_I2C_Master_Transmit_DMA (&hi2c1, (uint16_t)(MCP4725A0_ADDR_A00<<1), (uint8_t *)buffer, 2); Though it returns ...
user avatar
0 votes
1 answer
51 views

Does the MCP4725 support clock stretching? Does DMA need clock stretching in STM32F7?

I'm trying to send data to an MCP4725 through DMA in STM32f746ng but I can't. I'm thinking maybe DMA requires clock stretching and the MCP4725 does not support it? (I couldn't find anything about ...
user avatar
2 votes
0 answers
48 views

LPC1788 multichannel ADC DMA

I have problem with reading LPC1788 ADC pins in multichannel with DMA. Here is the procedure I have followed. I use Keil, initialized UART 0 peripheral, have set all of the ADC pins to be analog, set ...
user avatar
  • 59
2 votes
1 answer
256 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 ...
user avatar
  • 185
1 vote
0 answers
73 views

STM32L072 ADC slow conversion

I am trying to use the ADC on my board that runs at 32 MHz. I want to sample, using DMA, a signal each 2.5 microseconds (400 kHz) but is seems not feasible. The ADC seems to be running at 16 MHz so in ...
user avatar
1 vote
1 answer
230 views

Why does my ADC -> TIM -> DMA driver work for a bit, then freeze up, then continue working again?

This is difficult to describe, but basically my DMA ADC stream will give me correct readings for lets say 10 seconds, then gets "locked up" / outputs static values that do not change (when ...
user avatar
  • 413
2 votes
1 answer
135 views

How does data transfer work in direct memory access?

http://www.unife.it/ing/lm.infoauto/sistemi-elaborazione/dispense/csf04_12.pdf Page 2 My confusion: First peripheral device sends DREQ. DMAC makes HOLD=1. Microprocessor finishes current machine ...
user avatar
  • 23
3 votes
1 answer
321 views

Memory to memory DMA to move top half-word

I set it as a goal to understand mem-to-mem DMA on an STM32, but I think I must be missing something. Say I have an array of uint32_t and I want the top 16 bits, and I want to get it via DMA because ...
user avatar
0 votes
0 answers
91 views

PL-PS communicatioin software in SDK

I need your help in understanding a task. I work on this task the second week and didn't get any results. I work on a design PL-PS communication. I use the Zynq board to test my software. In the ...
user avatar
1 vote
1 answer
802 views

STM32H7 ADC with DMA

I am trying to scan multiple ADC channels on my STM32H753ZI Nucleo board. I have a TIM2 running at a super slow frequency (2Hz) which triggers the ADC conversions. I have it very slow so that I can ...
user avatar
0 votes
2 answers
132 views

Data transmission between SPI and memory

I am working on a design a transmission system in FPGA. SPI slave/master are connected with CPU via DMA. I would like to reach a speed up to 100 Mbits/s and looking a block from IP catalogue (VIVADO) ...
user avatar
0 votes
0 answers
127 views

AXI DMA and AXI Datamover?

I am trying to understand a difference between AXI DMA and AXI Datamover blocks. I read documentations of both. Datamover is simple block: I receive data from SPI, write it in FIFO. If I store data I ...
user avatar
0 votes
1 answer
35 views

Command interface in Axi block

could you help me to understand how the following requirement was computed: For example, a 64-bit address system requires the command word to be 104 bits wide to accommodate the wider starting address ...
user avatar
2 votes
1 answer
415 views

DMA request is ony done 1 time in STM32 - Even if I have check marked it as Circular Mode

Cause for writing this question: I think I found a bug. This happens when I try to enable DMA for SDADC and Input Capture. Introduction: I'm using STM32F373VBTx processor and it working great! Except ...
user avatar
  • 775
1 vote
0 answers
106 views

Command control for axi data mover block

I am a beginner in microcontroller programming and looking for a DMA block which will be a "bridge" between SPI and CPU ( memory). I have found AXI Data Mover block in IP catalogue of VIVADO....
user avatar
1 vote
1 answer
612 views

Difference between DMA and CDMA

I am studying DMA block presented in IP catalog and figure out what the best choice is. I started with AXI DMA and AXI CDMA blocks and found the following description of the difference: AXI DMA is ...
user avatar
2 votes
1 answer
572 views

STM32H7 ADC with DMA reading only zeros (using HAL and FreeRTOS)

I'm trying to read 8 different single-ended analog signals from an array of op-amps with a STM32H7 MCU, however I only get an array of 8 zeros when using ADC1 with DMA (the readings are recovered via ...
user avatar
0 votes
0 answers
233 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 ...
user avatar
  • 283
0 votes
1 answer
197 views

HAL_I2C_Master_Transmit_DMA return HAL_ERROR

These my I2C init functions in stm32f4_hal_msp.c file ...
user avatar
  • 283
1 vote
0 answers
443 views

UART DMA Buffer Problem

I have a problem with DMA receive function, when I stop the HAL_UART_DMAStop(&huart2); dma buffer doesnt clean, so I see the all data in buffer, ( I am using NORMAL BUFFER) when I send 17 ...
user avatar
  • 283
0 votes
1 answer
131 views

How do I configure the ADC/DMA in Atmel start?

I am working on a project that requires the ADC, and I want to use the DMA.  I have been able to get the adc to work using the sync drivers (I haven't tried async), but when I use the DMA no ...
user avatar
0 votes
0 answers
45 views

Connection DMA block with SPI quad block in Vivado

Question 1 I am working on a simulation DMA transfer. it should be connected with SPI slave. The SPI slave has the following ports: ...
user avatar
0 votes
1 answer
78 views

DMA from IP catalog(VIVADO) in my design

1. Question I have being studying Serial Peripheral Interface (SPI) protocol and Direct memory access(DMA). The VHDL-Implementation of SPI slave is done. The next my step is simulation DMA. I am going ...
user avatar
1 vote
1 answer
660 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: ...
user avatar
  • 283
-1 votes
2 answers
214 views

Memory in FPGA: buffer to store bytes "sent" by SPI Slave

I asked before what SPI slave is and how the received data could be stored... SPI slave collect a byte a sent it to FIFO as a temp buffer and the next step is to send the bytes to a memory. I have ...
user avatar
0 votes
3 answers
1k views

IDLE flag problem with uart?

...
user avatar
  • 23
1 vote
2 answers
766 views

Determine DMA receive how many bytes with HAL_UART_Receive_DMA

I need to know, how can I determine how many bytes receive with DMA ? When I using below function, ...
user avatar
  • 23
1 vote
2 answers
1k 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); ...
user avatar
  • 23
0 votes
0 answers
58 views

Working on a legacy system that requires a full DMA controller (external DRQ/DACK mechanism) CPLD or FPGA vs Microcontroller

I'm working on a system that involves a legacy ASIC that requires a DMA controller. My current implementation is based on the STM32, but as you might know, the STM32 doesn't provide external DRQ/DACK ...
user avatar
0 votes
1 answer
193 views

Stm32 dma for IQ modulation

I’m trying to develop an application where I use an stm32f405rgt6 microcontroller ic to drive a radar that operates in multiple ism bands (433.92 MHz, 915 MHz, 2.4 GHz and 5.8 GHz). The overall idea ...
user avatar
1 vote
3 answers
1k views

STM32 ADC sampling with timer and DMA and send data to computer with USB

I want to sample a 4kHz signal that is produced by a signal generator. I read 2000 samples in a row and then I send it to computer via virtual serial that is provided by USB of STM32F103C8T6. I set ...
user avatar
  • 37

1
2 3 4 5