• @fanoush,

    I have installed OpenOCD. running but with error

    pi@raspberrypi:~/opencd $ sudo openocd -f interface/raspberrypi-native.cfg -c "transport select swd; set WORKAREASIZE 0" -f target/nrf51.cfg
    Open On-Chip Debugger 0.10.0
    Licensed under GNU GPL v2
    For bug reports, read
    	http://openocd.org/doc/doxygen/bugs.html­
    BCM2835 GPIO nums: swclk = 25, swdio = 24
    0
    cortex_m reset_config sysresetreq
    adapter speed: 1000 kHz
    Info : BCM2835 GPIO JTAG/SWD bitbang driver
    Info : SWD only mode enabled (specify tck, tms, tdi and tdo gpios to add JTAG mode)
    Info : clock speed 1006 kHz
    Info : SWD DPIDR 0x013f9150
    Error: Could not initialize the debug port
    
    
    

    Another attempt:

    pi@raspberrypi:~/opencd $ sudo openocd -f r1.cfg
    Open On-Chip Debugger 0.10.0
    Licensed under GNU GPL v2
    For bug reports, read
    	http://openocd.org/doc/doxygen/bugs.html­
    BCM2835 GPIO nums: swclk = 25, swdio = 24
    BCM2835 GPIO nums: swclk = 25, swdio = 24
    cortex_m reset_config sysresetreq
    adapter speed: 1000 kHz
    none separate
    adapter_nsrst_delay: 100
    adapter_nsrst_assert_width: 100
    Info : BCM2835 GPIO JTAG/SWD bitbang driver
    Info : SWD only mode enabled (specify tck, tms, tdi and tdo gpios to add JTAG mode)
    Info : clock speed 1006 kHz
    Info : SWD DPIDR 0x00bdc150
    Error: Could not initialize the debug port
        TargetName         Type       Endian TapName            State       
    --  ------------------ ---------- ------ ------------------ ------------
     0* nrf51.cpu          cortex_m   little nrf51.cpu          unknown
    Info : SWD DPIDR 0x00000007
    Error: Could not initialize the debug port
    Error: Target not examined, reset NOT asserted!
    in procedure 'reset' called at file "r1.cfg", line 17
    in procedure 'ocd_bouncer'
    
    

    My config file is [r1.cfg]

    source [find interface/raspberrypi-native.cfg]
    transport select swd
    
    bcm2835gpio_swd_nums 25 24
    [#bcm2835gpio_srst_num](http://forum.esp­ruino.com/search/?q=%23bcm2835gpio_srst_­num) 18
    
    set CHIPNAME nrf51
    source [find target/nrf51.cfg]
    
    reset_config srst_nogate
    
    adapter_nsrst_delay 100
    adapter_nsrst_assert_width 100
    
    init
    targets
    reset
    reset halt
    poll
    

    Any advice?

About

Avatar for Abhigkar @Abhigkar started