Visual Studio Code Debugging Error : "Run to 'main' timed out. Trying to pause program"

Hi,

When I try to run a colleague's project on my PC in debug mode in Visual Studio Code, I get the error "Run to 'main' timed out. Trying to pause program":

The debug session never hits the entry break point. The project runs with no problem on my colleague's PC. I'm able to flash this project on my board without any problem. I'm able to run in debug mode other example projects on my PC. There is the complete log of the Debug Console:

Launching GDB: "c:\\Users\\xavie\\ncs\\v1.8.0\\toolchain\\opt\\bin\\arm-none-eabi-gdb.exe" -q --interpreter=mi2 "c:\\Users\\xavie\\Documents\\Github\\P013-RemblaiMCM-SW\\P013_RemblaiMCM\\build_5\\zephyr\\merged.hex"
Set "showDevDebugOutput": true in your "launch.json" to see verbose GDB transactions here. Helpful to debug issues or report problems
Reading symbols from c:\Users\xavie\Documents\Github\P013-RemblaiMCM-SW\P013_RemblaiMCM\build_5\zephyr\merged.hex...
(No debugging symbols found in c:\Users\xavie\Documents\Github\P013-RemblaiMCM-SW\P013_RemblaiMCM\build_5\zephyr\merged.hex)
WARNING: Cortex-Debug will deprecate use of GDB version 8. Please upgrade to version 9+
Launching gdb-server: "C:\\Program Files (x86)\\SEGGER\\JLink\\JLinkGDBServerCL.exe" -singlerun -nogui -if swd -port 50000 -swoport 50001 -telnetport 50002 -device nRF52832_xxAA -select usb=483111062 -rtos "C:\\Program Files (x86)\\SEGGER\\JLink\\GDBServer\\RTOSPlugin_Zephyr.dll"
Please check TERMINAL tab (gdb-server) for output from C:\Program Files (x86)\SEGGER\JLink\JLinkGDBServerCL.exe
0x000003d0 in ?? ()
Program stopped, probably due to a reset and/or halt issued by debugger
add symbol table from file "c:/Users/xavie/Documents/Github/P013-RemblaiMCM-SW/P013_RemblaiMCM/build_5/zephyr/zephyr.elf"
(y or n) [answered Y; input not from terminal]
Reading symbols from c:/Users/xavie/Documents/Github/P013-RemblaiMCM-SW/P013_RemblaiMCM/build_5/zephyr/zephyr.elf...
add symbol table from file "c:/Users/xavie/Documents/Github/P013-RemblaiMCM-SW/P013_RemblaiMCM/build_5/mcuboot/zephyr/zephyr.elf"
(y or n) [answered Y; input not from terminal]
Reading symbols from c:/Users/xavie/Documents/Github/P013-RemblaiMCM-SW/P013_RemblaiMCM/build_5/mcuboot/zephyr/zephyr.elf...
2
Resetting target
[New Thread -580691203]
[New Thread -268714054]
[Switching to Thread -580691203]
Run to 'main' timed out. Trying to pause program

What can be the issue?

Thank you!

Parents Reply Children
Related