Skip to content

Commit 8141157

Browse files
dey-rfabiobaltieri
authored andcommitted
west flash: openocd: support using modustoolbox added
User guide is updated with support for OPenOCD using ModusToolbox Signed-off-by: Ritwika Dey <[email protected]>
1 parent e26d018 commit 8141157

File tree

4 files changed

+43
-4
lines changed

4 files changed

+43
-4
lines changed

boards/arm/cy8ckit_062_ble/doc/index.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,18 @@ USB-UART Bridge working as a serial console interface. SCB6 to P13_0, P13_1
132132
pins on the J3 of the Arduino Uno R3 compatible PSoC6 I/O header for general
133133
purposes.
134134

135+
OpenOCD Installation
136+
====================
137+
138+
To get the OpenOCD package, it is required that you
139+
140+
1. Download the software ModusToolbox 3.1. https://softwaretools.infineon.com/tools/com.ifx.tb.tool.modustoolbox
141+
2. Once downloaded add the path to access the Scripts folder provided by ModusToolbox
142+
export PATH=$PATH:/path/to/ModusToolbox/tools_3.1/openocd/scripts
143+
3. Add the OpenOCD executable file's path to west flash/debug.
144+
4. Flash using: west flash --openocd path/to/infineon/openocd/bin/openocd
145+
5. Debug using: west debug --openocd path/to/infineon/openocd/bin/openocd
146+
135147
Programming and Debugging
136148
*************************
137149

boards/arm/cy8ckit_062_wifi_bt/doc/index.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,19 @@ SCB6 are configured. SCB5 is connected to the onboard KitProg2's USB-UART
118118
Bridge, SCB6 to P12_0, P12_1 pins on the J3 of the Arduino Uno R3 compatible
119119
PSoC6 I/O header.
120120

121+
OpenOCD Installation
122+
====================
123+
124+
To get the OpenOCD package, it is required that you
125+
126+
1. Download the software ModusToolbox 3.1. https://softwaretools.infineon.com/tools/com.ifx.tb.tool.modustoolbox
127+
2. Once downloaded add the path to access the Scripts folder provided by ModusToolbox
128+
export PATH=$PATH:/path/to/ModusToolbox/tools_3.1/openocd/scripts
129+
3. Add the OpenOCD executable file's path to west flash/debug.
130+
4. Flash using: west flash --openocd path/to/infineon/openocd/bin/openocd
131+
5. Debug using: west debug --openocd path/to/infineon/openocd/bin/openocd
132+
133+
121134
Programming and Debugging
122135
*************************
123136

boards/arm/cy8cproto_062_4343w/doc/index.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,15 @@ Here is an example for the :ref:`blinky-sample` application.
111111
OpenOCD Installation
112112
====================
113113

114-
You must download `Infineon OpenOCD`_ from Github to flash and debug.
115-
Extract the files and note the path.
114+
To get the OpenOCD package, it is required that you
115+
116+
1. Download the software ModusToolbox 3.1. https://softwaretools.infineon.com/tools/com.ifx.tb.tool.modustoolbox
117+
2. Once downloaded add the path to access the Scripts folder provided by ModusToolbox
118+
export PATH=$PATH:/path/to/ModusToolbox/tools_3.1/openocd/scripts
119+
3. Add the OpenOCD executable file's path to west flash/debug.
120+
4. Flash using: west flash --openocd path/to/infineon/openocd/bin/openocd
121+
5. Debug using: west debug --openocd path/to/infineon/openocd/bin/openocd
122+
116123

117124
Programming and Debugging
118125
*************************

boards/arm/cy8cproto_063_ble/doc/index.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,15 @@ system clock are provided in the SOC, depending on your system requirements.
7373
OpenOCD Installation
7474
====================
7575

76-
You must download `Infineon OpenOCD`_ from Github to flash and debug.
77-
Extract the files and note the path.
76+
To get the OpenOCD package, it is required that you
77+
78+
1. Download the software ModusToolbox 3.1. https://softwaretools.infineon.com/tools/com.ifx.tb.tool.modustoolbox
79+
2. Once downloaded add the path to access the Scripts folder provided by ModusToolbox
80+
export PATH=$PATH:/path/to/ModusToolbox/tools_3.1/openocd/scripts
81+
3. Add the OpenOCD executable file's path to west flash/debug.
82+
4. Flash using: west flash --openocd path/to/infineon/openocd/bin/openocd
83+
5. Debug using: west debug --openocd path/to/infineon/openocd/bin/openocd
84+
7885

7986
Fetch Binary Blobs
8087
******************

0 commit comments

Comments
 (0)