Tutorial: Using Eclipse + ST-LINK/v2 + OpenOCD to debug

I have now get the compile up and running with out any problem with the latest branch of Photon :smile:
When I upload the compiled (default tinker) *.bin file with dfu both direct from compile or later everything works great.

Problem is when it comes to the *.elf file. I get the STLinkV2 to download it and Photon boot up correct.
But STLink don’t stop at the first breakpoint I set at setup() and then Particle Android app says that the unit is online but not with the tinker app. If I leave the debugger connected to the target and choose to flash it from the Android app with the tinker code then after the reboot after flash debugger halt at the breakpoint and I could do stepping.

I have checked the user-part.map and .module_start 0x080a0000 it seems right. Bootloader works correct so it looks like the debugger flash the right address area.

Any ideas anyone ?

here is eclipse jtag full debug in uboot and kernel

Hi there,

I realy like the idea of using this IDE and OpenOCD but what if I want to flash an existing project?
also when I try to do the conversation of my ST link V2:

with the reflash software it says error and it wont let even tough the computer recognizes it and it’s confirmed to work.

also is it possible to use it with the NRF52832?

Hey guys! Just to be clear, is Semihosting available to the ST-Link V2 debugger?

HI
I have a problem:

Open On-Chip Debugger 0.10.0 (2018-07-28) [https://github.com/sysprogs/openocd]
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
User : 13 1 command.c:544 command_print(): debug_level: 3
Unexpected command line argument: Files\GNU

Could you please help me?