2025-11-14 9:18 PM - last edited on 2025-11-14 11:58 PM by Andrew Neil
Hello AutoDevKit Support Team,
I’m setting up an AEK-MCU-C4MINI1 board and I’m unable to get a working debug session through the board’s mini-USB (P2). I’ve read the user manual, followed the bring-up steps, and tried several configurations, but OpenOCD never manages to see the device over JTAG.
-s "C:\AutoDevKitStudio-2.6.1\openocd\scripts" -f board\spc58xc_dis.cfg -c "transport select jtag" -c "adapter speed 50" -c "reset_config srst_only srst_nogate connect_assert_srst"
Open On-Chip Debugger 0.12.0+dev-00318-g0e98d766eadapter srst pulse_width: 100adapter speed: 50 kHzInfo : Listening on port 3333 for gdb connectionsError: JTAG scan chain interrogation failed: all onesError: spc58xc.tap: IR capture error; saw 0x3f not 0x01Error: no IDCODE present on deviceWarn : target spc58xc.cpu examination failed...Error: Connect failed ... 'gdb' connection rejected
Power-cycle, different USB ports and data-rated cable; ensured no terminal has COM open.
Held RESET during attach; used very low adapter speeds (4000 → 250 → 100 → 50 kHz).
Tested both spc58xc_dis.cfg and spc58ec.cfg.
Driver mapping via Zadig:
Interface 0 → WinUSB (Microsoft) (also tried libusbK)
Interface 1 → USB Serial (CDC) (shows up as COMx)
Confirmed only the P2 USB is used (nothing on J3).
Attempted UDE briefly, but I don’t have a PLS UAD probe, so I returned to OpenOCD.
Official, board-specific debug recipe for AEK-MCU-C4MINI1 using the onboard USB:
Exact driver mapping per interface (which driver for Interface 0 and Interface 1, and expected USB VID:PID values).
The correct OpenOCD .cfg file for this board (board vs. target), and any required reset_config / JTAG options.
Any jumpers/straps or special sequence needed to enable JTAG/OnCE on this board (beyond S1 and RESET).
A known-good sample project + debug configuration (or a screenshot of the Debug Configuration “Debugger” tab) that you recommend.
Please confirm whether UDE is required for this board, or if the onboard USB path with OpenOCD is the supported method.
If possible, please assign an expert or provide a step-by-step guide (driver install, expected Device Manager entries, OpenOCD line, and how to verify the chain/IDCODE).
I’m happy to provide additional logs or run any diagnostic commands you suggest. I’ve read the user manual but I’m still blocked at the debug-attach step.
Thank you for your help—please let me know the correct setup and any board-specific requirements, or schedule a short session with an expert to get this unblocked.
2025-11-20 1:47 AM
all done as per the images! still problem persist.
i am sharing the images also if i do any mistake or need any corrections
i think there is some problem which can be seen in last image!
2025-11-20 2:00 AM
I have followed this doc, AEK-MCU-SPC5LNK_QSG_reduced.pdf
If there is anything that may help I like to try it, please share it
2025-11-20 6:03 AM - edited 2025-11-20 6:05 AM
By the console messages it seems that your FTDI drivers are corrupted.
You should:
1) Re-install the FTDI drivers
2) Check SPC5LNK/OpenOCD drivers using the manual procedure previously shared.
3) restart your pc
4) check that your USB cable is not broken
If after these four steps you cannot still flash your C4MINI, the only thing I can think of (assuming your MCU board is not broken) is that you may have activated another Windows application which is using the same serial port you are trying to use for flashing (causing congestion and data corruption).
Obviously, AutodevKit flashing procedure works only from Windows machines.
Any tentative from an emulated Windows OS won't work.
Best regards
Simone
2025-11-25 3:03 AM - edited 2025-11-25 8:57 PM
Thanks for the help!