This blog dicusses the download procedure on CYW43907 using external JTAG device - Jlink Segger in WICED SDK 6.2 and future releases.  Blog Downloading and debugging CYW43907 using Jlink Segger is valid only for SDKs prior to WICED SDK 6.2.

 

The hardware connections to connect CYW943907AEVAL1F's JTAG with j-link are tabulated below:

 

CYW943907AEVAL1F

Segger jlink

Signal

Pin

Signal

Pin

3v3

J9_04

VTref

1

GPIO_6_JTAG_TRST_N

J3_01

nTRST

3

Ground

J3_04

GND

4

GPIO_4_JTAG_TDI

J3_03

TDI

5

GPIO_3_JTAG_TMS

J3_07

TMS

7

GPIO_2_JTAG_TCK

J3_09

TCK

9

GPIO_5_JTAG_TDO

J3_05

TDO

13

RESET_N

J9_03

RESET

15

The switches in SW4 on CYW943907AEVAL1F need to be closed to use an external JTAG. (By default the switches are open)

 

 

To Download the application, we need J-Link tool: Please download J-Link tool from SEGGER website and install it. As CYW4390x was not a part of the supported devices list of SEGGER J-LInk, we need to make use of flashloader tool from SEGGER to drive the sflash of CYW4390x. Please copy flashloader_CYW4390x_QSPI.elf as attached here to the Devices/Cypress/ folder in Segger Installation directory (should look something like this: C:\Program Files (x86)\SEGGER\JLink_V640\Devices\Cypress). Modify JLInkDevices.xml in the same directory for adding CYW4390x in support list.

<<JLinkDevices.xml>>

    ********************************************************************

      <Device>

        <ChipInfo Vendor="Cypress" Name="CYW43907" Core="JLINK_CORE_CORTEX_R4" WorkRAMAddr="0x004A0000" WorkRAMSize="0x00100000" JLinkScriptFile="Devices/Broadcom/BCM43907.JLinkScript" />

        <FlashBankInfo Name="QSPI Flash" BaseAddr="0x14000000" MaxSize="0x08000000" Loader="Devices/Cypress/flashloader_CYW4390x_QSPI.elf" LoaderType="FLASH_ALGO_TYPE_OPEN" />

      </Device>

    ********************************************************************

 

 

For programming the image via J-Link connector, the JLink path need to be declared in WICED build string. Add the path of JLink.exe from the downloaded J-Link tool.

 

Example: For downloading test.console application, make the target as follows

test.console-CYW943907AEVAL1F JTAG=jlink-native  JLINK_PATH="C:/Program\ Files\ \(x86\)/SEGGER/JLink_V630c/" JLINK_EXE="JLink.exe" download run

 

To debug through J-Link, you need to create your own J-Link debug configuration in WICED Studio, details about which can be found out in the attached document.