Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic openocd.exe exited with code 1 (Portenta H7) (Read 871 times)
YW50
Junior Member
**
Offline


Posts: 12
Joined: Sep 21st, 2022
openocd.exe exited with code 1 (Portenta H7)
Sep 21st, 2022 at 6:17pm
Print Post  
I'm trying to debug with J-Link Portenta H7 (M7 core only). It fails (Serial & MRI are ok). USB driver is replaced.

Error dialog:
Unable to start debugging. GDB exited unexpectedly with exit code 1 (0x1).

VS Output:
Starting: "C:\ProgramData\vmicro\tools\openocd-0.10.0.20200213\bin/openocd.exe" -d2 -l duleArduino.ino_DebugOpenOCD.log}" -s "C:\ProgramData\vmicro\tools\openocd-0.10.0.20200213/scripts/" -f "interface/jlink.cfg" -c "adapter speed 200" -c "transport select swd" -c "set DUAL_CORE 1" -f "target/stm32h7x_dual_bank.cfg" -c "telnet_port disabled; tcl_port disabled" -c "init"
Starting: \7-2017q4/bin\arm-none-eabi-gdb.exe" --interpreter=mi
"C:\ProgramData\vmicro\tools\openocd-0.10.0.20200213\bin/openocd.exe" exited with code 1 (0x1).

Log:
adapter speed: 200 kHz
swd
1
Info : J-Link Ultra V4 compiled Sep 24 2021 16:41:09
Info : Hardware version: 4.00
Info : VTarget = 0.000 V
Info : clock speed 1800 kHz

Running OCD manually:
exe" -d2 -l duleArduino.ino_DebugOpenOCD.log}" -s "C:\ProgramData\vmicro\tools\openocd-0.10.0.20200213/scripts/" -f "interface/jlink.cfg" -c "adapter speed 200" -c "transport select swd" -c "set DUAL_CORE 1" -f "target/stm32h7x_dual_bank.cfg" -c "telnet_port disabled; tcl_port disabled" -c "init"
Open On-Chip Debugger 0.10.0+dev-01058-g853a05287 (2020-02-13-16:41)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
debug_level: 2
C:\Users\antgr>
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: openocd.exe exited with code 1 (Portenta H7)
Reply #1 - Sep 22nd, 2022 at 8:34am
Print Post  
Thanks for the report, the first issue is the below line from the log:
Info : VTarget = 0.000 V

Can you confirm that you have the VRef pin on the JLink connected to the 3v3 pin on your Portenta, and the Portenta is powered by the USB cable?
  
Back to top
 
IP Logged
 
YW50
Junior Member
**
Offline


Posts: 12
Joined: Sep 21st, 2022
Re: openocd.exe exited with code 1 (Portenta H7)
Reply #2 - Sep 23rd, 2022 at 2:18pm
Print Post  
Thank you for the explanation. Yes, it was an incorrectly connected cable. The issue is resolved.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint