UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 52397

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

Description

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).

Solution

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: http://wiki.xilinx.com/zynq-linux-pl330-dma

Linked Answer Records

Master Answer Records

Answer Number Answer Title Version Found Version Resolved
52599 Zynq-7000 AP SoC - Operating Systems Development N/A N/A
AR# 52397
Date Created 11/19/2012
Last Updated 02/20/2013
Status Active
Type General Article
Devices
  • Zynq-7000