h2zero / n-able-Arduino

An arduino core for ARM based BLE devices supported by the NimBLE stack.
GNU Lesser General Public License v2.1
34 stars 12 forks source link

Feather Sense (nRF52840): Flashing the bootloader #11

Open vabt-igd opened 1 year ago

vabt-igd commented 1 year ago

Hi,

I'm currently struggling to burn the provided Adafruit bootloader to a Feather Sense (nRF52840). Following the instructions and selecting Burn Bootloader from the Tools menu results in the following error:

xPack OpenOCD x86_64 Open On-Chip Debugger 0.11.0+dev (2022-03-25-17:32)
Error while burning bootloader.
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
debug_level: 0

embedded:startup.tcl:26: Error: Can't find interface/.cfg
in procedure 'script' 
at file "embedded:startup.tcl", line 26

The programmer is set to adafruit-nrfutil and the device is connected via USB. Is there an option to burn your provided bootloader without using special programmer hardware? For instance, something such as Adafruit's Bootloader DFU for Bluefruit nRF52 programmer?

I'm currently using the Adafruit Softdevice enabled bootloader v0.7.0 and am therefore unable to upload sketches without soft-bricking the board.

h2zero commented 1 year ago

Great question, I haven't got a great answer though. I'm not familiar enough with changing adafruits bootloader over serial and I'm unsure if it would be possible without a hardware debugger. It looks like adafruit uses jlink for this in their repo, but I'll do some testing to check it out.

vabt-igd commented 1 year ago

Cool, let me know if you find something. I'm happy to test!