Hi,

I have same issue with "Arduino" one.

This is, how arduino see the problem:
~~~
"C:\Users\Jindra\AppData\Local\Arduino15\packages\WCH\tools\openocd\1.0.0/bin/openocd"
 -f 
"C:\Users\Jindra\AppData\Local\Arduino15\packages\WCH\tools\openocd\1.0.0/bin/wch-riscv.cfg"
 -c init -c halt -c "program 
{C:\Users\Jindra\AppData\Local\arduino\sketches\082CA6E126A46280AC42B2C347267422/CH32_blink.ino.elf}
 verify; wlink_reset_resume; exit;"
Open On-Chip Debugger 0.11.0+dev-02415-gfad123a16-dirty (2023-05-05-13:43)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'sdi'
Warn : Transport "sdi" was already selected
Ready for Remote Connections
Failed uploading: uploading error: exit status 0xc0000005
~~~

I can try to run manually, with -d3 option, but no better result:
~~~
C:\Users\Jindra\AppData\Local\Arduino15\packages\WCH\tools\openocd\1.0.0\bin>"C:\Users\Jindra\AppData\Local\Arduino15\packages\WCH\tools\openocd\1.0.0/bin/openocd"
 -d3 -f 
"C:\Users\Jindra\AppData\Local\Arduino15\packages\WCH\tools\openocd\1.0.0/bin/wch-riscv.cfg"
 -c init -c halt -c "program 
{C:\Users\Jindra\AppData\Local\arduino\sketches\082CA6E126A46280AC42B2C347267422/CH32_blink.ino.elf}
 verify; wlink_reset_resume; exit;"
