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
1
vote
1answer
66 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 ...
2
votes
1answer
93 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 ...
3
votes
1answer
70 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 ...
0
votes
0answers
33 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 ...
1
vote
1answer
196 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 ...
0
votes
2answers
58 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) ...
0
votes
0answers
58 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 ...
0
votes
1answer
28 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 ...
2
votes
1answer
117 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 ...
1
vote
0answers
40 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....
1
vote
1answer
130 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 ...
2
votes
1answer
116 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 ...
0
votes
0answers
41 views

Uart Detect Transmit Completed

I am using UART with DMA normal mode on stm32f4xx. I was trying to use HAL_I2C_MasterTxCpltCallback while when I tx completed, but as I reading on the web about the Normal mode, this callback does not ...
0
votes
0answers
50 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 ...
0
votes
1answer
64 views

HAL_I2C_Master_Transmit_DMA return HAL_ERROR

These my I2C init functions in stm32f4_hal_msp.c file ...
1
vote
0answers
75 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 ...
0
votes
0answers
47 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 ...
0
votes
0answers
42 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: ...
0
votes
1answer
39 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 ...
1
vote
1answer
216 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: ...
-1
votes
2answers
113 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 ...
0
votes
3answers
367 views

IDLE flag problem with uart?

...
0
votes
0answers
68 views

DMA Stop Function and CNDTR register Reset

I need to receive unknown length of the data with UART. So I am trying to do, Receive UART data with DMA operation. Firstly, I am checking the UART line, If the Line is Idle, I detected with line ...
0
votes
0answers
73 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, ...
1
vote
2answers
344 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); ...
0
votes
0answers
23 views

Difference between axi dma sg mode and cyclic sg mode

What is the difference between axi dma sg mode and cyclic sg mode? Does it mean that the allocated rx buffer is reused like fifo when the whole buffer is used up? xaxidma_example_sgcyclic_intr.c ...
0
votes
0answers
47 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 ...
0
votes
1answer
83 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 ...
0
votes
0answers
166 views

DMA multiplexing on an STM32H7

Goal On my current project I have connected a multiplexer (4051) on 8 adcs that I read from a single pin on my stm32h7. I would like to sequentially change the three gpio's connected to the mux ...
1
vote
2answers
529 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 ...
1
vote
0answers
43 views

Is there a protocol like SPI that supports multiple MISO and MOSI channels?

I need to implement a driver that uses clock-data protocol within the data link layer. It's just like SPI but with multiple MOSI and MISO channels. Is there any pre-defined protocol like that? (DMA ...
0
votes
0answers
58 views

STM32 in emmc-slave role. DMA transfer by both edges of external clock

I want to implement emmc protocol in a device role with STM32 (for now I've had ST-Nucleo-F767ZI and ST-Nucleo-F429ZI dev boards). Idea is to have a bridge to real emmc with STM32 as an adapter. STM32 ...
0
votes
0answers
17 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
108 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
52 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
88 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
72 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
242 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
25 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
31 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
61 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
67 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
2k 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
44 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
1answer
96 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
130 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
300 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
681 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
199 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
88 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'...

1
2 3 4 5