Stm32 g030f6 board config

3221225477 is the code for STATUS_ACCESS_VIOLATION, so, openocd has crashed. Not good. Can you use Zadig (https://zadig.akeo.ie/) to load a different driver for the CMSIS-DAP interface (not the USB serial interface!) of the Picoprobe? Try WinUSB or libusb-win32.

Also, you can definitely use other programs to connect to the chip via serial instead of stm32flash, the STM32CubeProg shoudl work perfectly with serial:

https://www.st.com/en/development-tools/stm32cubeprog.html

I already using Zadig with libusb-win32 because I used PicoProbe (on Pico) 3 months ago for debug an RP2040 and in this case worked fine!

Alan

Yes, this works fine, but can I integrate this to PIO??

Then this would need more investigation than I can provide here, sadly.

Another point is that you can get updated stm32flash binaries from https://sourceforge.net/projects/stm32flash/files/stm32flash-0.7-binaries.zip/download to replace the old ones with in

That hopefully enables PlatformIO to upload via serial. (Debugging not possible that way.)

1 Like

This works fine!

Alan

Just curious about the CMSIS-DAP thing, can you reattach that but instead of OpenOCD, try pyOCD? Install via https://github.com/pyocd/pyOCD?tab=readme-ov-file#installing and then

pyocd list

and

pyocd gdbserver

to check if it can see and connect to the chip. (If yes, PlatformIO can be made to work with it via debug_server, debug_port etc. per docs)

C:\Users\alanm>pyocd list
  #   Probe/Board                           Unique ID          Target
-----------------------------------------------------------------------
  0   Raspberry Pi CMSIS-DAP v2 Interface   E46274B8A3300A37   n/a

C:\Users\alanm>pyocd gdbserver
0001174 W Generic 'cortex_m' target type is selected by default; is this intentional? You will be able to debug most devices, but not program flash. To set the target type use the '--target' argument or 'target_override' option. Use 'pyocd list --targets' to see available targets types. [board]
0001175 I Target type is cortex_m [board]
0001201 C Unexpected ACK value (5) returned by probe [__main__]

This is the output!
Thanks a lot for your interest in my troubles!!

[EDIT]:
I just tested the debugger whit an RP2040 and works fine!

Alan

I post an update:
I tried to connect my FloppyBoard to an ST-Link and all it’s fine.

So the problem is only on CMSIS-DAP debug tool!

Alan

1 Like