OpenOCD -WICED
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Different Interfaces supported in WICED
- Olimex connector
https://www.olimex.com/Products/ARM/JTAG/_resources/OpenOCD/
Driver installation for your pc or laptop is required in order to use the Olimex connector.
- Latest libUSB drivers for OpenOCD versions prior to 0.9.0 and IAR EW; these drivers are not suitable...
- Manual instalation of OpenOcd drivers for Windows 7.pdf
2. J-Link SEGGER debugger
https://www.segger.com/downloads/jlink/
3. CMSIS-DAP
Used on PSoC+434W kit
Pin out for Olimex and JLink
1) Olimex Pin out
2) J-Link SEGGER debugger pinout
Different configuration files for OpenOCD in the SDK :\Wiced-SDK\tools\OpenOCD
Olimex connector on WICED EVAL hardware
Sample connection to hardware on CYW943907AEVAL1F hardware.
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:
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:
- Subscribe to RSS Feed
- Mark Article as New
- Mark Article as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
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.
- Subscribe to RSS Feed
- Mark Article as New
- Mark Article as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
How do you change the jlink driver to libusb?
- Subscribe to RSS Feed
- Mark Article as New
- Mark Article as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Let me look into this with the apps team then get back to you.
- Subscribe to RSS Feed
- Mark Article as New
- Mark Article as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
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.
- Subscribe to RSS Feed
- Mark Article as New
- Mark Article as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
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
- Subscribe to RSS Feed
- Mark Article as New
- Mark Article as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
- How do you "change jlink driver to use libusb" for Windows
- Will this affect my other IDEs that use JLINK for other processors