... | ... | @@ -66,7 +66,8 @@ |
|
|
- Extract it from the archive
|
|
|
- Enter the folder in a linux console
|
|
|
- Run 'make'
|
|
|
- You should now have a 'blink.elf' file suitable for the LM32
|
|
|
- You should now have a 'blink.elf' file suitable for the LM32 over
|
|
|
JTAG
|
|
|
|
|
|
## Load the blink demo
|
|
|
|
... | ... | @@ -101,7 +102,16 @@ |
|
|
- As root run "make install"
|
|
|
- Confirm the Wishbone bus is available "eb-ls dev/pcie\_wb0"; you
|
|
|
should see three devices
|
|
|
- Play with the LEDs "rite dev/pcie\_wb0 0x100400/4 0xff"
|
|
|
- Play with the LEDs "eb-write dev/pcie\_wb0 0x100400/4 0xff"
|
|
|
|
|
|
## Program the LM32 over the PCIe bus
|
|
|
|
|
|
- Raise the LM32 reset line (to stop it running / clear I-cache):
|
|
|
"eb-write dev/pcie\_wb0 0x100404/4 0x1"
|
|
|
- Program the LM32 using the blink 'bin' file: "eb-load dev/pcie\_wb0
|
|
|
0 blink.bin"
|
|
|
- Release the CPU from reset: "eb-write dev/pcie\_wb0 0x100404/4 0x0"
|
|
|
- The LEDs should now be rotating
|
|
|
|
|
|
|
|
|
|
... | ... | |