Flashing Photon bootloader using debugger

Hi -

I have read through some available articles on using the debugger to flash boorloader and other system files but have been unable to get it working.

Here is what I have done so far:

  • Installed BREW first
  • Then installed OpenOCD via Workbench - all seems to be in order.
  • Downloaded necessary files from Github.

I then run the following, tried via both Workbench and terminal, same result.

bin/openocd -f interface/cmsis-dap.cfg -f target/nrf52-particle.cfg \
-c "reset halt" \
-c "flash protect 0 0 0 off" \
-c "program /Users/friedlbasson/Downloads/photon-bootloader@1.5.1+lto.bin
    verify 0x08000000" \
-c "flash protect 0 0 0 on" \
-c "exit"

This is where the trouble start. It gets to this section here, but then nothing…

Info : SWD DPIDR 0x2ba01477
Info : stm32f2x.cpu: hardware has 6 breakpoints, 4 watchpoints

Would appreciate some help :slight_smile:

Regards.
Friedl.