Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

How RDMA map remote memory into local virtual memory?

I am new to RDMA and have just started looking into OPENSHMEM and UCP. I saw that both of them allow mapping remote memory region into local virtual memory space and access it using regular load and ...
zhongyuan chen's user avatar
-1 votes
0 answers
22 views

Uart Dma using TMS570LS1224 Development Board [closed]

can anyone help me with this task I am using tms570ls1224 development board Configure a DMA (Direct Memory Access) controller to autonomously transfer an array of 8-bit characters (chars) from the ...
Aditya Gupta's user avatar
0 votes
1 answer
16 views

When using RDMA to access memory on another machine, does it incur memory bandwidth overhead on both side?

Assuming that Machine-1 accesses data in the memory of Machine-2 via RDMA, will this action incur memory bandwidth overhead on both Machine-1 and Machine-2? If a regular network card is used for data ...
Frontier_Setter's user avatar
0 votes
0 answers
12 views

Circular buffer update using DMA with SPI in SAM21DA1

The DMA controller rewrittes the first position of the buffer which holds the values of the first transfer with the values of the second transfer. After that it starts to work correctly. Also the ...
Pablo Vicedo's user avatar
0 votes
0 answers
25 views

RP2040 Pico Micropython DMA keeps hanging up after 500 bytes of data write to a WAV file on an SD Card

I have an RP2040 Pico connected to an electret mic connected to an 12-bit ADC pin on the Pico. There's also an SD Card reader connected to the SPI0 on the Pico. I use a momentary switch to trigger ...
Patratacus's user avatar
  • 1,761
1 vote
1 answer
68 views

DMA to GPIO control using timer is not working

I want to control GPIO output using DMA and Timer. The target is generating a CLK signal of 1MHz and control PB0 synchronized with the CLK. I am using Nucleo-F411RE as the development board. I have ...
BeamString's user avatar
0 votes
0 answers
23 views

Linux DMA on ZYNQ

I have a linux driver that manages a Xilinx MCDMA IP. The MCDMA is configured to have 8 S2MM channels, basically allowing some custom data aquisition IP to write to the DMA. I also have written a ...
Vladouch's user avatar
  • 287
0 votes
0 answers
35 views

PL330 DMA mem to mem transfer test failed

When I use Arm's DMA pl330 controller,I found a problem. When I test mem to mem transfer configured the incrementing of the source address and the incrementing of the destination address,it will ...
ByteSpark's user avatar
0 votes
0 answers
24 views

Is system call always involved in issuing a RDMA operation?

I read the following from ibverbs' website: "InfiniBand host channel adapters (HCAs) and iWARP NICs commonly support direct hardware access from userspace (kernel bypass), and libibverbs supports ...
zhongyuan chen's user avatar
0 votes
1 answer
28 views

How does dpdk handle memory coherent in user space?

The DPDK will put received data into userspace buffers using DMA, so what's the DMA mapping used by DPDK? Is it coherent map or streaming map? To my understanding, if use coherent map, then the read ...
Myrfy's user avatar
  • 625
0 votes
0 answers
27 views

Issue FPGA XDMA: Low perfomance numbers on Gen3x16

Friends, I am measuring the performance of XDMA on the Z19-P board, PCIe Gen4x16 (the IP core only supports Gen3x16) - and I can't reach the theoretical speed of at least 12 GB/s, but i get only 5-6 ...
DimanYLT's user avatar
0 votes
0 answers
24 views

OV5640 B-CAMS-OMV Interface with STM32H743ZI

Development Board : STM32H743ZI - Nucleo Board Camera module adapter : B-CAMS-OMV(MB1683-CAMS-A02) Camera module : OV5640(MB1379-2V8-A06) Interface protocol: DCMI Reference file : https://github.com/...
Devjeet Mandal's user avatar
0 votes
0 answers
46 views

While running a piece of driver code on an AMD64 machine, it appears that there are issues related to cache consistency or out-of-order execution

While running a piece of driver code on an AMD64 machine, it appears that there are issues related to cache consistency or out-of-order execution. Are there any experienced engineers who can help ...
HnlyWk's user avatar
  • 23
2 votes
0 answers
65 views

Properly allocating a memory region and accessing the underlying hardware addresses

I am trying to interact with an IP hardware design, that is flashed on an FPGA matrix, from a Linux program. The communication takes place over the AXI bus. Character devices receive commands from ...
rickastley's user avatar
1 vote
2 answers
74 views

STM32F446 SPI DMA

I am using SPI1 DMA for sending data from STM32F446RET6 to Nokia5110 LCD. But it doesn't work. When I try without DMA, it works. Is my program wrong? Full program can be downloaded via the following ...
May Myat Thuzar's user avatar
5 votes
2 answers
164 views

Confused about casting and order of operations

This is a very specific problem and I haven't heard back from the author, so I thought I would throw this out and see if my sanity is intact or not. This is in regard to this video regarding DMA on a ...
robert bristow-johnson's user avatar
1 vote
0 answers
70 views

HAL_UART_Transmit_DMA does not send data to serial port

