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!

Showing results for 
Search instead for 
Did you mean: 
Visitor wave85
Registered: ‎05-25-2018

Access to DMAPL330 registers in linux environment

Hi all. 

I wrote a driver for the PL330 in the Zynq 7000 SoC. It works fine on bare metal. 

After installing embedded linux (i think petalinux or something like that) on the FPGA board, i wanted to run the same application on the board. It seems everything is behaving fine but the driver to pilot the PL330. 

In particular, i cannot access into the internal registers of the device. Since i execute a mmap of every physical address, i also execute it for the DMAPL330 registers addresses. Afterwards, whenever i try accessing into these addresses, the system crashes. This issue also happens if i'm just trying to write and read one of these registers, which never happened before while running the application on bare metal. 

Now, i'm not a linux driver expert so i don't know if there is some particular protocol to be followed in order to write a driver that is supposed to run on the kernel. 

Anybody knows what i should do to overcome this issue? Thanks a lot.

0 Kudos