Skip to content

No bootloader access after flashing SDK app #5

Closed

Description

@mame82

Hi,

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.

Activity

  1. caizelin commented on Feb 14, 2019

    @caizelin
    Member

    @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.

    Thanks for your feedback!

  2. mame82 commented on Feb 14, 2019

    @mame82
    Author

    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

  3. caizelin commented on Feb 14, 2019

    @caizelin
    Member

    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

    @mame82 I am here to help you! I will also update the section to wiki page.

  4. mame82 commented on Feb 15, 2019

    @mame82
    Author
  5. caizelin commented on Feb 15, 2019

    @caizelin
    Member

    Ordered this:

    https://www.amazon.de/Adafruit-IBDAP-CMSIS-DAP-Adapter-ADA2764/dp/B01BT4N40S

    Could it be used?

    @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.

  6. mame82 commented on Feb 15, 2019

    @mame82
    Author

    Too bad. Okay, placed an additional order on the SEGGER edu mini. Will reach back when it arrived

  7. caizelin commented on Feb 15, 2019

    @caizelin
    Member

    @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).

  8. mame82 commented on Feb 21, 2019

    @mame82
    Author

    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 ?

  9. caizelin commented on Feb 21, 2019

    @caizelin
    Member

    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 ?

    Nice! New bootloader is working in progress for compatibility with the old one.

  10. mame82 commented on Feb 21, 2019

    @mame82
    Author

    Okay, so I think we could close. New bootloader isn't really off-topic, but better placed in the Wiki.

    Agreed?

  11. mame82 commented on Feb 21, 2019

    @mame82
    Author

    ... maybe there should be a note, that IBDAP CMSIS could be used for bootloader flashing with OpenOCD

  12. caizelin commented on Feb 21, 2019

    @caizelin
    Member

    ... maybe there should be a note, that IBDAP CMSIS could be used for bootloader flashing with OpenOCD

    You are right. I will update the docs for this. Thanks for your contributions!

  13. caizelin commented on Mar 17, 2020

    @caizelin
    Member

    I’m closing this issue because it has been inactive for a long time. Please reopen if you still encounter this issue.
    Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions