Skip to main content

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
0 answers
73 views
+50

STM32G4x 2 chanel Contunious Conversion Mode ADC DMA voltage read problem

I am using STM32G431KB Nucleo for measure a potentiometer voltage via ADC1_IN1 and ADC1_IN2 channels with Scan Mode DMA. And my samples arrays are always zero, no change. I share my code below. What ...
MSB's user avatar
  • 27
0 votes
1 answer
41 views

Problem with STM32MP1 SPI using DMA

When running some simple code to test the SPI communication using DMA, the program only works as expected after stopping and restarting the microcontroller. The first time it runs, instead of sending ...
Fábio Silva's user avatar
0 votes
0 answers
48 views

STM32H7 Baremetal UART DMA Rx not working - DMA tx works

I have a STM32H7 running UART. UART TX works fine, and it's definetely not a D-Cache problem, I already have configured the MPU correctly and in another project DMA works just fine with SPI with the ...
sx107's user avatar
  • 1,109
0 votes
0 answers
53 views

STM32 DMA timer triggered at specific period with external trigger

I'm trying to interface a CPU that has a parallel bus, and trying to connect it to STM32. The CPU bus is connected to PORTD, I mean by that CS1, CS2, A1, and it's data bus D0 to D7. The CPU has IOWR ...
Andre's user avatar
  • 67
0 votes
1 answer
41 views

STM32H7 JPEG encoding with DMA leaves empty space

I am encoding a 200x300 image using the JPEG codec available in the STM32H743. The input format is ARGB8888, with the input buffer having a size of 240000 bytes (200 x 300 x 4). As I do not know what ...
Meruje's user avatar
  • 103
0 votes
0 answers
27 views

N DMA Transfers based on a timer trigger using stm32F429I

I'm trying to use timer 8, stm32f429I, as advanced timer, to do N DMA transfers, that copies data from port D to memory and it does trigger on PC6 after triggering, an N DMA transfers should be shot I ...
Andre's user avatar
  • 67
0 votes
0 answers
77 views

STM32H7 CortexM4 DMA issue

I'm trying to use USART + RTS only + DMA(non circular, peripheral to memory, DMA1 Stram0) on STM32H755ZIT6's M4 processor. I and D caches are enabled. My code is working on M7 but it does not works ...
Alatriste's user avatar
  • 160
0 votes
0 answers
79 views

SPI communication, clock abnormal later than CS?

I use A40i and STM32 for SPI communication. A40i is an ARMv7 architecture processor, running on a Linux system in my environment. A40i is the SPI host and STM32 is the SPI slave. For the sake of ...
just a student's user avatar
0 votes
1 answer
89 views

STM32F103 UART DMA transmits corrupted data sometimes

I`m using STM32F103CBT6 core with UART via DMA on 9600 baud rate. The device in idle state transfers data between controller and bill validator unit. In the same time I`m sniffing the data that are ...
Nazar Diadiun's user avatar
0 votes
1 answer
32 views

STM32F103: Using DMA1 Channel 3 for SPI1_TX and USART3_RX same time

I'm currently working on a project using an STM32F103RET microcontroller. I need to use SPI1 to write log data to a flash chip at an rate of 64 bytes every 20 milliseconds, and use USART3 monitoring ...
cfrpg's user avatar
  • 3
0 votes
0 answers
72 views

Receive i2S data to RP2040, PIO and DMA from MEMS microphone (SPH0645LM4H-B)

It pretty much seem to work. I have in the PIO been able to generate the clock and word select and the microphone is sending data continuously which can be verified with a logic analyser. (maybe it ...
www.jensolsson.se's user avatar
0 votes
2 answers
55 views

STM32 ADC DMA low raw/Voltage readings

I am experiencing the following problem. When I setup an ADC with DMA for 5 channels, I get lower readings than the expected ones. We have PCBs of the same batch in 3 countries, but only the ones ...
K S's user avatar
  • 1
0 votes
0 answers
59 views

STM32F103 DMA only works in DEBUG Mode

I am new to SMT32 development and trying my hands on it. I am using Keil and trying to avoid any HAL driver to understand things better. I am trying to get working DMA to receive data from UART (...
Rakesh Mehta's user avatar
0 votes
0 answers
112 views

STM32 SPI DMA issue

I have two MCU, STM32H755ZIT6 as Master TRANSMIT ONLY and STM32F103C8T6 as Slave RECEIVE ONLY. The Master MCU is sending 18 bytes all the time via DMA and the Slave device is receiving it also with ...
Alatriste's user avatar
  • 160
1 vote
0 answers
381 views

STM32H7 UART DMA Issue

I have two MCUs, first one is STM32F070F6P6 which sends data over USART2 TX DMA and second one is STM32H755ZIT6 which receives data over USART2 RX DMA. Also notice that STM32F070F6P6's TX Pin ...
Alatriste's user avatar
  • 160
0 votes
1 answer
89 views

STM32H7 Baremetal I2S Circular DMA

I am trying to run an I2S ES8388 codec from a stm32h750. Without DMA, the codec is working just fine, and I can output and receive data to and from it respectively. But, I'm experiencing problems with ...
sx107's user avatar
  • 1,109
0 votes
1 answer
29 views

PL230 DMA & PL022 SPI transmit only 9 bytes

I am trying to implement SPI+DMA on W7500. The chip has a PL230 DMA and PL022 SPI (with 8 level FIFOs). First I just want to transmit N bytes using DMA basic mode. On the pins I only see 9 bytes (or ...
filo's user avatar
  • 9,046
3 votes
0 answers
267 views

STM32 ADC doesn't go faster than 10kHz

I'm struggling myself working on STM32F446RE (Nucleo-64). I'm using a Bare Metal approach, so no Cube MX generated code here :) . The microcontroller works at 16MHz, using the HSI internal clock. I ...
Dionisio Ciccarese's user avatar
3 votes
1 answer
185 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
  • 33
0 votes
1 answer
280 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,135
1 vote
1 answer
170 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
69 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
  • 91
0 votes
0 answers
90 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
493 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
218 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
269 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
  • 117
1 vote
0 answers
376 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
  • 533
0 votes
0 answers
105 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
  • 851
0 votes
0 answers
84 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
1k 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
211 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
203 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
593 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
208 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 ...
User051209's user avatar
1 vote
0 answers
1k 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
671 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
376 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
  • 43
0 votes
0 answers
95 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
  • 473
1 vote
1 answer
200 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
1k 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
2 votes
1 answer
1k 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
135 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
86 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
130 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
133 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
  • 167
0 votes
0 answers
437 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
3k 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
  • 83
4 votes
1 answer
511 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
1k 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,426
1 vote
1 answer
1k 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

1
2 3 4 5 6