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

Can not connect to target #110

Open
triballo opened this issue Dec 3, 2020 · 7 comments
Open

Can not connect to target #110

triballo opened this issue Dec 3, 2020 · 7 comments

Comments

@triballo
Copy link

triballo commented Dec 3, 2020

Hi,
I have a problem in my board mod, when I try to connect to the board ST-LINK tool it returns the error "Can not connect to target!".
As a programmer I am using a st-link v2 and the board is a new YST-DXT-J20 V 5.1.
I have checked the position of the PINs a thousand times, I have also tried both procedures both with 3.3v and without battery and without 3.3v but with battery. Some advice?
Please, I'm desperate

@ghost
Copy link

ghost commented Dec 12, 2020

hey @triballo !
I suppose you might have done these steps wrong while using the st link utility!
you need to perform erase chip after unlocking it and then select program and verify option

@bekirbostanci
Copy link

bekirbostanci commented Dec 13, 2020

If your board color is red dont try to work because I have that one. This brand of board is not detect.

@NickLD
Copy link

NickLD commented Dec 14, 2020

@triballo Are you holding the power button down the entire time? (or jumping the pins with a jumper)
That is required to keep the CPU alive for programming, as the way the power button works is it turns on the CPU, which then toggles a pin to keep itself on. When in programming mode, the code is of course not running, and cannot keep itself on.
Steps:

  1. Connect programmer (not VCC/3.3V though)
  2. Connect battery
  3. Press and release power button (board should beep)
  4. Press AND HOLD the power button now until firmware is finished flashing
  5. Init flash procedure with PlatformIO Upload, or via ST-Link Utility.

@triballo
Copy link
Author

@triballo Are you holding the power button down the entire time? (or jumping the pins with a jumper)
That is required to keep the CPU alive for programming, as the way the power button works is it turns on the CPU, which then toggles a pin to keep itself on. When in programming mode, the code is of course not running, and cannot keep itself on.
Steps:

  1. Connect programmer (not VCC/3.3V though)
  2. Connect battery
  3. Press and release power button (board should beep)
  4. Press AND HOLD the power button now until firmware is finished flashing
  5. Init flash procedure with PlatformIO Upload, or via ST-Link Utility.

I performed exactly the steps you indicated but nothing has changed, calculate that my board has no LEDs.

I connected the ST-Link v2 to the board (without vcc / 3v).
I powered the board with the battery
I pressed the power button until I heard a beep
After a few seconds I kept the power button with a jumper
started ST-link utility .... same problem

@triballo
Copy link
Author

If your board color is red dont try to work because I have that one. This brand of board is not detect.

No my board is black

@triballo
Copy link
Author

hey @triballo !
I suppose you might have done these steps wrong while using the st link utility!
you need to perform erase chip after unlocking it and then select program and verify option

In my case, I never managed to connect to the board, neither with ST-Link Utility, nor with openocd.

@chandru28k
Copy link

Any luck. I think I fried my board! I was able to connect and flash the image "controlsoftwareserial" , then I want to flash "control_uart2" but I could not connect to the board from STlink-v2 (firmware VJ37S7) i have to upgrade to this. any help how i can connect back to motherBoard. -thx

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

4 participants