Commit Graph

5 Commits

Author SHA1 Message Date
Castor Gemini 6a23954f1f fix: Correct OpenOCD reset config to prevent libusb crash
- The root cause of the 'mpsse_flush' and libusb errors was an
  incorrect reset configuration.
- Use 'reset_config srst_only separate' to correctly inform OpenOCD
  that the JTAG (nTRST) and system (nSRST) resets are independent.
- This allows the 'init' command to reliably establish JTAG communication
  before a system reset is issued.
2025-08-21 02:34:09 -05:00
Castor Gemini dffde73965 fix: Revert to manual reset for OpenOCD 0.12.0 compatibility
- The 'srst_assert_width' flag is not supported in 0.12.0.
- Revert to using manual 'ftdi_set_signal' commands to pulse the
  nSRST line, which is the correct method for older OpenOCD versions.
- This should fix both the syntax error and the 'mpsse_flush' timeouts.
2025-08-21 02:31:35 -05:00
Castor Gemini 7ea9888a5d fix: Improve OpenOCD stability for P550 reboot
- Add explicit 'adapter speed' to fix low-speed warning.
- Separate nSRST and nTRST handling in 'reset_config' to prevent
  JTAG communication timeouts ('mpsse_flush' errors).
2025-08-21 02:29:13 -05:00
Castor Gemini 780d7851a7 fix: Make OpenOCD reboot script more robust
- Use 'reset halt' to reliably gain control of the target.
- Add explicit timings to the reset signal configuration to
  prevent timeouts and improve stability.
2025-08-21 02:28:09 -05:00
Castor Gemini 87325e74cf feat: Add OpenOCD script to reboot SiFive P550 board
This script uses the modern 'reset_config' command to reliably
trigger a hardware reset (nSRST) for the P550 board.
2025-08-21 02:25:03 -05:00