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
0answers
14 views

axcache, axprot and axqos values for dma data transfer

I am working to understand the DMA which has an APB4 slave interface for configuration and a AXI4 master interface for DMA transfer. As AXI4 has axcache, axprot and axqos signals, I want to know that ...
0
votes
2answers
54 views

FPGA to DMA to RDMA

I am trying to send data generated from my FPGA card out to an IB device. I want the latency to be as low as possible, so I am thinking this may be the data path. FPGA --> DMA via scatter/gather ...
0
votes
1answer
47 views

How does reading from a peripheral device at a specific address using SPI work?

This question is about trying to understand how the communication is implemented on a typical peripheral device such as an accelerometer, or flash chip. More specifically, I'd like to understand how a ...
0
votes
0answers
28 views

problem with using DAC with DMA and timer trigger

I'm trying to configure a DAC with DMA and timer trigger to make a sine wave with 1KHz frequency(100 samples) and I'm using registers. my problem is that the DAC is not triggered when the timer value ...
0
votes
0answers
54 views

why f_rename of fatfs is very slow?

I'am developing a datalogger with an stm32L496 + FreeRtos + FatFs. The data logger save data to a buffer and when is full, the buffer is saved in a file on an SDcard with the help of fatfs and the ...
0
votes
1answer
52 views

STM32 - How to trigger a DMA transfer via hardware timer, while CPU is in SLEEP mode?

I'm trying to set up a simple project that does the following: Enter sleep mode and in the main loop, it waits for interrupt - __WFI(). Transmits data from a buffer[4] to the PC, via UART. The ...
0
votes
0answers
19 views

STM32 Nucleo L053R8 - Not able to select number of conversion

I am trying to use multiple ADC channels via DMA. Something like this over here: enter link description here. The issue is however, that I cannot choose the number of conversions. I am not even given ...
1
vote
0answers
29 views

Change DMA memory content

I need to change the DMA content(the values of the memory) for my application(doing animation on ws2812b strips). DMA circular mode DMA with PWM generation To further clarify, here's code for a ...
0
votes
0answers
48 views

STM32: I2C works only sometimes with Interrupts

I'm working on a little project where I need to read the HMC 5983 Sensor with I2C from a STM32F103RB Board. When I tested the sensor with the Hal_I2C_Master_Transimt, everything worked fine. I could ...
0
votes
0answers
63 views

DMA (Direct memory access)

I have been studying DMA provided by the Infineon in XMC4100 & XMC4200 microcontroller series. I have questions that are listed below, everyone will be highly appreciated to answer them and help ...
6
votes
3answers
834 views

Memory To Memory DMA on STM32

According to STM32F407 reference manual page 313, memory to memory mode in DMA is a mode that doesn't need any triggering request from a peripheral and it will happen just after the stream enable bit ...
0
votes
1answer
25 views

Vivado Zynq DMA unconnect automically generated AXI-Lite interface from AXI Interconnect?

I am trying to initiate a MM2S stream read from the programmable logic of a Zynq board. I have inserted the AXI DMA IP, and intend to use the AXI-Lite interface on it to program the registers in the ...
0
votes
0answers
18 views

Initiating DDR Reads From Zynq PL With DMA

I am trying to initiate reads from the Zynq PL over Xilinx AXI DMA IP, but I haven't been able to find an example to make things fully clear for me. If I am using the DMA in Direct Register Mode, what'...
0
votes
1answer
44 views

stm32f103: a timer triggering DMA to update another timer's CCR using libopencm3

I'm playing with the blue pill. Here I run TIM2 and enable the DMA on its update event, according to Table 78 of RM0008, the DMA channel I should use is channel 2 on DMA1. Then I want the DMA to ...
1
vote
1answer
90 views

Is there a hardware only way to read a digital pin on the STM32 at a given frequency?

I'm using an STM32H7 and looking to sample a digital signal at ~6MHz directly into memory with periodic interrupts? I've seen an approach using a DMA read from the GPIO ODR address but this would seem ...
0
votes
0answers
152 views

STM32 Timer - Issues with generating 1 us pulse on GPIO

