AR# 52397


Zynq-7000 SoC OS - Cannot access custom peripheral via Linux


I have a custom peripheral that works using standalone code, but when using the same function from Linux it does not work.

One symptom of failure is that the code issues a segmentation fault (segfault).


This is a Linux programming issue not specific to Zynq devices.

The solution is to use mmap (usually better suited for debugging) to access the memory region belonging to the peripheral, or to write the complete Linux device driver for the peripheral.

For the latter, an example exists for how to create a Linux device driver, based on the Zynq DMA and its device driver. It is available on the wiki:



Answer Number 问答标题 问题版本 已解决问题的版本
52599 Zynq-7000 SoC - Operating Systems Development N/A N/A
AR# 52397
日期 06/13/2018
状态 Active
Type 综合文章
People Also Viewed