Skip to content

How to fix error "Failed to dump SPI flash from device. Verify debug connection and try again." when using st-link v2. #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
yuqingcai opened this issue Apr 11, 2025 · 0 comments

Comments

@yuqingcai
Copy link

yuqingcai commented Apr 11, 2025

When you using openocd build by yourself, the error "Failed to dump SPI flash from device. Verify debug connection and try again." will occur when backup the SPI flash. The reason is "hla_swd" has been deprecated in current version OpenOCD ("dapdirect_swd" as a replacement for the "hla_swd") , it will failed if you try to connect to the device. Replace the "hla_swd" to "dapdirect_swd" in file "game-and-watch/openocd/interface_stlink.cfg" then everything works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant