Table of contents
1 Introduction .......................................................................................................................... 5
1.1 Overview .................................................................................................................................................. 5
1.2 Supported OS .......................................................................................................................................... 5
1.3 Supported devices .................................................................................................................................. 5
1.4 PAG2SSupported hardware (probes) ..................................................................................................... 5
1.5 Installation ............................................................................................................................................... 6
1.6 Error codes .............................................................................................................................................. 6
2 Getting started ...................................................................................................................... 7
2.1 Connect the device .................................................................................................................................. 7
2.2 List the connected targets ...................................................................................................................... 7
2.3 Program the PSoC™ 6 MCU target .......................................................................................................... 8
2.4 Program the PSoC™ 64 "Secure Boot" MCU target ................................................................................ 9
2.5 Program the PSoC™ 4 MCU target .......................................................................................................... 9
2.6 Program the device using the configuration file only ............................................................................ 9
2.7 Program the device using the configuration file and command line .................................................... 9
2.8 Remote debugging of PSoC™ 6 MCU target ......................................................................................... 10
3 Supported target configurations ............................................................................................. 12
4 Command-line options ........................................................................................................... 13
4.1 --file (-f) .................................................................................................................................................. 13
4.2 --search (-s) ............................................................................................................................................ 14
4.3 --command (-c) ...................................................................................................................................... 14
4.4 --debug (-d) ............................................................................................................................................ 14
4.5 --log_output (-l) ..................................................................................................................................... 15
4.6 --help (-h) ............................................................................................................................................... 15
4.7 --version (-v)........................................................................................................................................... 15
5 OpenOCD commands overview ............................................................................................... 16
6 OpenOCD commands description ............................................................................................ 18
6.1 General OpenOCD commands .............................................................................................................. 18
6.2 KitProg3/MiniProg4 driver commands ................................................................................................. 34
6.3 Flash driver commands ......................................................................................................................... 36
6.4 cmsis_flash flash driver commands ..................................................................................................... 41
6.5 Other commands ................................................................................................................................... 42
6.6 CYW4390x commands ........................................................................................................................... 43
6.7 AIROC™ CYW20829 Wi-Fi & Bluetooth® combo chip commands ......................................................... 44
7 Global variables .................................................................................................................... 45
7.1 PSoC™ 6 MCU global variables .............................................................................................................. 45
7.2 PSoC™ 4 MCU global variables .............................................................................................................. 46
7.3 AIROC™ CYW20829 Wi-Fi & Bluetooth® combo chip global variables.................................................. 46
7.4 XMC7xxx and TRAVEO™ T2G global variables ....................................................................................... 47
8 Usage examples .................................................................................................................... 49
8.1 Erase main flash rows 0…10 of PSoC™ 6 MCU ..................................................................................... 49