g4eml said:
The instructions for programming the wireless bootloader using Windows are lacking quite a few important steps. Anyone not experienced with Windows would waste a lot of time trying to get it to work.
I have just gone through the process and made the following notes which should help. Maybe someone with write access can update the instructions.
1. Download openocd for windows (current link is OK)
2. Unzip the file on your PC desktop.
3. Copy the resulting folder to a convenient place on your PC. For ease of access use C:/
4. Rename the folder openocd
5. Copy the Wireless Bootloader .hex file you have previously downloaded into c:/openocd/bin
6. In the Windows search box enter cmd to open a command prompt.
7. Enter cd C:/openocd/bin
8. Enter the following. (All in one line)
openocd.exe -f ../share/openocd/scripts/interface/stlink.cfg -f ../share/openocd/scripts/target/nrf52.cfg -c "program TSDZ2_wireless-bootloader_with_sd-v0.9.0.hex verify" -c "exit"
9. This will flash and verify the write. If you see ** Verified OK **, the flashing has been successful.
As an aside it might be easier if the above command was made available as a .bat file which would avoid typing errors.
Then the .bat file could be copied to the bin directory and executed with a double click removing the need to use the cmd prompt.
Colin.
Hello
Is anyone able to offer me any guidance on flashing the bootloader using ocd in Windows 10? When attempting this following the Github instructions as above, I get the following result:
C:\OpenOCD\bin>openocd.exe -f ../share/openocd/scripts/interface/stlink.cfg -f ../share/openocd/scripts/target/nrf52.cfg -c "program TSDZ2_wireless-bootloader_with_sd-v0.9.0.hex verify" -c "exit"
Open On-Chip Debugger 0.10.0 (2020-12-28) [https://github.com/sysprogs/openocd]
Licensed under GNU GPL v2
libusb1 09e75e98b4d9ea7909e8837b7a3f00dda4589dc3
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
nRF52 device has a CTRL-AP dedicated to recover the device from AP lock.
A high level adapter (like a ST-Link) you are currently using cannot access
the CTRL-AP so 'nrf52_recover' command will not work.
Do not enable UICR APPROTECT.
Info : clock speed 1000 kHz
Error: open failed
in procedure 'program'
** OpenOCD init failed **
shutdown command invoked
I'm sure this means something to someone who reads this forum, but it is Greek to me. Any suggestions?
Thanks in advance
Ed