X-Git-Url: https://rtime.felk.cvut.cz/gitweb/fpga/lx-cpu1/lx-rocon.git/blobdiff_plain/48904b210d09623c385d7a8da08006a236d4884d..HEAD:/Makefile diff --git a/Makefile b/Makefile index 2ca983d..a93d897 100644 --- a/Makefile +++ b/Makefile @@ -66,6 +66,21 @@ install-fpga: $(BUILDDIR)/usb_sendhex $(BUILDDIR)/lx-rocon.pkg usb_sendhex -w -d $(USB_APP_VID_PID) -t 1 -s 0xA1C00000 -f binary $(BUILDDIR)/lx-rocon.pkg usb_sendhex -d $(USB_APP_VID_PID) -c 0xF000 +.PHONY: install-tumbl +install-tumbl: $(BUILDDIR)/usb_sendhex $(BUILDDIR)/imem.bin $(BUILDDIR)/dmem.bin + usb_sendhex -d $(USB_APP_VID_PID) -c 0xF100 -a 0x0001 + usb_sendhex -w -d $(USB_APP_VID_PID) -t 3 -s 0x00000000 -f binary $(BUILDDIR)/imem.bin + usb_sendhex -w -d $(USB_APP_VID_PID) -t 3 -s 0x00001000 -f binary $(BUILDDIR)/dmem.bin + usb_sendhex -d $(USB_APP_VID_PID) -c 0xF100 -a 0x0000 + +.PHONY: install-firmware +install-firmware: $(BUILDDIR)/usb_sendhex $(BUILDDIR)/fw_lxmaster.bin + usb_sendhex -w -d $(USB_APP_VID_PID) -t 1 -s 0xA1C00000 -f binary $(BUILDDIR)/fw_lxmaster.bin + usb_sendhex -d $(USB_APP_VID_PID) -c 0xF024 -a `stat -L -c %s $(BUILDDIR)/fw_lxmaster.bin` # Upload LX MASTER firmware + usb_sendhex -d $(USB_APP_VID_PID) -c 0xF011 -a 0 # Start IRC + usb_sendhex -d $(USB_APP_VID_PID) -c 0xF023 -a 0 # Setup LX Master + usb_sendhex -d $(USB_APP_VID_PID) -c 0xF021 -a 0 # Start LX Master + .PHONY: host host: make -C host V=1 @@ -77,6 +92,9 @@ host: hw: make -C hw cp -a hw/_build/lx-rocon.pkg $(BUILDDIR)/ + cp -a hw/_build/imem.bin $(BUILDDIR)/ + cp -a hw/_build/dmem.bin $(BUILDDIR)/ + cp -a firmware/lxmaster.bin $(BUILDDIR)/fw_lxmaster.bin .PHONY: clean clean: