This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Getting error while flashing nrf52840 with arduio IDE

Hello all.

i am trying to flash a boot loader with arduino IDE.
i got the technique from here : https://github.com/sandeepmistry/arduino-nRF5

after doing all steps i am getting error like shown below

Downloading 'www.nordicsemi.com/.../s132_nrf52_2.0.1.zip' ...
.done
Open On-Chip Debugger 0.10.0-dev-00254-g696fc0a (2016-04-09-12:07)
Licensed under GNU GPL v2
For bug reports, read
    openocd.org/.../bugs.html
debug_level: 0
0
adapter speed: 10000 kHz
cortex_m reset_config sysresetreq
Error: Failed to erase reg: 0x4001e50c val: 0x00000001
Error: Failed to erase the chip

Error while flashing SoftDevice.

Parents
  • adapter speed: 10000 kHz

    That is wishful thinking. Try "adapter_khz 500" first.

    debug_level: 0

    That shows us nothing.

    OpenOCD problems should be debugged with the "-d3" option enabled - that will produce MUCH more output. Some of it might be helpful even.

    2016-04-09-12:07)

    That seems unusually old. The OpenOCD 0.10.0 release date was in January 2017.

    And I think there are some patches for NRF stuff later in git master - you might want to compile a more current OpenOCD yourself.

Reply
  • adapter speed: 10000 kHz

    That is wishful thinking. Try "adapter_khz 500" first.

    debug_level: 0

    That shows us nothing.

    OpenOCD problems should be debugged with the "-d3" option enabled - that will produce MUCH more output. Some of it might be helpful even.

    2016-04-09-12:07)

    That seems unusually old. The OpenOCD 0.10.0 release date was in January 2017.

    And I think there are some patches for NRF stuff later in git master - you might want to compile a more current OpenOCD yourself.

Children
Related