I'm writing an MIDI application on STM32 (NUCLEO-F091RC). I basically have an implementation of midimerger: a program which receives from three different MIDI instruments and merge them into one ...
NFs231dd's user avatar
0 votes
0 answers
37 views

Data Missing in FIFO stream after DMA transfer

We have a DMA design with FIFO stream input. We let FIFO accumulate the entirety of data stream i.e., 0x8001 depth and width is 32 bit. Then we cut off the Input stream to FIFO since it is external. ...
Sujan SM's user avatar
0 votes
1 answer
138 views

DMA Read is working but DMA write is failing

We are developing a Linux host PCIe driver for an external PCIe card(device) to perform DMA operations. DMA controller is present on the PCIe board. We need to pass the DMA address to the board via ...
Akash Chandra 's user avatar
2 votes
1 answer
67 views

How OpenCL set up the memory buffer between the Integrated dev and CPU cores?

The external device usually has their own separate memory, which requires the DMA memory region between the device and CPU to copy data from/to system DRAM to devices's internal DRAM. Therefore, I ...
ruach's user avatar
  • 1,469
1 vote
1 answer
79 views

SAI1 DMA Callback Issue STM32H723

I'm currently working on a project using the STM32H723VE microcontroller and have run into a problem with the SAI1 peripherals. So far SAI4 in slave transmit mode and I2S1 in slave receive mode are ...
Semmelrinde's user avatar
1 vote
0 answers
29 views

linux : Cache coherency after DMA

In a linux kernel driver, before initiating DMA from device to RAM I'm calling: DmaHandle = dma_map_single (sDevice, VirtualAddress + Offset, Size, DMA_FROM_DEVICE); dma_sync_single_for_device (...
Zvi Vered's user avatar
  • 601
0 votes
0 answers
34 views

DMA I2C does not work well in stm32f10x.h

main.h #include <stm32f10x.h> static volatile u8 i2c_1_rx_data = 0; static volatile u8 i2c_1_tx_data = 0; static void i2c_1_init(void){ RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE); ...
Tomertom's user avatar
0 votes
0 answers
18 views

i2c dma receive freezes code if called twice

The following is a low level code in mdk arm for stm32f1xx to receive data from the adxl thru i2c dma.. see in int main, how i commented the i2c read the second time.... The code works ... as soon as ...
Ali Athar's user avatar
0 votes
3 answers
236 views

Generating waveform using STM32 timer compare - STM32F3Discovery

I am attempting to generate a waveform with a period of 33ms. In-between each period, I need to toggle the timer output 5 times with a varying timescale. My initial thought is to do this using a timer ...
importdow's user avatar
0 votes
0 answers
33 views

Is it possible to have the PCIE DMA to 2 different memory addresses for the same call?

Like the question asks, I am tasked to find a way to have the data coming off the PCIE bus into 2 memory regions. Normally I would just do a memcpy, but I was instructed this is not possible. I don't ...
teslik's user avatar
  • 21
1 vote
0 answers
77 views

Trying to capture 8080 Bus using STM32 Approach

Following with that great answer Reverse engineer LCD Protocol used in MPC2000XL I'm trying to capture the data using stm32, it appears that I need to use DMA with Parallel Input. I have setup Timer2 ...
Andre Ahmed's user avatar
  • 1,899
2 votes
1 answer
207 views

Using SPI with CRC and DMA on a STM32F407 what signals the end of CRC transfer?

I have 2 STM32F407 processors talking via SPI. The slave monitors many inputs, when something of interest happens it interrupts the master which starts the SPI transfer. This process is register ...
user1771706's user avatar
0 votes
0 answers
148 views

STM32H7 CortexM4 USART DMA issue

I'm trying to use USART + RTS only + DMA(non circular, peripheral to memory, DMA1 Stram0) on STM32H755ZIT6's M4 processor. My code is working on M7 but it does not works on M4 and I'm getting Framing ...
user3473485's user avatar
0 votes
0 answers
35 views

Receive any length of data from USART2 DMA, then transmit the identical data via USART1 DMA

I would like to receive any length of data from USART2 DMA circular mode, then transmit the identical data via USART1 DMA normal mode. However, I found that there is a probability that even USART2 ...
Steven Wang's user avatar
0 votes
1 answer
225 views

Orchestration of DMA transfer to PWM peripheral on STM32

I have a STM32F411 board and want to output a PWM signal using timers/PWM/DMA: once every 2 ms a, 16 pulses are sent, each representing one bit. Each pulse has a period of ~3 microseconds with varying ...
Martin Fritz's user avatar
0 votes
1 answer
238 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
238 views

A breakpoint instruction (__debugbreak() statement or a similar call) was executed in p.exe

Main issue When i used void function instead of jagged it did'nt threw an exception. how should i release memory in destructor? Thanks! Explaination It seems that my program is encountering a ...
Fatima sami's user avatar
0 votes
1 answer
99 views

How to use DMAMUX generated events to trigger another DMA request?

I want to send data to UART using DMA. Every 3 transfers I want to generate another DMA request (without using core) to transfer data from the timer CNT register to memory. The documentation of the ...
gulpr's user avatar
  • 4,543
