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

pystlink says it can't connect to CPU #1

Open
gtalusan opened this issue Feb 20, 2016 · 0 comments
Open

pystlink says it can't connect to CPU #1

gtalusan opened this issue Feb 20, 2016 · 0 comments
Assignees
Labels

Comments

@gtalusan
Copy link

$ python3 pystlink.py --debug
Successfully connected to ST-Link/V2
  USB > f1 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  USB < 26 04 83 04 48 37
  USB > f5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  USB < 00 01
  USB > f3 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  USB > f7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  USB < f2 05 00 00 fe 07 00 00
  USB > f2 43 01 00 00 00 00 00 00 00 00 00 00 00 00 00
  USB < 80 00
  USB > f2 30 a3 00 00 00 00 00 00 00 00 00 00 00 00 00
  USB < 80 00
  USB > f2 22 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  USB < 77 14 a0 2b
DEVICE: ST-Link/V2 V2J24S4
SUPPLY: 3.23V
COREID: 2ba01477
  USB > f2 36 00 ed 00 e0 00 00 00 00 00 00 00 00 00 00
  USB < 14 00 00 00 00 00 00 00
*** Not connected to CPU ***
  USB > f5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  USB < 02 00
  USB > f2 21 00 00 00 00 00 00 00 00 00 00 00 00 00 00
DONE in 0.14s

But if I run OpenOCD first and then run pystlink.py, I get the following output:

$ python3 pystlink.py --debug
Successfully connected to ST-Link/V2
  USB > f1 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  USB < 26 04 83 04 48 37
  USB > f5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  USB < 02 00
  USB > f2 21 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  USB > f7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  USB < f2 05 00 00 fd 07 00 00
  USB > f2 43 01 00 00 00 00 00 00 00 00 00 00 00 00 00
  USB < 80 00
  USB > f2 30 a3 00 00 00 00 00 00 00 00 00 00 00 00 00
  USB < 80 00
  USB > f2 22 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  USB < 77 14 a0 2b
DEVICE: ST-Link/V2 V2J24S4
SUPPLY: 3.22V
COREID: 2ba01477
  USB > f2 36 00 ed 00 e0 00 00 00 00 00 00 00 00 00 00
  USB < 80 00 00 00 41 c2 0f 41
CPUID:  410fc241
CORE:   CortexM4
  USB > f2 36 00 20 04 e0 00 00 00 00 00 00 00 00 00 00
  USB < 80 00 00 00 31 64 00 10
IDCODE: 10006431
  USB > f2 36 20 7a ff 1f 00 00 00 00 00 00 00 00 00 00
  USB < 80 00 00 00 00 c0 00 02
MCU:    STM32F411xE
FLASH:  512KB
SRAM:   128KB
Stm32.core_nodebug()
  USB > f2 35 f0 ed 00 e0 00 00 5f a0 00 00 00 00 00 00
  USB < 80 00
  USB > f5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  USB < 02 00
  USB > f2 21 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  USB > f5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  USB < 01 00
DONE in 0.15s

I'm running OS X 10.11 with an eBay ST-Link v2 connected with a WiFiMCU/EMW3165.

@pavelrevak pavelrevak self-assigned this Feb 27, 2016
@pavelrevak pavelrevak added the bug label Feb 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants