Skip to content
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

MAX32660 EVSYS Board Can't Flash #1003

Open
yuval5295 opened this issue Apr 28, 2024 · 14 comments
Open

MAX32660 EVSYS Board Can't Flash #1003

yuval5295 opened this issue Apr 28, 2024 · 14 comments

Comments

@yuval5295
Copy link

yuval5295 commented Apr 28, 2024

Hey,

I was running Hello_World example on it But I can't flash my board, it is giving the error:
Remote communication error. Target disconnected.:

I am using VS (Eclipse made me too much troubles) and unfortunately I had never succeed to flash it.
I did all the instructions mentioned on issue #883 step by step - updated the adapter firmware and erase but still no success.

this is my details on DAPALINK:
Unique ID: 04211702bfb8038600000000000000000000000097969906
HIC ID: 97969906
Auto Reset: 0
Automation allowed: 1
Overflow detection: 0
Incompatible image detection: 0
Page erasing: 1
Daplink Mode: Interface
Interface Version: 0256
Git SHA: 34fe95d79afeba62ef097774ecc609ef8c2b74ea
Local Mods: 1
USB Interfaces: MSD, CDC, HID, WebUSB
Interface CRC: 0xd7617efe
Remount count: 0
URL: http://www.maximintegrated.com/max32660

this is what written on terminal:
image

looking forward for any help :)

@Jake-Carter
Copy link
Contributor

Hi @yuval5295, have you ever been able to program the board? Or this is the error you're seeing on a first-time attempt?

@yuval5295
Copy link
Author

yuval5295 commented Apr 29, 2024 via email

@Jake-Carter
Copy link
Contributor

Do you have a jumper installed on JP1 (labelled "Target VDD")?

You'll need to select either 3.3V or 1.8V. Either setting should work, but you'll need to select at least one to supply power to the MAX32660

@yuval5295
Copy link
Author

yuval5295 commented Apr 29, 2024 via email

@Jake-Carter
Copy link
Contributor

We re-tested with a board on our side and that latest PICO firmware you're using should work.

Can you run the following command from your VS Code terminal, and paste the output? It will print some additional debug info.

openocd -s $MAXIM_PATH/Tools/OpenOCD/scripts -f interface/cmsis-dap.cfg -f target/max32660.cfg -c "init;reset halt" -d3

The error you're getting is the generic error when there is a connection issue to the micro on the SWD port, the micro is powered off, the host PC can't find the debugger, etc.

@yuval5295
Copy link
Author

yuval5295 commented May 2, 2024 via email

@Jake-Carter
Copy link
Contributor

@yuval5295 looks like the image didn't make it to the ticket from the email. Can you paste in the terminal output, or attach the image to the ticket on Github?

@yuval5295
Copy link
Author

yuval5295 commented May 6, 2024 via email

@Jake-Carter
Copy link
Contributor

Sorry, still not showing:

image

Can you paste the actual terminal output? CTRL+SHIFT+C should let you copy from the VS Code terminal

@Jake-Carter
Copy link
Contributor

Alternatively you can run

openocd -s $MAXIM_PATH/Tools/OpenOCD/scripts -f interface/cmsis-dap.cfg -f target/max32660.cfg -c "init;reset halt" -d3 > openocd_log.txt 2>&1

and attach "openocd_log.txt"

@yuval5295
Copy link
Author

yuval5295 commented May 11, 2024 via email

@Jake-Carter
Copy link
Contributor

@yuval5295 are you on Windows? Sorry - I used the Linux syntax for environment variables. On Windows it should be:

openocd -s %MAXIM_PATH%/Tools/OpenOCD/scripts -f interface/cmsis-dap.cfg -f target/max32660.cfg -c "init;reset halt" -d3 > openocd_log.txt 2>&1

(%MAXIM_PATH% instead of $MAXIM_PATH)

@yuval5295
Copy link
Author

yuval5295 commented Jun 1, 2024 via email

@Jake-Carter
Copy link
Contributor

Hi @yuval5295,

That actually means that the command has successfully connected to the MAX32660. The OpenOCD server has launched and is waiting for a GDB client connection. Essentially it means that the debugger is working properly with the command.

This means that there could be some problem specific to the VS Code setup.

Have you set MAXIM_PATH correctly in your user settings.json file? See here

Please copy/paste the entire contents of your settings.json file here as well.

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

2 participants