Electronics > Microcontrollers

OpenOCD with GD32

(1/2) > >>

simonlasnier:
Hi :)

I'm trying to use OpenOCD with a GD32E230, in Visual Studio Code.

This looks like exactly what I need: https://review.openocd.org/c/openocd/+/6543

But I cannot get it in any release downloads even the latest master branch build? https://github.com/openocd-org/openocd/releases/tag/latest

Thank you

RoGeorge:
It says you should look for a binary at the board seller first.


--- Code: ---==================
Installing OpenOCD
==================

A Note to OpenOCD Users
-----------------------

If you would rather be working "with" OpenOCD rather than "on" it, your
operating system or JTAG interface supplier may provide binaries for
you in a convenient-enough package.

Such packages may be more stable than git mainline, where
bleeding-edge development takes place. These "Packagers" produce
binary releases of OpenOCD after the developers produces new "release"
versions of the source code. Previous versions of OpenOCD cannot be
used to diagnose problems with the current release, so users are
encouraged to keep in contact with their distribution package
maintainers or interface vendors to ensure suitable upgrades appear
regularly.

Users of these binary versions of OpenOCD must contact their Packager to
ask for support or newer versions of the binaries; the OpenOCD
developers do not support packages directly.

A Note to OpenOCD Packagers
---------------------------

You are a PACKAGER of OpenOCD if you:

- Sell dongles and include pre-built binaries;
- Supply tools or IDEs (a development solution integrating OpenOCD);
- Build packages (e.g. RPM or DEB files for a GNU/Linux distribution).

As a PACKAGER, you will experience first reports of most issues.
When you fix those problems for your users, your solution may help
prevent hundreds (if not thousands) of other questions from other users.

If something does not work for you, please work to inform the OpenOCD
developers know how to improve the system or documentation to avoid
future problems, and follow-up to help us ensure the issue will be fully
resolved in our future releases.

That said, the OpenOCD developers would also like you to follow a few
suggestions:

- Send patches, including config files, upstream, participate in the
  discussions;
- Enable all the options OpenOCD supports, even those unrelated to your
  particular hardware;
- Use "ftdi" interface adapter driver for the FTDI-based devices.
--- End code ---

thinkfat:

--- Quote from: simonlasnier on October 26, 2021, 04:03:37 pm ---Hi :)

I'm trying to use OpenOCD with a GD32E230, in Visual Studio Code.

This looks like exactly what I need: https://review.openocd.org/c/openocd/+/6543

But I cannot get it in any release downloads even the latest master branch build? https://github.com/openocd-org/openocd/releases/tag/latest

Thank you

--- End quote ---

This patch is still under review. It's not in any release and not yet merged into master. You can git-clone the master branch and then cherry-pick this patch individually and rebuild it yourself.

simonlasnier:
Ok that explains it then.

How do you get the git master and add the patch to it?
Ok I managed that part, did a

--- Code: ---git clone https://github.com/openocd-org/openocd
--- End code ---
and then a

--- Code: ---git fetch https://review.openocd.org/openocd refs/changes/43/6543/5 && git checkout -b change-6543 FETCH_HEAD
--- End code ---
That seemed to work.

Then how to compile? I am on windows.

bson:
Don't know about Windows but on Linux/MacOS you run:

./bootstrap
./configure
make
sudo make install

It doesn't seem to parallel build correctly, so something like "make -j12" won't work.

You will likely encounter things missing when running the configure script.  Things like libusb.  Install and run again.  Not sure how this works on Windows.

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version