On 6/12/2017 1:04 AM, Basti wrote:
> 
> 
> On the board is the Quartus-Project DE0_NANO_SOC_GHRD from the-snowwhite. The 
> header file hps0.h have I generate form this projekt. But every time I make 
> it 
> run I get this error.
> 
> 
> I use gdb to debug:
> 
> 
> Program received signal SIGBUS, Bus error.
> 
> 0x00008548 in main () at main.c:51
> 
> 51 *(uint32_t *)h2p_lw_led_addr = ~led_mask;

The FPGA based LED registers used in the example code are not present
in the precompiled hm2 based FPGA bit-files.  You will need to use an
FPGA design that has these GPIO registers in the FPGA fabric and make
sure the FPGA is programmed with that bit file.  The easiest way to do
this is probably to compile the FPGA design that should be part of the
same GHRD demo where you obtained the C code.

Once you have a bitfile, the FPGA can be programmed via u-boot, a
device-tree overlay file, or a JTAG download cable.  The Machinekit
image typically uses a device tree overlay, so if you're not manually
programming the FPGA it's probably not programmed.

If the FPGA is not programmed, or does not respond to the address
assigned to the LED registers, you will get a bus error.

-- 
Charles Steinkuehler
char...@steinkuehler.net

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to