Skip to content

Commit

Permalink
flash and debug ftdi works on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jr1221 committed Oct 14, 2024
1 parent e2af96b commit b23e493
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ftdi_flash.cfg
Original file line number Diff line number Diff line change
@@ -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
transport select jtag
4 changes: 4 additions & 0 deletions ner_environment/build_system/build_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down

0 comments on commit b23e493

Please sign in to comment.