Hi, All, I am attempting to program a Lattice MachXO3 via FTDI-2232H and the device schematics is like below:
[cid:784e66b2-6f7f-434b-a836-bab5e4361b49] OS is Ubuntu 24.04.1 LTS and kernel is 6.8.0-101-generic. I build the latest openocd from git master: # ./openocd-code/src/openocd -v Open On-Chip Debugger 0.12.0+dev-01425-ge4c49d860 (2026-03-17-07:13) I can start the openocd with the cfg files from source code but there is an error: # ./openocd-code/src/openocd -f ./dlp-usb1232h.cfg -f ./lattice_machxo3.cfg Open On-Chip Debugger 0.12.0+dev-01425-ge4c49d860 (2026-03-17-07:13) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html WARNING! This file was not tested with real interface, it is based on schematics and code in ft2232.c. Please report your experience with this file to openocd-devel mailing list, so it could be marked as working or fixed. Warn : DEPRECATED: auto-selecting transport "jtag". Use 'transport select jtag' to suppress this message. Info : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections Info : clock speed 1000 kHz Info : JTAG tap: machxo3.tap tap/device found: 0xe12bc043 (mfg: 0x021 (Lattice Semi.), part: 0x12bc, ver: 0xe) Info : JTAG tap: auto0.tap tap/device found: 0xe12bc043 (mfg: 0x021 (Lattice Semi.), part: 0x12bc, ver: 0xe) Info : JTAG tap: auto1.tap tap/device found: 0x012e2043 (mfg: 0x021 (Lattice Semi.), part: 0x12e2, ver: 0x0) Warn : AUTO auto0.tap - use "jtag newtap auto0 tap -irlen 2 -expected-id 0xe12bc043" Warn : AUTO auto1.tap - use "jtag newtap auto1 tap -irlen 6 -expected-id 0x012e2043" Error: IR capture error at bit 16, saw 0x03ffffffffffffffffffffffffff050505 not 0x...3 Warn : Bypassing JTAG setup events due to errors Warn : gdb services need one or more targets defined Then programming with an SVF is failed: > svf cpld_ctrl_150_rev11.svf -quiet svf processing file: "cpld_ctrl_150_rev11.svf" tdo check error at line 81954 READ = 0x000000000000000000000000000000000 WANT = 0x3fffffffffffffffffffffffffffffffc MASK = 0x3fffffffffffffffffffffffffffffffc fail to run command at line 83342 tdo check error at line 81954 READ = 0x000000000000000000000000000000000 WANT = 0x3fffffffffffffffffffffffffffffffc MASK = 0x3fffffffffffffffffffffffffffffffc Time used: 2m19s125ms svf file programmed failed I have tried changing adapter speed from 50 to 6000 KHz, but it doesn't fix it. Any advice? Best Regards, Julian
lattice_machxo3.cfg
Description: lattice_machxo3.cfg
dlp-usb1232h.cfg
Description: dlp-usb1232h.cfg
