Troubleshooting; Understanding The Role Of Openocd; Openocd Log - Laird LSR STERLING-LWB STM Quick Start Manual

Table of Contents

Advertisement

4. Troubleshooting

4.1 Understanding the Role of OpenOCD

WICED Studio depends on several tools that are bundled as part of the '43xxx_Wi-Fi' folder installed on
your system. One of the important tools is OpenOCD which is used to communicate with target
hardware for programming and debugging operations.
OpenOCD is located in the '43xxx_Wi-Fi/tools/OpenOCD' folder and provides not only binaries for
several platforms but also .cfg and .tcl files that control the programming process. These files are used
to inform OpenOCD how to perform each step during the programming and debugging process and are
very specifically provided for only certain target MCUs and JTAG adapters. If you are using a platform
that is not listed in the .cfg files bundled with the OpenOCD utility inside the WICED SDK, you will need
to provide .cfg files and .tcl scripts that work for your platform.
The Sterling-LWB utilizes the BCM9WCD1EVAL1.cfg file for the JTAG adapter definitions and
stm32f4x.cfg for board configuration. These files are chosen for you automatically when your build
string is set to use the LSRSTERLING_00950 platform; no modifications to these files are necessary.
If you prefer to program the MCU from the command line, you can take a look at the make targets
defined in '43xxx_Wi-Fi/tools/Makefiles/standard_platform_targets.mk' to get an idea of how the
command line arguments are being sent to the OpenOCD executable. If you execute these command
lines from the 43xxx_Wi-Fi folder, you can perform programming operations outside of WICED Studio
which is useful for situations like manufacturing processes where you don't want to install the entire
WICED Studio package to perform a programming operation.

4.2 OpenOCD Log

During a build and download process initiated in WICED Studio by double-clicking a make target, several
files are output into the '43xxx_Wi-Fi/build' folder. One file that is particularly useful for debugging
problems with JTAG programming is the '43xxx_Wi-Fi/build/openocd_log.txt' file. This file provides a full
dump of all steps that were attempted during the programming process and can be useful for tracking
down issues. Check here first if you have trouble programming your board.
The information in this document is subject to change without notice.
330-0234-R1.2
Copyright ©2016-2017 LSR
Sterling-LWB STM Expansion Board
USER GUIDE
Page 16 of 25

Advertisement

Table of Contents
loading

Table of Contents