Forum Discussion
Altera_Forum
Honored Contributor
9 years agoCheck FPGA / bridges before accessing them
I want to access the switches on the tersIC DE0-Naoo-SoC board from Linux. I load the appropriate FPGA and access the LW bridge (with a c program). Everything works fine. But if, due to eg. mis...
Altera_Forum
Honored Contributor
9 years ago --- Quote Start --- Hi sunshine, the bridges are enabled: root@jwde0soc:~# cat /sys/class/fpga-bridge/lwhps2fpga/enable 1 root@jwde0soc:~# cat /sys/class/fpga-bridge/hps2fpga/enable 1 root@jwde0soc:~# cat /sys/class/fpga-bridge/fpga2hps/enable 1 Still the program hangs when reading from an lwhps2fpga-Address (mapped with /dev/mem). Joachim --- Quote End --- Looks like checking the bridge status may not be a viable option... since the hang happen if the FPGA is misconfigured, perhaps another way is to use the HPS FPGA manager to ensure that the configuration is executed successfully?