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

描述

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

链接问答记录

主要问答记录

Answer Number 问答标题 问题版本 已解决问题的版本
52599 Zynq-7000 AP SoC - Operating Systems Development N/A N/A
AR# 52397
日期 02/20/2013
状态 Active
Type 综合文章
器件
  • Zynq-7000
的页面