analogdevicesinc / VSCode-Maxim

VSCode project folders for the Analog Devices MSDK
https://github.com/Analog-Devices-MSDK/msdk
Other
24 stars 5 forks source link

Flashing error to MAX32760 EvKit_V1 #14

Closed tk2themax closed 2 years ago

tk2themax commented 2 years ago

Following the steps in UG to setup VSCode-Maxim yields error free build, yet flashing results in "Remote communication error. Target disconnected.: No error."

Full terminal response:

C:\MaximSDK\Tools\GNUTools\10.3\bin\arm-none-eabi-gdb.exe: warning: Couldn't determine a path for the index cache directory. The target architecture is set to "armv7e-m". Open On-Chip Debugger 0.11.0+dev-g2de3186d7 (2022-06-17-06:37) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Remote communication error. Target disconnected.: No error.

Jake-Carter commented 2 years ago

Hi @tk2themax

What OS are you using?

This error is the most generic message that OpenOCD will throw when the microcontroller is powered off, debugger port is disconnected, etc. The MAX32670EVKIT has an integrated debugger that should eliminate most of these issues as long as it's plugged in and accessible from the OS. Does a "DAPLINK" drive present itself when you plug the board in to your PC?

There should be a flash.log file in your project with some more detailed OpenOCD logging about the failure. Can you attach it to this ticket as well?

tk2themax commented 2 years ago

Hi

WIN10. Problem resolved - tried all this on another PC and it was same. So - thanks for your comments - this led to me to further question the HW itself and there was a switch that had been moved during tramsport. Schoolboy error.

Jake-Carter commented 2 years ago

No problem, glad to hear it's working now