Forums - Openocd version must be 2017-06-09?

2 posts / 0 new
Last post
Openocd version must be 2017-06-09?
tishihara
Join Date: 26 Apr 19
Posts: 5
Posted: Mon, 2019-04-29 11:11

I try to flash Helloworld_demo to QCA4024, but I got -dap parameter error

/cygdrive/c/Users/username/qca4020-or-3-0_qca_oem_standard-sdk024-cdb.git/target/quartz/demo/Helloworld_demo/build/gcc

$ ./flash_openocd.bat

Open On-Chip Debugger 0.10.0 (2019-02-10) [https://github.com/sysprogs/openocd]

Licensed under GNU GPL v2

For bug reports, read

        http://openocd.org/doc/doxygen/bugs.html

adapter speed: 5000 kHz

embedded:startup.tcl:24: Error: target requires -dap parameter instead of -chain-position, see http://visualgdb.com/support/chainposition

in procedure 'script'

at file "embedded:startup.tcl", line 63

 
Do I have to use openocd 2017-06-09 ?

Do you know how to get openocd 2017-06-09 ?

I set QCA4024 with JTAG flashing jumper setting.

PC-USB connect to J85. USB power connect to J6. 
 
  • Up0
  • Down0
jesse
Join Date: 22 Aug 17
Posts: 22
Posted: Fri, 2019-05-31 09:20

You have to fix the OpenOCD config file to use newer versons

In the QCLI_demo app I had to change qca402x_openocd.cfg 

#target create $_TARGETNAME cortex_m -chain-position $_TARGETNAME
 
dap create $_CHIPNAME.dap -chain-position $_TARGETNAME
target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap
 
  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.