0 votes
0 answers
27 views

How to use DMA memory to memory in stm32h723zgt6?

How to use DMA memory to memory in stm32H723zgt6, the following code doesn't work properly, how can I modify it? My version of the HAL library is v1.9.0: int dma1_sm1_test(dmaSMStruct *dmaSM) { ...
Zhi Yuan's user avatar
1 vote
0 answers
273 views

Cache issue when creating shared memory between kernel space and user space

I am writing a kernel module on NVIDIA's Jetson AGX Xavier (ARM architecture). I am creating a shared memory between kernel space and user space in the following way: Allocate memory in kernel space ...
Sana Ur Rehman's user avatar
1 vote
0 answers
256 views

DMA buf import into Vulkan

I am trying to import a DMA buffer I created with the DMA-buf heaps protocol into Vulkan. The DMA-buf is located in /cma-uncached memory. The chip is an i.MX8M Plus. I can mmap() the DMA-buf and it ...
AB2's user avatar
  • 11
0 votes
0 answers
90 views

stm32 cubeIDE DMA DAC noise on DAC output

Im running a stm32 L432KC nucleo with the following settings. clk = 80 Mhz Spi to to sd card module Prescaler 2 Counter period 1813 buffer size 500 Half buffering to play .wav music file at a freq of ...
Asse's user avatar
  • 1
0 votes
0 answers
42 views

STM32F4 Serial Port Forwarding Architecture

System Architecture Diagram Data Flow Diagram The system consists of three modules: a 4G module, a GNSS module, and an STM32 processor, with the modules connected to the STM32 via UART. In terms of ...
Wiston's user avatar
  • 3
1 vote
1 answer
740 views

STM32 ADC: Continuous conversion (DMA) vs. discontinuous conversion accuracy

I am writing code for a STM32G030 microcontroller. I'd like to use the ADC on one input channel. I observe, that the accuracy of ADC conversion results is way better in discontinuous conversion mode (=...
17tmh's user avatar
  • 63
1 vote
0 answers
295 views

AMD IOMMU IO_PAGE_FAULT

I have implemented the Linux kernel driver for the device connected into PCIe. My host is AMD CPU, 6.2.0-39-generic kernel and IOMMU enabled in bios. The dma controller in the device has the scatter ...
gyuyoun's user avatar
  • 11
0 votes
2 answers
118 views

T-Display-S3-long FreeRTOS Memory allocation fails while there is heap space available

I am trying to program for the T-Display-S3-long, I have downloaded the AXS15231B.cpp library and tested the basic program where it displays 3 statically allocated images. My goal is to have an RTOS ...
chrisake's user avatar
1 vote
0 answers
56 views

Arduino Pro Portenta H7 I2S and DMA

I want to use Arduino Pro Portenta H7 to play music with an MAX98357A At now only hi2s2 without DMA work fine (blocking mode). When I want to use DMA to transfer data asynchronously is not worked. ...
Electron's user avatar
2 votes
0 answers
151 views

Why don't we use DMA in userland for RAM-to-RAM copies?

I know that modern CPUs use DMA (through PCIe, and maybe other buses ?) to transfer data from RAM to devices, and when such command is emitted the memory (or I/O) controller handles it and the CPU is ...
endyx's user avatar
  • 59
0 votes
1 answer
522 views

Difference Between Interrupt Drive vs DMA for STM32 I2C

I looked around the internet but still don't clearly understand the difference between interrupt driven and DMA method when it comes to I2C communication. I am using a Nucleo-L476RG board from STM (...
user3746381's user avatar
1 vote
0 answers
100 views

Stm32H747 DCMI DMA overflow interrupt

I was trying to replicate the stm32h747 Disco DCMI_Snapshot example. The code goes into overflow interrupt management. Debug findings: During debug the value of isr_value was found to be 25 but when ...
Stack_k's user avatar
  • 11
0 votes
1 answer
264 views

how transfer from memory to device with dma in linux

i found this code from internet for dma transfering from memory to memory this code work fine #include <linux/module.h> #include <linux/init.h> #include <linux/completion.h> #include ...
pirozy's user avatar
  • 1
1 vote
1 answer
568 views

dma_set_mask_and_coherent() with 24-bit DMA mask for PCIe on arm64

I am writing a PCIe driver and have trouble with setting the DMA mask. The host is a zcu102 with a Quadcore ARM-Cortex A53. The PCIe device is a custom Device. The kernel is v5.15.0-1023-xilinx-zynqmp ...
GuentherMeyer's user avatar
0 votes
0 answers
36 views

infineon TC1796 DMA access

I'm already using DMA+SSC in one of the projects I'm working on, but I'm having trouble using the same configuration in another project. The problem is that in the second project I get DMA errors ...
Peter Kostadinov's user avatar
0 votes
0 answers
188 views

Linux NIC packet processing inside kernel space

From this question I understood that it is in charge of Linux NIC's driver code (loaded in kernel space) to allocate at its initialization both RX/TX ring descriptors plus data buffers as well. NIC's ...
Carlo C's user avatar
  • 169

1
2 3 4 5
18