chibi-studio throwing error while opening open-ocd Topic is solved

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

ep.hobbyiest
Posts: 94
Joined: Sun Jun 26, 2016 5:22 pm
Has thanked: 4 times
Been thanked: 1 time

chibi-studio throwing error while opening open-ocd

Post by ep.hobbyiest »

Hi,

I m using chibios rt and stm32f103 nucleo board.

From chibistudio i just build existing program, it is build successfully. But when i tried to load open-ocd, i got errors. I m not able to load the openocd properly. Open-ocd is 64 bit is there it seems.

i have attached screen shot for reference.

Image
Image
ep.hobbyiest
Posts: 94
Joined: Sun Jun 26, 2016 5:22 pm
Has thanked: 4 times
Been thanked: 1 time

Re: chibi-studio throwing error while opening open-ocd

Post by ep.hobbyiest »

Here are the things i tried.

I downloaded both openocd 0.8 as well as openocd 0.9.

openocd 8.0 didn't work, i guess. Bcoz console window was completely blank, we i ran that.

with Openocd 0.9, i got following logs,

Code: Select all

Open On-Chip Debugger 0.9.0 (2015-05-19-12:06)
Licensed under GNU GPL v2
For bug reports, read
   http://openocd.org/doc/doxygen/bugs.html
Warn : Interface already configured, ignoring
Error: already specified hl_layout stlink
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
none separate
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Error: open failed
in procedure 'init'
in procedure 'ocd_bouncer'


It is showing error at two places.
and when i tried to flash then got same error as "Execution is suspended because od error !!!"


I m using chibistudio 17.7 and RT-STM32F103RB-NUCLEO demo.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: chibi-studio throwing error while opening open-ocd

Post by Giovanni »

Are ST-Link drivers installed?

Giovanni
ep.hobbyiest
Posts: 94
Joined: Sun Jun 26, 2016 5:22 pm
Has thanked: 4 times
Been thanked: 1 time

Re: chibi-studio throwing error while opening open-ocd

Post by ep.hobbyiest »

Yes, I was using Nucleo board with Keil compiler before.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: chibi-studio throwing error while opening open-ocd

Post by Giovanni »

The first error is "normal", it is more a warning, the relevant part is that "open failed".

In next release I will make sure to include a 32bits version of OpenOCD but that is not your only problem.

Do you see ST-Link in the device manager? you should see it also as a virtual com port and a disk drive.

Giovanni
ep.hobbyiest
Posts: 94
Joined: Sun Jun 26, 2016 5:22 pm
Has thanked: 4 times
Been thanked: 1 time

Re: chibi-studio throwing error while opening open-ocd

Post by ep.hobbyiest »

Thanks for quick reply.

Yes, Board is getting detected.
COM_port is being detected as well as disk drive is also detecting.

is it work for 64-bit windows?
User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Has thanked: 83 times
Been thanked: 67 times

Re: chibi-studio throwing error while opening open-ocd

Post by RoccoMarco »

Hi,
what version of windows are you using? Any antiviruses? version of chibistudio?

RM

PS: I have tested latest version of OpenOCD (that included in ChibiStudio) under Windows 7 32-64, Windows 8 32-64, Windows 8.1 64 and Windows 10 64
ep.hobbyiest
Posts: 94
Joined: Sun Jun 26, 2016 5:22 pm
Has thanked: 4 times
Been thanked: 1 time

Re: chibi-studio throwing error while opening open-ocd

Post by ep.hobbyiest »

Following are the configuration i m using.

OS :Windows 7 ultimate 32-bit.
Chibistudio : ChibiStudio_Preview17
Demo : RT-STM32F103RB-NUCLEO
Antivirus : No
User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Has thanked: 83 times
Been thanked: 67 times

Re: chibi-studio throwing error while opening open-ocd

Post by RoccoMarco »

Let me do some tests. Maybe OpenOCD is incompatible with windows32. I will keep you up to date.
ep.hobbyiest
Posts: 94
Joined: Sun Jun 26, 2016 5:22 pm
Has thanked: 4 times
Been thanked: 1 time

Re: chibi-studio throwing error while opening open-ocd

Post by ep.hobbyiest »

Ok. Thanks.

u can tell me if anything i can try from my end.
Post Reply