OpenOCD-Error: Embedded Coder Support Package for STMicroelectronics Discovery Boards
显示 更早的评论
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
回答(2 个)
Sebastian Wendel
2019-7-9
编辑:Sebastian Wendel
2019-8-6
0 个投票
mahdi akbari
2019-8-3
0 个投票
hello i have same issue
and this solution dont work for me
4 个评论
Saipraveen
2019-8-6
Can you ellaborate your issue, Which board are you using ?
mahdi akbari
2019-8-6
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
2019-8-6
amr abdeltawab
2019-12-6
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
类别
在 帮助中心 和 File Exchange 中查找有关 STMicroelectronics Discovery Boards 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!