I am using Nucleo-F767ZI board which has STM32F767ZI controller on it, and am in need of sending out a particular structure of elements bit-by-bit through a GPIO pin once every microsecond (1 MHz freq....
0
votes
1answer
202 views

What if you enable both DMA and Interrupt for a STM32 ADC

Imagine this scenario: You are using a timer driven ADC in DMA mode, nothing special. Now, because you are interested in having a Watchdog, you also enable the ADC Global Interrupt in CubeIDE (...
0
votes
0answers
46 views

STM32F7 HAL SPI DMA Tx does not work

I want to read my IMU with DMA with only SPI DMA Rx and normal SPI Tx the code works but when I use SPI DMA TX the State of the SPI handler stays on HAL_SPI_STATE_BUSY_TX; I'm using the STM32CubeIDE 1....
1
vote
1answer
38 views

How to know if DMA on STM32 is being used or not

I am using the STM32F410CBT's DMA to output a square wave on the PWM peripheral with varying duty cycle. The duty cycle will vary at a button press (through GPIO interrupt). I managed to vary the PWM'...
0
votes
0answers
21 views

Double buffer & ADC Data processing

I'm using HT (Half Transfer) and TC (Transfer Complete) interrupts in STM32 to do a ping pong buffer. I would like to find the RMS value of the array captured. Sampling frequency is 6 kHz and buffer ...
2
votes
1answer
58 views

Can the STM32G4’s DMA multiplexer (DMAMUX) be synchronized to a timer other than LPTIM?

I’m working with an STM32G474RE chip, and I’m trying to use the synchronization feature of the DMA multiplexer to time when a DMA transfer to SPITX should occur. I’d like to have this timed ...
0
votes
1answer
74 views

Using Window Function to calculate RMS

The code below is from this site: https://community.cypress.com/thread/51426 I'm trying to understand what is happening in that code. Do I really need double type variables? This code is implemented ...
2
votes
0answers
47 views

ADC Overrun with Multimode, Scan and timer-triggered configuration

I'm using the STM32F446VE with 3 ADCs. I have a 50 kHz PWM running and want 2 of the ADCs to measure 2 Channels synchronized with the 50 kHz PWM. To achive this I used the regular simultanuous dual ...
0
votes
0answers
139 views

DMA Continuous Request and Normal vs Circular Mode

In STM32CubeMx, when configuring the ADC with DMA I can enable DMA Continuous Requests and set the DMA in circular mode if I want to perform N conversion at time indefinitely, right? But, what if I ...
0
votes
1answer
54 views

Interaction beween DMA transmission complete and peripheral interrupts

I have two related questions regarding using DMA with an STM32 chip. I'm using STM32F031C6, but the answer should apply to other models. I setup the USART to issue a character match interrupt. I'm ...
0
votes
0answers
19 views

EFM32ZG110F32 Timer PWM with DMA - slow to update

I have a project where I am trying to drive some Addressable RGB LEDs which require a high-frequency PWM signal (800kHz) with a duty cycle of either 33% or 67%. I have started from the following ...
1
vote
1answer
131 views

PIC32 DMA (connected to SPI) interrupt not working

I am working on my first PIC32 project on a custom board. I am utilizing a PIC32MZ2048EFH064 microcontroller which I am programming in MPLAB X IDE v5.40 (compiler: xc32 v2.41). My goal is to receive ...
1
vote
1answer
601 views

STM32F4 Discovery ADC trigger using Timer 2 and DMA | CMSIS Core

I am working with a very old problem which is to convert ADC and send to UART via DMA. I am stuck at making the correct sampling time. What I had done so far is to configure TIMER2 and ADC. I Used ...
0
votes
2answers
104 views

Recieving and processsing array of data on STM32

I am trying to use RealTerm to send a .txt file containing a 10X10 array of data to my STM32 NUCLEO board using UART. So far I have been using HAL_UART_Receive_DMA and I have been able to store simple ...
0
votes
1answer
58 views

How does cache coherency and DMA work together?

I am currently reading about caches and how they are used in Computer Science. The explanation of how the cache is always up to date with the actual memory is understandable as long writing and ...
0
votes
0answers
428 views

DMA + ADC + FreeRTOS in STM32 - Cannot read any ADC value - Why?

I'm using Nucleo STM32F401RE board. I have a small issue. I have connected SPI connections + two potentiometers and FreeRTOS. But I can't read the ADCs. I wonder why? I have created an array called <...
1
vote
1answer
524 views

STM32G474 signal generation with DMA + DAC using STM32CubeMX HAL

I am trying to generate a periodic signal with the DAC on the STM32G474 using DMA. There are tons of examples of this, and I´ve done the same in the past with an STM32L4 and F4 with no issues. However,...
1
vote
0answers
66 views

DMA SPI performance

I am currently writing an SD card driver for a Microcontroller using SPI and DMA. The SPI has a FIFO that can store 4 data values from the data register which has the capable of storing 32 bit. But it ...
1
vote
2answers
280 views

STM32F051 ADC DMA overrun

I am trying to use ADC with 2 channels and DMA, but I only get 1 reading before the overrun bit gets set. Also the 1 reading is wrong, I am expecting a value of approx 2100, but I am getting around 70....
0
votes
1answer
348 views

DMA Continuous Request functionality

What is the difference between these features on STM32G0 "Scan Conversion mode" and "Continuous conversion mode" and "DMA continuous request" features? When you go on CubeIDE you will see these ...
0
votes
1answer
79 views

1V on ADC pin with DMA continuous requests

I have a STM32G071 Nucleo Board and also the IC itself. In CubeIDE, I set a pin as ADC and activate DMA and enable the DMA continuous request in the ADC settings. After executing the code and ...
0
votes
2answers
118 views

UART Reception + DMA

When I am learning about DMA, I came to know that it can be implemented in UART peripheral operations too. Till now, I have used UART peripheral for simple communication operations. Sometimes I use it ...
0
votes
1answer
26 views

Decoupling setting of specific bits (transfer mode, stream, channel) from the generic DMA_Init() function

So with regards to DMA drivers, what's the approach for configuring certain bits generic inside a function which could be reused for both TX and RX calls which would require different stream parameter ...
1
vote
0answers
49 views

9*Help debug DMA TX bytes to UART

So I'm writing drivers for DMA for transmission for now and running into a few issues. So I am transferring bytes from memory to UART peripheral with a threshold of ...
0
votes
1answer
578 views

STM32 Spi receive problem

I'm trying to do simple SPI communication on STM32 Discovery, HAL lib is used. I'm trying to send some data via SPI1 and to receive same data on SPI3 (SPI1 = Full Duplex Master, SPI3 = Full Duplex ...
0
votes
1answer
74 views

How to access the other half of the DMA?

I am just trying to access the second half of the DMA. I have the half complete flag enable and working, however I am not entirely sure how to access the second half of the buffer. What I thought ...
0
votes
1answer
41 views

UART DMA RX buffer queue are being shifted on every power on- off

There is a communication between TFT NX8048p070-011r and my STM3F4 over UART. TFT sends 8byte data continuously and MCU receives by using circular DMA. I apply a parser to those data in Txclptcallback....
1
vote
2answers
175 views

Single Channel ADC with DMA giving garbage results on STM32F7

I'm looking to implement ADC and DMA with HAL on a F767. I want the ADC to be always converting and storing to memory via DMA until it reaches the buffer limit of 320 and then I want to go to a ...
0
votes
0answers
72 views

STM32 DMA BUFFER USAGE

I am using DMA for ADC and UART on my project and ADC has higher priority than USART. The ADC handles joystick and the UART handles keyboard. The ADC has 2 byte buffer and the USART has one byte ...
0
votes
0answers
258 views

AXI STREAM FIFO VHDL Implementation

Is this a right implementation of an axi stream fifo? ...
0
votes
0answers
64 views

Capture GPIO pin values with STMA32 and DMA

I am trying to capture all GPIO_C port pin values at a time when PA0 pin goes low. I am using STM32F091RC micro-controller. But I cant figure out why ...
0
votes
0answers
25 views

ADC / DMA only triggers once before setting OVR high STM32F446

I am trying to poll a block of sensors and load the data into an array via the DMA but the ADC polls only the first pin and then stops polling and sets the overrun flag high. I have implemented all ...
2
votes
0answers
45 views

How do CPU, IOMMU and DMA controller interact with each other?

While drawing an interaction diagram involving CPU, IOMMU and DMA controller, I failed to find any authentic document showing how they interact with each other. Is the DMA controller physically a ...
0
votes
0answers
254 views

STM32 ADC over DMA Continuous Mode Too Greedy

I am trying to read ADC data via DMA on an STM32F412. The reading itself works fine but the rest of the program is not executed anymore so it's killed by the watchdog soon. I have an array of size 50 ...
0
votes
1answer
302 views

stm32f1xx how to use DMA to write to TIMx CCR

I am trying to control WS2812b digital LEDs with stm32f103. I have a buffer of color values for the LED strip and to transfer them I need to write the next value to the timer's CCR every time the ...