-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uploading / Debugging GD32E23x fails with configurations using OpenOCD #18
Comments
|
Yes, I've tested with Uploading: Advanced Memory Usage is available via "PlatformIO Home > Project Inspect" Debugging: Reading symbols from /Users/jgiles/SynologyDrive/Documents/MCU/projects/GD32E230/.pio/build/genericGD32E230F6/firmware.elf... Temporary breakpoint 1, main () at src/main.c:13 |
The GigaDevice OpenOCD fork is no longer current with latest OpenOCD. The minimal patch set I created were based on: Additions to flash/nor/stm32f1x.c: GD32E23x.cfg: Needed to rework '5246' as its a patch against an older version of stm32f1x.c than current, and revert GD32E23x.cfg from '6543' to use 'stm32f1' as the flash driver since that patch creates a new gd32 driver. I really wanted something that works versus HEAD openocd so I don't have to install multiple versions and then remember which to use and when. |
Thanks for all the input, I'll have a play with trying to get the GigaDevice OpenOCD changes for GD32E23x (which look like literally 2 clean commits) into the latest OpenOCD, I'm sure the GigaDevice people would also like that so that they're updated.
For PlatformIO that's thankfully not a problem because of internal packet management -- PIO never uses the system's If I can compile such an OpenOCD version (https://github.com/maxgerhardt/openocd/pull/1), would you be available to test it on real HW with an ST-Link (or "GDLink")? I only have a GD32E1xx board I think. If that works we have more complete OpenOCD support, your BMP configuration is unaffected by that since you can always specify If I fail to do that, we'll switch the default for the boards that have no working OpenOCD config to BMP. |
Yes, if you can compile an updated OpenOCD version with the GD32 patches will happily test. I don't have a GDLink, but do have an ST-Link and a generic CMSIS-DAP device as well. |
Just noticed that the OpenOCD project accepted a patch to support the GD32E230 today. Looks difference from GigaDevices patch, though. |
We've switched the OpenOCD version to the one provided by the latest xPack build with GD32E23x support in fbaebc9, closing as solved. |
OpenOCD currently does not support the GD32E23x line of processors (there are patches pending, but not yet accepted - I've a minimally working patch set if there's interest).
On the other hand, Blackmagic Probe (recent builds) do work for these boards. I would propose that 'blackmagic' is the default upload / debug tool for the GD32E23x line until OpenOCD adds support.
I can submit a patch/pull request to change the default tool if helpful.
The text was updated successfully, but these errors were encountered: