Altera_Forum
Honored Contributor
9 years agoUser space application access to Hardware. HPS FPGA bridge
Dear all
I am a newbie on Altera SoC architecture, so I am trying to run a simple C Userspace application on an Arria 10 SoC (attached file custom_software.zip). The application tries to access a gpio controller (offset adress 0x0000_1000) controller via the hps_i_bridge_lw using a mmap function. When running using sudo, i got the following error message : root@linaro-nano:~/sandbox# sudo ./FPGAHPS [ 1749.499651] Unhandled fault: external abort on non-linefetch (0x818) at 0x760 [ 1749.507198] pgd = ecccc000 [ 1749.509891] [76c30000] *pgd=6df89831, *pte=ff201743, *ppte=ff201c33 The h2f_lw_axi_master seems to be present in the kernel and uboot devicetree. Also i tried to access the address 0xFF200000 (h2f_lw_axi_master) in the U-boot environment using md/mw commands and it makes U-boot to restart. http://www.alteraforum.com/forum/attachment.php?attachmentid=12403&stc=1 I must have done something wrong, any ideas ? Thanks in advance Mathieu