From b23e49367b7c3e16641d5cbe638c724fb3d77d0c Mon Sep 17 00:00:00 2001 From: Jack Rubacha Date: Mon, 14 Oct 2024 19:42:05 -0400 Subject: [PATCH] flash and debug ftdi works on windows --- ftdi_flash.cfg | 12 ++++++------ ner_environment/build_system/build_system.py | 4 ++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ftdi_flash.cfg b/ftdi_flash.cfg index 1a43006..a80dc2b 100644 --- a/ftdi_flash.cfg +++ b/ftdi_flash.cfg @@ -1,16 +1,16 @@ adapter driver ftdi -ftdi vid_pid 0x0403 0x6010 +ftdi_vid_pid 0x0403 0x6010 # Initial state: Assuming 0x0008 doesn't interfere with your setup # and 0x000b sets the required initial states for your other signals. -ftdi layout_init 0x0008 0x000b +ftdi_layout_init 0x0008 0x000b -ftdi layout_signal LED_Tx -data 0x00F0 -oe 0x00F0 -ftdi layout_signal LED_Rx -data 0x00F0 -oe 0x00F0 +ftdi_layout_signal LED_Tx -data 0x00F0 -oe 0x00F0 +ftdi_layout_signal LED_Rx -data 0x00F0 -oe 0x00F0 # Configure GPIOL0 (ADBUS4) as nSRST, assuming active low reset # Setting `-data` for active low, `-oe` to enable output. # If tri-state isn't supported, this configures the pin as push-pull. -ftdi layout_signal nSRST -data 0x0010 -oe 0x0010 +ftdi_layout_signal nSRST -data 0x0010 -oe 0x0010 -transport select jtag \ No newline at end of file +transport select jtag diff --git a/ner_environment/build_system/build_system.py b/ner_environment/build_system/build_system.py index c74ab13..82483a0 100644 --- a/ner_environment/build_system/build_system.py +++ b/ner_environment/build_system/build_system.py @@ -113,6 +113,10 @@ def debug(args): def flash(args): command = [] + if args.docker and args.ftdi: + print("Cannot flash ftdi from docker") + sys.exit(1) + if args.docker: command = ["docker", "compose", "run", "--rm", "ner-gcc-arm"]