You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I accidently flashed the ble_app_blinky for the 52840 dongle from Nordic (pca10059) before I noticed that this repo with custom board header files exist.
The dongle is still working and the BLE example app could be accessed via Bluetooth (of course the LED doesn't work, due to different PIN layout).
Anyways, pushing the button now, doesn't reset the MDK dongle back into bootloader mode (it has no effect at all). The bootloader hasn't been erased. I noticed that the Makefile for this board has CONFIG_GPIO_AS_PINRESET option disabled, which wasn't the case for the image compiled for pca10059, but I'm not sure if this is related.
I hope you can help in this, would be to bad if I bricked the dongle after flashing the first app.
@mame82
Sorry for the late reply!
For nRF52840-MDK USB Dongle, you MUST undefine the CONFIG_GPIO_AS_PINRESET flag, or the Dongle would not enter the bootloader mode next time by holding the dongle's RESET/USR button.
pca10059 does NOT use P0.18 as GPIO, so it keeps the CONFIG_GPIO_AS_PINRESET option.
Do you have a debugger probe like JLink or DAPLink? Now you need a debugger probe for recovery.
BTW, I am considering to update the bootloader firmware with adding P4 as an alternate pin for entering bootloader mode.
@mame82 , I have just checked that Adafruit-IBDAP-CMSIS-DAP-Adapter supports nRF51822 not nRF52840.
You can select a SEGGER J-Link EDU Mini debugger. It is cheaper and and supports more targets.
@mame82 Once you get the probe, just erase the chip of the dongle and then flash the bootloader firmware: nrf52840_usb_dongle_open_bootloader_v1_1_0.hex.
Next time you compile a new sdk example, remember to undefine the CONFIG_GPIO_AS_PINRESET option(just comment CFLAGS += -DCONFIG_GPIO_AS_PINRESET and ASMFLAGS += -DCONFIG_GPIO_AS_PINRESET).
Activity
caizelin commentedon Feb 14, 2019
@mame82
Sorry for the late reply!
For nRF52840-MDK USB Dongle, you MUST undefine the CONFIG_GPIO_AS_PINRESET flag, or the Dongle would not enter the bootloader mode next time by holding the dongle's RESET/USR button.
pca10059 does NOT use P0.18 as GPIO, so it keeps the
CONFIG_GPIO_AS_PINRESEToption.Do you have a debugger probe like JLink or DAPLink? Now you need a debugger probe for recovery.
BTW, I am considering to update the bootloader firmware with adding P4 as an alternate pin for entering bootloader mode.
Thanks for your feedback!
mame82 commentedon Feb 14, 2019
Thanks for fast reply.
Haven't a debugger probe yet, but will order one right away, if you could give me guidance on how to recover the bootloader.
Having an alternative PIN for bootloader entry would be awesome, btw
caizelin commentedon Feb 14, 2019
@mame82 I am here to help you! I will also update the section to wiki page.
mame82 commentedon Feb 15, 2019
Ordered this:
https://www.amazon.de/Adafruit-IBDAP-CMSIS-DAP-Adapter-ADA2764/dp/B01BT4N40S
Could it be used?
caizelin commentedon Feb 15, 2019
@mame82 , I have just checked that Adafruit-IBDAP-CMSIS-DAP-Adapter supports nRF51822 not nRF52840.
You can select a SEGGER J-Link EDU Mini debugger. It is cheaper and and supports more targets.
mame82 commentedon Feb 15, 2019
Too bad. Okay, placed an additional order on the SEGGER edu mini. Will reach back when it arrived
caizelin commentedon Feb 15, 2019
@mame82 Once you get the probe, just erase the chip of the dongle and then flash the bootloader firmware: nrf52840_usb_dongle_open_bootloader_v1_1_0.hex.
Next time you compile a new sdk example, remember to undefine the
CONFIG_GPIO_AS_PINRESEToption(just commentCFLAGS += -DCONFIG_GPIO_AS_PINRESETandASMFLAGS += -DCONFIG_GPIO_AS_PINRESET).mame82 commentedon Feb 21, 2019
Managed to re-flash the bootloader with IBDAP CMSIS.
Ref on Twitter https://twitter.com/mame82/status/1098516205730779136?s=19
Any progress on bootloader with GPIO reset PIN ?
caizelin commentedon Feb 21, 2019
Nice! New bootloader is working in progress for compatibility with the old one.
mame82 commentedon Feb 21, 2019
Okay, so I think we could close. New bootloader isn't really off-topic, but better placed in the Wiki.
Agreed?
mame82 commentedon Feb 21, 2019
... maybe there should be a note, that IBDAP CMSIS could be used for bootloader flashing with OpenOCD
caizelin commentedon Feb 21, 2019
You are right. I will update the docs for this. Thanks for your contributions!
caizelin commentedon Mar 17, 2020
I’m closing this issue because it has been inactive for a long time. Please reopen if you still encounter this issue.
Thank you!