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

cross mob

OpenOCD -WICED

OpenOCD -WICED

VikramR_26
Employee
Employee
25 sign-ins 10 sign-ins 10 comments on KBA

Different Interfaces supported in WICED

  1. Olimex connector

https://www.olimex.com/Products/ARM/JTAG/_resources/OpenOCD/

pastedImage_0.png

 

Driver installation for your pc or laptop is required in order to use the Olimex connector.

     2. J-Link SEGGER debugger

https://www.segger.com/downloads/jlink/

pastedImage_1.png

3. CMSIS-DAP

          Used on PSoC+434W kit

Pin out for Olimex and JLink

1) Olimex Pin out

pastedImage_2.png

pastedImage_3.png

2) J-Link SEGGER debugger pinout

pastedImage_4.png

Different configuration files for OpenOCD in the SDK  :\Wiced-SDK\tools\OpenOCD

pastedImage_23.png

Olimex connector on WICED EVAL hardware

Sample connection to hardware on CYW943907AEVAL1F hardware.

pastedImage_28.png

Connection between CYW43907AEVAL1F and On-board Programmer/Debugger

                  sl.no

CYW43907 Based SIP Pin Name

On-board Programmer/Debugger Connection

1

GPIO_2_JTAG_TCK

FTDI_JTAG_TCK

2

GPIO_3_JTAG_TMS

FTDI_JTAG_TMS

3

GPIO_4_JTAG_TDI

FTDI_JTAG_TDI

4

GPIO_5_JTAG_TDO

FTDI_JTAG_TDO

5

GPIO_6_JTAG_TRST_L

FTDI_JTAG_TRST

(Note: the reset line on this hardware needs to be pulled from J9.3)

Compile and download using WICED SDK

Create the following make target if using Olimex ARM-USB-TINY-H

The command for downloading the scan example app in ...\apps\snip\scan

For Olimex ARM-USB-TINY-H

     snip.scan-CYW943907AEVAL1F JTAG=Olimex_ARM-USB-TINY-H download run

For Segger J-Link

     snip.scan- CYW943907AEVAL1F JTAG=jlink download run

If you need to debug add the debug flag

(debug configuration is default in SDK, if not present follow the steps here:

(https://community.cypress.com/community/wiced-wifi/wiced-wifi-forums/blog/2014/05/09/creating-andor-...)

The command for downloading  and debugging the scan example app in ...\apps\snip\scan

For Olimex ARM-USB-TINY-H

     snip.scan- CYW943907AEVAL1F-debug JTAG=Olimex_ARM-USB-TINY-H download run

For Segger J-Link

     snip.scan- CYW943907AEVAL1F-debug JTAG=jlink download run

Reference:

https://community.cypress.com/community/wiced-wifi/wiced-wifi-forums/blog/2014/06/13/using-olimexseg...

4321 Views
Comments
MichaelF_56
Moderator
Moderator
Moderator
250 sign-ins 25 comments on blog 10 comments on blog

Note; If you are struggling to correctly download onto the CYW943907AEVAL1F with Segger JLINK, you may need to make the following changes:

1. Change jlink driver to libusb (internally, Zadig was used)

2. Add the line below to /tools/OpenOCD/jlink.cfg

reset_config trst_and_srst srst_push_pull

If you continue to have problems, then the openocd_log.txt file within the build directory contains more information on the failure.

Anonymous
Not applicable

How do you change the jlink driver to libusb?

MichaelF_56
Moderator
Moderator
Moderator
250 sign-ins 25 comments on blog 10 comments on blog

gpeyton_2923021

Let me look into this with the apps team then get back to you.

MichaelF_56
Moderator
Moderator
Moderator
250 sign-ins 25 comments on blog 10 comments on blog

I checked with vikr​ and he confirmed that on the Mac, there is no libusb or libwin32 and that this step is only needed for Windows.

SaGa_2657031
Level 1
Level 1

Hi Guys,

Following the above steps. I am able to enter debugging using Segger j-link. The debugging come and stops at main. However now if i resume, the next breakpoint set by me in the code is not hit. Need help in resolving this issue.

Thanks & Regards,

Sandeep

NaFi_2915566
Level 3
Level 3
First like received First like given
  1. How do you "change jlink driver to use libusb" for Windows
  2. Will this affect my other IDEs that use JLINK for other processors