Open On-Chip Debugger 0.11.0+dev-02415-gfad123a16-dirty (2023-05-05-13:43)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
User : 3 19 options.c:63 configuration_output_handler(): debug_level: 3
User : 4 30 options.c:63 configuration_output_handler():
Debug: 5 40 options.c:244 add_default_dirs(): 
bindir=/home/yy/riscv-openocdnew/opout/bin
Debug: 6 40 options.c:245 add_default_dirs(): 
pkgdatadir=/home/yy/riscv-openocdnew/opout/share/openocd
Debug: 7 40 options.c:246 add_default_dirs(): 
exepath=C:/Users/Jindra/AppData/Local/Arduino15/packages/WCH/tools/openocd/1.0.0/bin
Debug: 8 50 options.c:247 add_default_dirs(): bin2data=../share/openocd
Debug: 9 50 configuration.c:44 add_script_search_dir(): adding 
C:/Users/Jindra/AppData/Roaming/OpenOCD
Debug: 10 61 configuration.c:44 add_script_search_dir(): adding 
C:/Users/Jindra/AppData/Local/Arduino15/packages/WCH/tools/openocd/1.0.0/bin/../share/openocd/site
Debug: 11 70 configuration.c:44 add_script_search_dir(): adding 
C:/Users/Jindra/AppData/Local/Arduino15/packages/WCH/tools/openocd/1.0.0/bin/../share/openocd/scripts
Debug: 12 70 command.c:166 script_debug(): command - ocd_find 
C:\Users\Jindra\AppData\Local\Arduino15\packages\WCH\tools\openocd\1.0.0/bin/wch-riscv.cfg
Debug: 13 80 configuration.c:99 find_file(): found 
C:\Users\Jindra\AppData\Local\Arduino15\packages\WCH\tools\openocd\1.0.0/bin/wch-riscv.cfg
Debug: 14 90 command.c:166 script_debug(): command - adapter driver wlinke
Info : 15 90 transport.c:118 allow_transports(): only one transport option; 
autoselect 'sdi'
Debug: 16 100 sdi.c:94 sdi_transport_select(): sdi_transport_select
Debug: 17 100 command.c:166 script_debug(): command - adapter speed 6000
Debug: 18 110 adapter.c:176 adapter_config_khz(): handle adapter khz
Debug: 19 110 adapter.c:140 adapter_khz_to_speed(): convert khz to adapter 
specific speed value
Debug: 20 110 adapter.c:140 adapter_khz_to_speed(): convert khz to adapter 
specific speed value
Debug: 21 120 command.c:166 script_debug(): command - transport select sdi
Warn : 22 120 transport.c:287 jim_transport_select(): Transport "sdi" was 
already selected
Debug: 23 120 command.c:166 script_debug(): command - wlink_set_address 
0x00000000
Debug: 24 130 command.c:166 script_debug(): command - sdi newtap wch_riscv cpu 
-irlen 5 -expected-id 0x00001
Debug: 25 130 sdi.c:59 handle_sdi_newtap_command(): Creating new sdi "tap", 
Chip: wch_riscv, Tap: cpu, Dotted: wch_riscv.cpu
Debug: 26 140 core.c:1468 jtag_tap_init(): Created Tap: wch_riscv.cpu @ abs 
position 0, irlen 0, capture: 0x0 mask: 0x0
Debug: 27 140 command.c:166 script_debug(): command - target create 
wch_riscv.cpu.0 wch_riscv -chain-position wch_riscv.cpu
Debug: 28 150 target.c:2214 target_free_all_working_areas_restore(): freeing 
all working areas
Debug: 29 161 wch_riscv.c:71 wch_riscv_create_target(): 
wch_riscv_create_target()
Debug: 30 161 command.c:166 script_debug(): command - wch_riscv.cpu.0 configure 
-work-area-phys 0x20000000 -work-area-size 10000 -work-area-backup 1
Debug: 31 171 target.c:2214 target_free_all_working_areas_restore(): freeing 
all working areas
Debug: 32 171 target.c:2214 target_free_all_working_areas_restore(): freeing 
all working areas
Debug: 33 171 target.c:2214 target_free_all_working_areas_restore(): freeing 
all working areas
Debug: 34 181 command.c:166 script_debug(): command - flash bank 
wch_riscv.flash wch_riscv 0x00000000 0 0 0 wch_riscv.cpu.0
Debug: 35 191 tcl.c:1354 handle_flash_bank_command(): 'wch_riscv' driver usage 
field missing
Debug: 36 191 command.c:166 script_debug(): command - echo Ready for Remote 
Connections
User : 37 201 command.c:697 handle_echo(): Ready for Remote Connections
Debug: 38 201 command.c:166 script_debug(): command - init
Debug: 39 201 command.c:166 script_debug(): command - target init
Debug: 40 211 command.c:166 script_debug(): command - target names
Debug: 41 211 command.c:166 script_debug(): command - wch_riscv.cpu.0 cget 
-event gdb-flash-erase-start
Debug: 42 211 command.c:166 script_debug(): command - wch_riscv.cpu.0 configure 
-event gdb-flash-erase-start reset init
Debug: 43 221 command.c:166 script_debug(): command - wch_riscv.cpu.0 cget 
-event gdb-flash-write-end
Debug: 44 221 command.c:166 script_debug(): command - wch_riscv.cpu.0 configure 
-event gdb-flash-write-end reset halt
Debug: 45 231 command.c:166 script_debug(): command - wch_riscv.cpu.0 cget 
-event gdb-attach
Debug: 46 231 command.c:166 script_debug(): command - wch_riscv.cpu.0 configure 
-event gdb-attach halt 1000
Debug: 47 241 target.c:1671 handle_target_init_command(): Initializing 
targets...
Debug: 48 241 wch_riscv.c:84 wch_riscv_init_target(): wch_riscv_init_target()

C:\Users\Jindra\AppData\Local\Arduino15\packages\WCH\tools\openocd\1.0.0\bin>echo
 %errorlevel%
-1073741819
~~~



---

**[tickets:#439] OpenOCD failed with code (-1073741819)**

**Status:** new
**Milestone:** 0.10.0
**Labels:** OpenOCD 
**Created:** Fri Oct 11, 2024 02:23 PM UTC by Alex
**Last Updated:** Fri Jul 25, 2025 01:13 PM UTC
**Owner:** nobody
**Attachments:**

- 
[image_2024_10_11T13_44_15_984Z.png](https://sourceforge.net/p/openocd/tickets/439/attachment/image_2024_10_11T13_44_15_984Z.png)
 (44.5 kB; image/png)


Trying to use Microchip SoftConsole 2022 on PolarFire SoC Icicle Kit to debug 
example application, but OpenOCD failing with message:  **OpenOCD failed with 
code (-1073741819).** We tried to Google but nothing comes up.  Could you tell 
us what that error code means?
It is a new DELL laptop running Windows 11. We use SoftConsole on other 4 PCs 
and no problems. The interesting part that OpenOCD detects two Embedded 
FlashPro6 as shown on attached image and we did not see that before.
Thank you


---

Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/openocd/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/openocd/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.


Reply via email to