How to debug CYW920706WCDEVAL using Olimex ARM-USB-TINY-H

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
AlCa_4315221
Level 1
Level 1

Hello,

I'm trying to use GDB with ARM-USB-TINY-H (I'm new to openocd).

A test application is compiled with the following flags:

C_FLAGS += -DDEBUG

C_FLAGS += -DSWD_CLK=SWDCK_ON_UART_TXD

C_FLAGS += -DSWD_IO=SWDIO_ON_UART_RXD

The setting I have is:

ARM-USB-TINY-H <-> Ida fruit coretex SWD adapter <-> J27 on CYW920706WCDEVAL

I pull out all jumpers from J26. Then I followed the steps (Hardware Debugging for CYW207xx and CYW208xx - https://www.cypress.com/file/462726/download) but it didn't work. I made some configuration changes (e.g. from "adapter_khz 10000" to "adapter_khz 1000", from "set _DAP_TAPID 0x2ba01477" to "set _DAP_TAPID 0x4ba00477") but it still does not work.

------------------------------------

configuration files and openocd cmd line

------------------------------------

openocd-2.1$ cat scripts/board/CYW920706WCDEVAL.cfg

# CYW920706WCDEVAL kit

adapter_khz 1000

source [find interface/ftdi/olimex-arm-usb-tiny-h.cfg]

source [find interface/ftdi/olimex-arm-jtag-swd.cfg]

set CHIPNAME CYW20706A2

source [find target/CYW20706A2.cfg]

openocd-2.1$ cat scripts/target/CYW20706A2.cfg

# CYW20706A2

source [find target/swj-dp.tcl]

if { [info exists CHIPNAME] } {

    set _CHIPNAME $CHIPNAME

} else {

    set _CHIPNAME CYW20706A2

}

# Main CPU DAP

if { [info exists DAP_TAPID] } {

    set _DAP_TAPID $DAP_TAPID

} else {

    set _DAP_TAPID 0x4ba00477

}

global TARGET

set TARGET $_CHIPNAME.cpu

swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf

dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu

# Cortex M3

target create $TARGET cortex_m -endian little -dap $_CHIPNAME.dap

openocd-2.1$ ./bin/openocd -s scripts/ -f scripts/board/CYW920706WCDEVAL.cfg

Open On-Chip Debugger 0.10.0+dev-2.1.0.99 (2019-02-01-13:19)

Licensed under GNU GPL v2

For bug reports, read

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

adapter speed: 1000 kHz

Info : FTDI SWD mode enabled

CYW20706A2.cpu

Info : Listening on port 6666 for tcl connections

Info : Listening on port 4444 for telnet connections

Info : clock speed 1000 kHz

Error: DAP 'CYW20706A2.cpu' initialization failed (check connection, power, etc.)

------------------------------------

Does anyone have a known-working configuration for CYW920706WCDEVAL?

0 Likes
1 Solution
SheetalJ
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 500 likes received

Hi,

Can you please refer 05.Debugging chapter in CypressAcademy_WBT101_Files/Labmanual at master · cypresssemiconductorco/CypressAcademy_WBT101_Files... for now?

I will check for the configurations required for CYW920706WCDEVAL and update you soon.

View solution in original post

2 Replies
SheetalJ
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 500 likes received

Hi,

Can you please refer 05.Debugging chapter in CypressAcademy_WBT101_Files/Labmanual at master · cypresssemiconductorco/CypressAcademy_WBT101_Files... for now?

I will check for the configurations required for CYW920706WCDEVAL and update you soon.

Thank you for the reply! I didn't add ARM-JTAG-SWD before. It works now.

0 Likes