From: Sebastien Bourdeauducq Date: Fri, 28 Feb 2014 17:40:49 +0000 (-0800) Subject: Add Python flasher X-Git-Tag: 24jan2021_ls180~2736 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3882a07ae589855553efc14a81403f2e78943d2e;p=litex.git Add Python flasher --- diff --git a/flash_extra.py b/flash_extra.py new file mode 100755 index 00000000..6acb6eca --- /dev/null +++ b/flash_extra.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python3 + +import sys, argparse +import programmer + +if __name__ == "__main__": + parser = argparse.ArgumentParser(description="Program extra data to flash memory.") + parser.add_argument("-f", "--flash-proxy-dir", default=None, help="set search directory for flash proxy bitstreams") + parser.add_argument("platform", help="target platform") + parser.add_argument("file", help="file to flash") + parser.add_argument("address", help="flash address to write") + args = parser.parse_args() + + prog = programmer.create_programmer(args.platform, args.flash_proxy_dir) + prog.flash(int(args.address, 0), args.file) diff --git a/software/videomixer/Makefile b/software/videomixer/Makefile index b5deb32f..59274485 100644 --- a/software/videomixer/Makefile +++ b/software/videomixer/Makefile @@ -70,7 +70,7 @@ load: videomixer.bin $(MSCDIR)/tools/flterm --port /dev/ttyUSB0 --kernel videomixer.bin flash: videomixer.fbi - m1nor-ng videomixer.fbi + $(MSCDIR)/flash_extra.py mixxeo videomixer.fbi 0x001a0000 clean: $(RM) $(OBJECTS) $(OBJECTS:.o=.d) videomixer.elf videomixer.bin videomixer.fbi