OpenOCD-Error: Embedded Coder Support Package for STMicroelectronics Discovery Boards
Afficher commentaires plus anciens
Hello,
currently I try to get an example of the " Embedded Coder Support Package for STMicroelectronics Discovery Boards" running in a STM32F429 Discovery Board.
I get the following Error:
The following error occurred during deployment to your hardware board:
Error while writing the executable to the STM32F4 flash. OpenOCD returned the following diagnostic message:
Error while trying to establish USB communication with the STM32F4-Discovery board. Please reset the USB communication:
1. Disconnect the USB cable from the board.
2. Wait for three seconds.
3. Connect the USB cable again.
For more information look into logfile generated by openOCD: mw_openocd_log.txt.
The Logfile says:
GNU MCU Eclipse 64-bits Open On-Chip Debugger 0.10.0+dev-00254-g2ec04e4e (2017-11-10-11:34)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 2000 kHz
adapter_nsrst_delay: 100
none separate
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : clock speed 1800 kHz
Error: open failed
in procedure 'program'
in procedure 'init' called at file "embedded:startup.tcl", line 495
in procedure 'ocd_bouncer'
** OpenOCD init failed **
shutdown command invoked
Does anyone has an idea how to solve it? Can anyone help in setting it up for a new ST-Discovery-Board?
Thanky you very much, Best Ragards, Sebastian
Réponses (2)
Sebastian Wendel
le 9 Juil 2019
Modifié(e) : Sebastian Wendel
le 6 Août 2019
0 votes
mahdi akbari
le 3 Août 2019
0 votes
hello i have same issue
and this solution dont work for me
4 commentaires
Saipraveen
le 6 Août 2019
Can you ellaborate your issue, Which board are you using ?
mahdi akbari
le 6 Août 2019
i was using stm32f411 discovery board and i started to programming <getting started> program that i get this error masage:
-------------------------------------------------------------------------------------------------------------------------------
Error while trying to establish USB communication with the STM32F4-Discovery board. Please reset the USB communication:
1. Disconnect the USB cable from the board.
2. Wait for three seconds.
3. Connect the USB cable again.
For more information look into logfile generated by openOCD: mw_openocd_log.txt.
------------------------------------------------------------------------------------------------------------------------
but furtunatly i correct it.
the problem was in my com port driver and stsw driver that i was install in package instalation procedure.
i use ST co. driver that is in below link and it works.
thanks for your follow up.
Sebastian Wendel
le 6 Août 2019
amr abdeltawab
le 6 Déc 2019
i understood the second solution very well but in step 4 i can't understand what of mean patch here and how form enviroment variable, i can generate patch and extract it in a folder i think this is something missing for me
Catégories
En savoir plus sur STMicroelectronics Discovery Boards dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!