redbear / nRF5x

nRF51822 and nRF52832 based baords, e.g. BLE Nano, RBL_nRF51822, Nano 2 and Blend 2
188 stars 93 forks source link

Upload not working red bear nano ble v2 #44

Open pucchakayalas opened 6 years ago

pucchakayalas commented 6 years ago

I am not able to upload any code or hex file to my redbear nano ble v2.

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: 1 adapter speed: 10000 kHz cortex_m reset_config sysresetreq in procedure 'init' in procedure 'ocd_bouncer'

An error occurred while uploading the sketch

Arduino error above

Processing redbear_blend2 (platform: nordicnrf52; board: redbear_blend2; framework: arduino)

Verbose mode can be enabled via -v, --verbose option PLATFORM: Nordic nRF52 > RedBearLab Blend 2 SYSTEM: NRF52832 64MHz 64KB RAM (512KB Flash) DEBUG: CURRENT(cmsis-dap) ON-BOARD(cmsis-dap) EXTERNAL(blackmagic, jlink, stlink) Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF MODES: FINDER(chain) COMPATIBILITY(soft) Collected 2 compatible libraries Scanning dependencies... No dependencies Checking size .pioenvs\redbear_blend2\firmware.elf Memory Usage -> http://bit.ly/pio-memory-usage DATA: [ ] 0.2% (used 140 bytes from 65536 bytes) PROGRAM: [ ] 0.5% (used 2508 bytes from 524288 bytes) Configuring upload protocol... AVAILABLE: blackmagic, cmsis-dap, jlink, mbed, nrfjprog, stlink CURRENT: upload_protocol = cmsis-dap Uploading .pioenvs\redbear_blend2\firmware.hex GNU MCU Eclipse 64-bits Open On-Chip Debugger 0.10.0+dev-00392-gbe9ef0b0 (2018-01-12-15:03) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : auto-selecting first available session transport "swd". To override use 'transport select '. adapter speed: 1000 kHz cortex_m reset_config sysresetreq Info : CMSIS-DAP: SWD Supported Info : CMSIS-DAP: Interface Initialised (SWD) Info : CMSIS-DAP: FW Version = 1.0 Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1 Info : CMSIS-DAP: Interface ready Info : clock speed 1000 kHz Error: SWD connect failed in procedure 'program' in procedure 'init' called at file "embedded:startup.tcl", line 495 in procedure 'ocd_bouncer' OpenOCD init failed shutdown command invoked

*** [upload] Error 1

Platformio

  1. I tried changing the daplink file in maintenance mode with no luck

  2. Tried changing the cfg files with no results

  3. No drag and drop working with precompiled hex files The interface firmware FAILED to reset/halt the target MCU

Working with your dev board has been the most difficult experience of my life, I am frustrated with this device. This is my university project and I dont understand why it is still sold on the market with so many issues.

For starters it doesnt integrate with keil, there are always errors (Soft device, rom errors etc etc)

Please solve the upload problem, I am banging my head since the last 12 hours to get this up and running.

PS the upload problem started today and the upload worked fine before