RAK8211-NBS stops responding after burning softdevice



  • Hi all,

    I have followed the steps in the PDF "iTracker Arduino Development environment.pdf"
    There was only one issue: in my Arduino there was no "nRF5 Flash SoftDevice" in the Tools menu, so I had to go to https://www.hackster.io/naresh-krish/getting-started-with-rak-itracker-module-and-arduino-ide-b78c0f to see get this option.

    After this I could follow the PDF until step "4.3 set the board and burn softdevice". Here is the output of step 4.3:

    C:\Users\lenovo\AppData\Local\Arduino15\packages\sandeepmistry\tools\openocd\0.10.0-dev.nrf5/bin/openocd.exe -d2 -f interface/jlink.cfg -c transport select swd; set WORKAREASIZE 0; -f target/nrf52.cfg -c init; halt; nrf51 mass_erase; program {{C:\Users\lenovo\AppData\Local\Arduino15\packages\sandeepmistry\hardware\nRF5\0.5.1/cores/nRF5/SDK/components/softdevice/s132/hex/s132_nrf52_2.0.1_softdevice.hex}} verify reset; shutdown;
    Open On-Chip Debugger 0.10.0-dev-00254-g696fc0a (2016-04-10-10:13)
    Licensed under GNU GPL v2
    For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
    debug_level: 2
    0
    adapter speed: 10000 kHz
    cortex_m reset_config sysresetreq
    jaylink: Failed to open device: LIBUSB_ERROR_NOT_SUPPORTED.
    Info : No device selected, using first device.
    Info : J-Link V9 compiled Jul 19 2017 16:11:45
    Info : Hardware version: 9.40
    Info : VTarget = 3.356 V
    Info : clock speed 10000 kHz
    Info : SWD IDCODE 0x2ba01477
    Info : nrf52.cpu: hardware has 6 breakpoints, 4 watchpoints
    Info : nRF51822-QFN48(build code: B00) 512kB Flash
    nrf52.cpu: target state: halted
    target halted due to debug-request, current mode: Thread
    xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
    ** Programming Started **
    auto erase enabled
    Info : Padding image section 0 with 1692 bytes
    Warn : not enough working area available(requested 32)
    Warn : no working area available, falling back to slow memory writes
    wrote 114688 bytes from file C:\Users\lenovo\AppData\Local\Arduino15\packages\sandeepmistry\hardware\nRF5\0.5.1/cores/nRF5/SDK/components/softdevice/s132/hex/s132_nrf52_2.0.1_softdevice.hex in 77.352493s (1.448 KiB/s)
    ** Programming Finished **
    ** Verify Started **
    Warn : not enough working area available(requested 52)
    Warn : not enough working area available(requested 52)
    verified 110636 bytes in 0.866117s (124.744 KiB/s)
    ** Verified OK **
    ** Resetting Target **
    shutdown command invoked

    It seemed like this was going well (although there were a few warnings).
    Unfortunately, I have not been able to communicate with the RAK since then.
    When I try to upload a sketch, I always get:

    C:\Users\lenovo\AppData\Local\Arduino15\packages\sandeepmistry\tools\openocd\0.10.0-dev.nrf5/bin/openocd.exe -d2 -f interface/jlink.cfg -c transport select swd; -f target/nrf52.cfg -c program {{C:\Users\lenovo\AppData\Local\Temp\arduino_build_273663/sketch_sep08a.ino.hex}} verify reset; shutdown;
    Open On-Chip Debugger 0.10.0-dev-00254-g696fc0a (2016-04-10-10:13)
    Licensed under GNU GPL v2
    For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
    debug_level: 2
    swd
    adapter speed: 10000 kHz
    cortex_m reset_config sysresetreq
    jaylink: Failed to open device: LIBUSB_ERROR_NOT_SUPPORTED.
    Info : No device selected, using first device.
    Info : J-Link V9 compiled Jul 19 2017 16:11:45
    Info : Hardware version: 9.40
    Info : VTarget = 3.348 V
    Info : clock speed 10000 kHz
    in procedure 'program'
    in procedure 'init' called at file "embedded:startup.tcl", line 473
    in procedure 'ocd_bouncer'
    ** OpenOCD init failed **
    shutdown command invoked
    the selected serial port
    does not exist or your board is not connected

    Also, if I try to do step 4.3 again, I get an error:

    C:\Users\lenovo\AppData\Local\Arduino15\packages\sandeepmistry\tools\openocd\0.10.0-dev.nrf5/bin/openocd.exe -d2 -f interface/jlink.cfg -c transport select swd; set WORKAREASIZE 0; -f target/nrf52.cfg -c init; halt; nrf51 mass_erase; program {{C:\Users\lenovo\AppData\Local\Arduino15\packages\sandeepmistry\hardware\nRF5\0.4.0/cores/nRF5/SDK/components/softdevice/s132/hex/s132_nrf52_2.0.1_softdevice.hex}} verify reset; shutdown;
    Open On-Chip Debugger 0.10.0-dev-00254-g696fc0a (2016-04-10-10:13)
    Licensed under GNU GPL v2
    For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
    debug_level: 2
    0
    adapter speed: 10000 kHz
    cortex_m reset_config sysresetreq
    jaylink: Failed to open device: LIBUSB_ERROR_NOT_SUPPORTED.
    Info : No device selected, using first device.
    Info : J-Link V9 compiled Jul 19 2017 16:11:45
    Info : Hardware version: 9.40
    Info : VTarget = 3.345 V
    Info : clock speed 10000 kHz
    in procedure 'init'
    in procedure 'ocd_bouncer'
    Error while flashing SoftDevice.

    Has anyone had similar issues? Is it possible that something went wrong when I burned the Softdevice the first time?
    Any suggestion will be appreciated.
    Thanks!



  • @solu

    Hi all,

    I tried to program the RAK8211 with "nRFgo Studio" and then it worked correctly.
    There is probably something wrong with my Arduino setup, so please do not bother about it too much.

    Cheers!


Log in to reply
 

Looks like your connection to RAK Support Center was lost, please wait while we try to reconnect.