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


#41

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 ?


#43

here is eclipse jtag full debug in uboot and kernel


#44

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?


#45

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