[riot-notifications] [RIOT-OS/RIOT] boards/nrf52: add openocd as programmer option (#9407)

MrKevinWeiss notifications at github.com
Fri Feb 15 13:35:26 CET 2019


The results with/without openocd as programmer:

```
PROGRAMMER=openocd make BOARD=ruuvitag -C examples/default flash
make: Entering directory '/home/kevinweiss/WorkingDirectory/RIOT/examples/default'
Building application "default" for "ruuvitag" with MCU "nrf52".

"make" -C /home/kevinweiss/WorkingDirectory/RIOT/boards/ruuvitag
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/boards/common/nrf52xxxdk
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/core
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/cpu/nrf52
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/cpu/cortexm_common
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/cpu/cortexm_common/periph
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/cpu/nrf52/periph
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/cpu/nrf5x_common
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/cpu/nrf5x_common/periph
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/drivers
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/drivers/lis2dh12
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/drivers/periph_common
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/drivers/saul
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys/auto_init
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys/auto_init/saul
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys/div
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys/fmt
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys/newlib_syscalls_default
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys/phydat
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys/ps
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys/saul_reg
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys/shell
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys/shell/commands
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys/stdio_rtt
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys/xtimer
   text	   data	    bss	    dec	    hex	filename
  16072	    552	   3196	  19820	   4d6c	/home/kevinweiss/WorkingDirectory/RIOT/examples/default/bin/ruuvitag/default.elf
/home/kevinweiss/WorkingDirectory/RIOT/dist/tools/openocd/openocd.sh flash /home/kevinweiss/WorkingDirectory/RIOT/examples/default/bin/ruuvitag/default.elf
### Flashing Target ###
Open On-Chip Debugger 0.10.0+dev-00399-g09076d1 (2018-04-12-17:12)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
adapter speed: 1000 kHz
cortex_m reset_config sysresetreq
Info : J-Link OB-SAM3U128-V2-NordicSemi compiled Jul 12 2018 11:44:41
Info : Hardware version: 1.00
Info : VTarget = 3.300 V
Info : clock speed 1000 kHz
Info : SWD DPIDR 0x2ba01477
Info : nrf52.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : Listening on port 42125 for gdb connections
    TargetName         Type       Endian TapName            State       
--  ------------------ ---------- ------ ------------------ ------------
 0* nrf52.cpu          cortex_m   little nrf52.cpu          running
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x00000450 msp: 0x20000200
auto erase enabled
Info : nRF52832-QFAA(build code: B0) 512kB Flash
Warn : using fast async flash loader. This is currently supported
Warn : only with ST-Link and CMSIS-DAP. If you have issues, add
Warn : "set WORKAREASIZE 0" before sourcing nrf51.cfg/nrf52.cfg to disable it
wrote 20480 bytes from file /home/kevinweiss/WorkingDirectory/RIOT/examples/default/bin/ruuvitag/default.elf in 0.536813s (37.257 KiB/s)
verified 16624 bytes in 0.090411s (179.562 KiB/s)
shutdown command invoked
Warn : Flash driver of nrf52.flash does not support free_driver_priv()
Warn : Flash driver of nrf52.uicr does not support free_driver_priv()
Done flashing
make: Leaving directory '/home/kevinweiss/WorkingDirectory/RIOT/examples/default'
```

```
make BOARD=ruuvitag -C examples/default flash
make: Entering directory '/home/kevinweiss/WorkingDirectory/RIOT/examples/default'
Building application "default" for "ruuvitag" with MCU "nrf52".

"make" -C /home/kevinweiss/WorkingDirectory/RIOT/boards/ruuvitag
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/boards/common/nrf52xxxdk
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/core
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/cpu/nrf52
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/cpu/cortexm_common
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/cpu/cortexm_common/periph
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/cpu/nrf52/periph
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/cpu/nrf5x_common
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/cpu/nrf5x_common/periph
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/drivers
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/drivers/lis2dh12
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/drivers/periph_common
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/drivers/saul
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys/auto_init
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys/auto_init/saul
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys/div
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys/fmt
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys/newlib_syscalls_default
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys/phydat
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys/ps
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys/saul_reg
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys/shell
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys/shell/commands
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys/stdio_rtt
"make" -C /home/kevinweiss/WorkingDirectory/RIOT/sys/xtimer
   text	   data	    bss	    dec	    hex	filename
  16072	    552	   3196	  19820	   4d6c	/home/kevinweiss/WorkingDirectory/RIOT/examples/default/bin/ruuvitag/default.elf
/home/kevinweiss/WorkingDirectory/RIOT/dist/tools/jlink/jlink.sh flash /home/kevinweiss/WorkingDirectory/RIOT/examples/default/bin/ruuvitag/default.bin
### Flashing Target ###
### Flashing at address 0x0 ###
SEGGER J-Link Commander V6.32i (Compiled Jul 24 2018 15:20:49)
DLL version V6.32i, compiled Jul 24 2018 15:20:43


J-Link Command File read successfully.
Processing script file...

J-Link connection not established yet but required for command.
Connecting to J-Link via USB...O.K.
Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jul 12 2018 11:44:41
Hardware version: V1.00
S/N: 682059755
VTref=3.300V
Target connection not established yet but required for command.
Device "NRF52" selected.


Connecting to target via SWD
Found SW-DP with ID 0x2BA01477
Found SW-DP with ID 0x2BA01477
Scanning AP map to find all available APs
AP[2]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x24770011)
AP[1]: JTAG-AP (IDR: 0x02880000)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
Found Cortex-M4 r0p1, Little endian.
FPUnit: 6 code (BP) slots and 2 literal slots
CoreSight components:
ROMTbl[0] @ E00FF000
ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7
ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM
ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU
ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM
Cortex-M4 identified.
Halting CPU for downloading file.
Downloading file [/home/kevinweiss/WorkingDirectory/RIOT/examples/default/bin/ruuvitag/default.bin]...
Comparing flash   [100%] Done.
Verifying flash   [100%] Done.
J-Link: Flash download: Bank 0 @ 0x00000000: Skipped. Contents already match
O.K.

Reset delay: 0 ms
Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.



Script processing completed.

make: Leaving directory '/home/kevinweiss/WorkingDirectory/RIOT/examples/default'
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/9407#issuecomment-464034023
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190215/5f2ba12d/attachment-0001.html>


More information about the notifications mailing list