Problems with ChibiStudio Preview 17 related to OpenOCD

Discussions and support about ChibiStudio, the free development environment for ARM.
User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Location: Munich (Germany)
Has thanked: 83 times
Been thanked: 67 times
Contact:

Problems with ChibiStudio Preview 17 related to OpenOCD

Postby RoccoMarco » Thu Jul 14, 2016 11:12 am

Dear all,
I have noticed that there were some problems related to OpenOCD included in the latest version of ChibiStudio.

The main problem was that OpenOCD didn't work on Windows 32bit since I compiled it using mingw64 instead of mingw32 (definitely my bad :mrgreen:). Additionally at that time new STM32F7 MCUses wasn't supported.

These issues are now resolved and you can patch your ChibiStudio deleting the folder OpenOCD under C:/ChibiStudio/tools and adding the new one attached to this thread. Most likely this new version of OpenOCD will be included in ChibiStudio Preview 18.

Let me know if someone is still experimenting any problem.
Ciao,
RM
Attachments
openocd.zip
(1.58 MiB) Downloaded 288 times

neums
Posts: 137
Joined: Fri May 08, 2015 1:09 pm
Location: Dresden, Germany
Has thanked: 10 times
Been thanked: 5 times

Re: Problems with ChibiStudio Preview 17 related to OpenOCD

Postby neums » Tue Aug 16, 2016 9:36 am

Hi,
i use the STm32F7 Discovery board with the STM32F769. The OpenOCD session starts correctly but when i try to start the debug session with gdb it fails.
The OpenOCD output is as follows:

Code: Select all

Open On-Chip Debugger 0.10.0-dev-00325-g12e4a2a (2016-07-14-11:32)
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: 2000 kHz
adapter_nsrst_delay: 100
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
Info : STLINK v2 JTAG v27 API v2 SWIM v15 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.213639
Info : stm32f7x.cpu: hardware has 8 breakpoints, 4 watchpoints
Info : accepting 'gdb' connection on tcp/3333
Info : device id = 0x10006451
Warn : Cannot identify target as a STM32 family.
Error: auto_probe failed
Error: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_map disable'.
Error: attempted 'gdb' connection rejected


The STM32F7 discovery with STM32F746 works correctly. What i am doing wrong?

Thanks a lot.

User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Location: Munich (Germany)
Has thanked: 83 times
Been thanked: 67 times
Contact:

Re: Problems with ChibiStudio Preview 17 related to OpenOCD

Postby RoccoMarco » Tue Aug 16, 2016 10:04 am

This because current version of open ocd doesn't support new STM32F7. I will keep you up to date.
Ciao,
RM

User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Location: Munich (Germany)
Has thanked: 83 times
Been thanked: 67 times
Contact:

Re: Problems with ChibiStudio Preview 17 related to OpenOCD

Postby RoccoMarco » Sat Sep 17, 2016 11:41 pm

Hey there,
I have just compiled again OpenOCD. The support for STM32F756 has been introduced. I have tested it on win7-64bit and win7-32bit succesfully.
I have successfully flashed the new STM32F7 discovery demo which is available on trunk.

This is the direct link for the download. I have uploaded it on playembedded:
http://www.playembedded.org/blog/wp-content/uploads/2016/07/openocd.zip
Ciao,
RM

User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Location: Munich (Germany)
Has thanked: 83 times
Been thanked: 67 times
Contact:

Re: Problems with ChibiStudio Preview 17 related to OpenOCD

Postby RoccoMarco » Sat Nov 19, 2016 12:26 am

Hi all,
I have compiled a new version of OpenOCD which supports STM32L432. I have tested it on win7-64bit and win7-32bit succesfully.
I have successfully flashed the new STM32 NUCLEO-L432 demo which will be available on trunk in the next hours.

This is the direct link for the download. I have uploaded it on playembedded:

You can download it now
http://www.playembedded.org/blog/wp-content/uploads/2016/11/openocd-20161119.zip
Ciao,
RM

User avatar
alex31
Posts: 374
Joined: Fri May 25, 2012 10:23 am
Location: toulouse, france
Has thanked: 38 times
Been thanked: 61 times
Contact:

Re: Problems with ChibiStudio Preview 17 related to OpenOCD

Postby alex31 » Sat Dec 24, 2016 11:27 am

Hello.

I have compiled a new version of OpenOCD which supports STM32L432.


I usually use black magic probe (which run the gdb server on the stm32F1 probe chip) for my F4 and F7 project.

I am now beginning to play with nucleo L432 where it's not possible to reflash the probe with black magic probe firmware,
so i have to use stlink-v2.1.

I am trying to debug my app using openocd under linux (without eclipse), without success (I use last openocd master from git, gdb from
launchpad 5.4.1 q3 2016)

openocd launch, gdb connect to it and i am able to load program, set breakpoint, bun when i run, openocd fail and gdb remains stuck.

The link you send in the previous post expands to a set of dll and exe for windows, did you apply any patch(s) to the openocd trunk ?, and if yes, can you send a pointer to the patch(s), so that i can apply them and build a linux version ?

Thanks
Alexandre

User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Location: Munich (Germany)
Has thanked: 83 times
Been thanked: 67 times
Contact:

Re: Problems with ChibiStudio Preview 17 related to OpenOCD

Postby RoccoMarco » Tue Jun 27, 2017 2:26 pm

Hi,
right now the head of OpenOCD should completely support STM32L432 ( I don't remember if at that time I had to apply some patches). I will do some tests with the fresh compiled version (which is that currently available with ChibiStudio Preview 18) this evening maybe.
Ciao,
RM


Return to “ChibiStudio”

Who is online

Users browsing this forum: No registered users and 10 guests