Skip to content

Commit

Permalink
Merge pull request #42 from shenki/mimasv2-fixes
Browse files Browse the repository at this point in the history
Mimasv2 fixes
  • Loading branch information
mithro committed Feb 2, 2017
2 parents 19ba786 + 38b0ba3 commit e44a6b3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
3 changes: 1 addition & 2 deletions mkimage.py
@@ -1,5 +1,4 @@
#!/bin/bash

#!/usr/bin/env python3

import argparse

Expand Down
18 changes: 13 additions & 5 deletions targets/mimasv2/Makefile.mk
@@ -1,18 +1,26 @@
# mimasv2 loading

TARGET ?= base
# FIXME(mithro): Detect the real serial port/add see udev rules to HDMI2USB-mode-switch...
PORT ?= /dev/ttyACM0
BAUD ?= 19200

gateware-load-mimasv2:
python3 $$(which MimasV2Config.py) /dev/ttyACM0 $(TARGET_BUILD_DIR)/gateware/top.bin
@echo "MimasV2 doesn't support loading, use the flash target instead."
@echo "make gateware-flash-mimasv2"
@false

image-load-mimasv2:
gateware-flash-mimasv2:
python3 $$(which MimasV2Config.py) $(PORT) $(TARGET_BUILD_DIR)/gateware/top.bin

image-flash-mimasv2:
python mkimage.py
python3 $$(which MimasV2Config.py) /dev/ttyACM0 $(TARGET_BUILD_DIR)/flash.bin
python3 $$(which MimasV2Config.py) $(PORT) $(TARGET_BUILD_DIR)/flash.bin

firmware-load-mimasv2:
flterm --port=/dev/ttyACM0 --kernel=$(TARGET_BUILD_DIR)/software/firmware/firmware.bin --speed=19200
flterm --port=$(PORT) --kernel=$(TARGET_BUILD_DIR)/software/firmware/firmware.bin --speed=$(BAUD)

firmware-connect-mimasv2:
flterm --port=/dev/ttyACM0 --speed=19200
flterm --port=$(PORT) --speed=$(BAUD)

.PHONY: gateware-load-mimasv2 firmware-load-mimasv2

0 comments on commit e44a6b3

Please sign in to comment.