Openocd Program Command

c" file; a liker script - "stm32_minimal. The environment was compound of Eclipse, Zylin extension (to make debugging from Eclipse possible, OpenOCD (to communicate with the device) and GNU ARM Embedded. This is not. shutdown command invoked. This guide includes basic information about using the Ubuntu command line interface, the terminal window. The lion kingdom used just the program counter & the symbol table from nm|sort, but a sane human might use gdb. 0 and simulink Generally try to run OpenOCD from the command line "- standalone" then let. 0 software with several Cypress enhancements. JTAG and OpenOCD. The FT2232HL is dual high-speed USB to UART/FIFO device, and similar FTDI devices are used on many boards as UART to USB converters. The Bus Pirate is supported as a JTAG programmer/debugger by OpenOCD. The first command, reset init resets the MCU and brings it under the control of OpenOCD. NOTE: This unset command is optional, but perhaps necessary if you have been using cross compilers from the command line. Feichtner November 22, 2015 at 12:46 pm. Programs are loaded onto the Bluepill with a separate hardware programmer such as the STLink v2 board, using the openocd command line utility program to. You can send commands to OpenOCD through GDB just like you can through a telnet connection. OpenOCD will handle J-Link as a simple sequence generator which will affect the debug performance. The GNU MCU Eclipse OpenOCD subproject is a new distribution of OpenOCD, customised for a better/more convenient integration with the GNU ARM OpenOCD Debugging plug-in. 0 rc1and a Jlink. e"-postfixed versions) simply skip bad blocks As opposed to using fixed NAND flash addresses, we can use the mtd partition names. hex verify reset exit" I got this output. axf This will open up gdb for arm-none-eabi with a target file called. Spen's Official OpenOCD Mirror (no pull requests). OpenOCD is an open on-chip debugger and progamming tool. I wanted to use OpenOCD program to that but I have a few problems. In that directory, simply type openocd To run the program. What is the command to run my c++ program? Lucy. cfg Which opens a GDB server on port 3333. If you don't have the svn command on your system install the subversion package using your favorite package manager. 6) That output looks fine. This is the beginning of the second part of his documentation which involves code dumping and stepping through lines code (or instructions) using OpenOCD and GDB. Running OpenOCD on Windows on Tin Can Tools | OpenOCD provides a command line interface for interacting with embedded devices. 0 interface which can be connected to FPGA IC’s JTAG signals. I would like to program the flash of the stm32F7xx via openocd (this procedure is really straightforward for the previous stm32F4xx). The complete tutorial for Stellaris LaunchPad development with GNU/Linux (III) We set-up the toolchain and built StellarisWare libraries and lm4flash tool. Press "Test selected OpenOCD settings" in the VisualGDB project wizard to verify your settings: If you are familiar with OpenOCD internals and would like to tweak the startup commands or the command line, use the Advanced Settings view to edit them directly: Press "finish" to close the wizard. Once OpenOCD is running on your computer you will need to connect to it through another program, such as tel. Getting started guide:. $ openocd --command "tcl_port disabled"--command "telnet_port disabled" If the configuration file is not in the current work directory, we can specifiy it in the command line 1. JTAG and OpenOCD. 0 with the FTDI2232H. This is the pre-built file provided with STM32Cube_FW_F4_V1. Debug with OpenOCD. exe for me when I begin a debug session?. Otherwise, you’ll have to repeat it every time. I can compile (with mbed-cli) and launch both openocd and GDB servers from a command line so I am pretty sure my desktop is configured properly. Using OpenOCD as just a programmer instead of a debug tool is very convenient in cases of mass production where you already have a prebuilt and already debugged image and you only need to download that image to the target device. Then switch to gdb and run the "load" command in order to program the memory manually. In this article, we learn more about how to use a SEGGER J-Link with Eclipse and OpenOCD for JTAG debugging the ESP32, looking at an example project. Run OpenOCD. I have programmed the board using ISP using a hex file and "FlashMagic" with no problems It seems the first section of memory interrupt vectors up to 0x3f is being programmed with some other information. To see the complete list of interfaces that your version of OpenOCD supports, use this command: >openocd -c interface_list. Start by issuing a halt command; this will stop program-execution on the discovery board. I have 3 buttons connected to the MK20 and would like each to enable / disable the virtual CTS, DSR and DCD lines. In reality, a configuration file is just a series of commands; for example you can select JTAG operation using the command-line option: openocd -c "transport select jtag" This is exactly the same as: openocd -f select_jtag. 1 command-line interface (CLI) is based on the Open On-Chip Debugger (OpenOCD) project. Open Command Prompt or PowerShell in "bin-x64" folder which is located inside "openocd" folder. Program command issues reset init so MCU is left halted without an extra command to resume/reset run > * When pressing the reset button while debugging, OpenOCD cannot > catch up again. 0_softdevice. But right now I recomend to use Insight, that is a quite nice little gdb frontend. Any ideas why openocd is not launching?. OpenOCD provides a command line interface for interacting with embedded devices. If I close OpenOCD with a Ctrl-C, the pin stays high and the microcontroller operates normally. The program. This launches our OpenOCD/gdb server which we'll need to connect to using telnet. You can place it inside of the openocd/bin. The targets are interfaced using JTAG (IEEE 1149. GALEP-5 is especially well suited as an interface for OpenOCD due to its on-board ARM Linux system. This article shows how to use a $10 FTDI board as a JTAG interface to program and debug the Espressif ESP32. Compiling OpenOCD. -dev-00117-ga652a4e (2015-11-21-13:20) Licensed under GNU GPL v2. You should see the program open within a few seconds of entering the command. In that directory, simply type openocd To run the program. Download the The GNU ARM Eclipse OpenOCD which is basically a compiled and hassle-free binary of the latest OpenOCD source from here. Then enter "target remote :3333" in the gdb command prompt in order to connect to OpenOCD: Locate the FLASH driver for your device family (e. sudo apt-get remove openocd. STM targets; To connect to the Lisa/L board run the command openocd -f interface/lisa-l. cfg Open On-Chip Debugger. Procedure to install OpenOCD using prebuilt software packages for Windows, Linux and MacOS operating systems. "MCUXpresso IDE GUI flash programmer" also cannot be used in command line. when I use that the command. 9 which is described with this: New hla_serial command to distinguish between several HLA adapters attached to a single machine; Using this feature enables you to select the debugger with its serial number in the OpenOCD configuration file. OpenOCD will use the specified configuration file for STM32F4 Nucleo boards and execute the given commands to transfer the ARM program corresponding to STM32F4Test. It does so with the assistance of a debug adapter, which is a small hardware module which helps provide the right kind of electrical signaling to the target being debugged. exe command i obtaion the following : C:\Program Files\OpenOCD\0. OpenOCD opens up debug level development with GDB and GNU tools, but the current stable version does not have Launchpad support. cfg & $ telnet localhost 4445. Because GDB is working with OpenOCD, the GDB command line debugging capabilities are great for anyone who does not want to use an IDE (at least not all the time ;-). This example involves the following five files: an application source file - "main. Start by doing a fresh sudo apt-get update this will make sure you have the latest packages and repository set up. I get the same in my command line. In Eclipse, we firstly need to setup OpenOCD as an external program. elf Espressif !8 /!16 2017. OpenOCD supports many different types of JTAG interfaces/programmers. Toolchain Setup. 0 (2010-02-22-19:05). The command line consists of configuration files prefixed by -f, and commands prefixed by -c. The easiest way to connect is creating a new directory in your home dir. The openocd is failed to find jlink. (gdb) monitor arm semihosting enable semihosting is enabled You can see all the OpenOCD commands by invoking the monitor help command. User interaction is realized through a telnet command line interface, a gdb (the GNU debugger) remote protocol server, and a simplified RPC connection that can be used to interface with OpenOCD's Jim Tcl engine. Tweak the command line options until you get the right behaviour, and then retry the same options with the plug-in. When the program is halted in the OpenOCD window, as the screenshot below shows, and the terminal stops printing, it means that the OpenOCD is invoked. elf, verify the transferred binary, reset the microprocessor so that the program starts from the beginning, and exit execution after closing its connection to the board. Step 5: Use the following command in Command Prompt or PowerShell to program FPGA. Mac or Linux Terminal:. gdb supports debugging multithreaded programs, and OpenOCD can inform gdb of various processes running on the target hardware by mapping them as threads. most people will be using gdb as the backend debugger and possible eclipse/insight as a gui. Posted on October 13, 2017 at 18:16. exe), enter the path and name of the OpenOCD executable, -s and the path to the scripts, enter one or more -f followed by the path to the specific configuration class and. This is the pre-built file provided with STM32Cube_FW_F4_V1. 1) compliant hardware, but this may be extended to other con-nection types in the future. In the new window enter $ telnet 127. In this article, we learn more about how to use a SEGGER J-Link with Eclipse and OpenOCD for JTAG debugging the ESP32, looking at an example project. Documents [FAQ] : Example project which creates a communication between SPI1 and SPI2 over ports of P1 and P2 (sigma studio) in ADSP-SC589 EZKIT. php on line 143 Deprecated: Function create_function() is. Build and flash your TinyGo program using tinygo flash like this: tinygo flash -target=microbit [PATH TO YOUR PROGRAM] The micro:bit should restart and begin running your program. I have programmed the board using ISP using a hex file and "FlashMagic" with no problems It seems the first section of memory interrupt vectors up to 0x3f is being programmed with some other information. The connector is a 6-pin micro-jst connector with 2mm pitch, which easily can be found by searching on ebay. openocd -f board\st_nucleo_f3. apt-get install openocd. Insert the JTAG module into the Io making sure GND pins are aligned. (gdb) kill - Terminates the program. Building OpenOCD from Sources Procedure to build OpenOCD from sources for Windows, Linux and MacOS operating systems. With change set #2778 you. When the program is halted in the OpenOCD window, as the screenshot below shows, and the terminal stops printing, it means that the OpenOCD is invoked. The lion kingdom used just the program counter & the symbol table from nm|sort, but a sane human might use gdb. Because I don't have any J-link or Atmel programmer I used to program my boards with Raspberry Pi and OpenOCD by this tutorial. The current GDB session will. out file and start arm-none-eabi-gdb, which is part of the GNU Arm Embedded Toolchain: arm-none-eabi-gdb HelloWorld_RTApp_MT3620_BareMetal. Invoking OpenOCD • Process configuration commands provided on the CLI. It can perform Program, Erase, Verify, and Read operations on the flash of the target device. nRF52832: first steps with ST-Link V2 and openocd Connecting with telnet the command 'help' tells the change of the erasing command. cfg -f config3. I'm running OS X 10. The only required parameter is filename , the others are optional. If you are already proficient with…. In that directory, simply type openocd To run the program. If you want generic system that works with all versions of gdb then use openocd to program, and not gdb via load. cfg" : #daemon configuration telnet_port 4444 gdb_port 3333 #interface interface parport parport_port 0x378 parport_cable wiggler shutdown when I write in the console window openocd. Of course, you have to pre-build OpenOCD program with support this interface. Any idea what should I do? From the command line:. Open a terminal and navigate to the openocd/bin/ folder (tip: open the folder from the explorer and in the path bar type "cmd", a command prompt opens located on the folder directly). -dev-00117-ga652a4e (2015-11-21-13:20) Licensed under GNU GPL v2. I have been trying to get GCC to work with the. Program command issues reset init so MCU is left halted without an extra command to resume/reset run > * When pressing the reset button while debugging, OpenOCD cannot > catch up again. While I'm trying to upload my code, the VScode show me that openocd init failed. Then execute the following commands in the OpenOCD trunk directory. Configuring ESP32 Target Configuration of OpenOCD software and set up JTAG adapter hardware that will make together a debugging target. svf" with the actual location of your. I wanted to use OpenOCD program to that but I have a few problems when I use that the command openocd -f interface/stlink. On success, OpenOCD starts running as daemon. Navigate to the folder containing openocd. cfg and all other. C:\Program Files). cfg -f target/stm32f1x. After setting up the ESP32 toolchain and confirming regular GDB debugging is working as described in my previous post, now it is time to configure VSCode for remote debugging of the ESP32. If neither command worked as a normal user then try to run them with root permission (e. Following the instructions I start the openocd server ('openocd -f openocd. /configure command with the directory you extracted libftd2xx to. The OpenOCD server provides a GDB server interface on :3333. The current GDB session will. They also sell it at minimal cost. — Config Command: flash bank name driver base size chip_width bus_width target [driver_options] Configures a flash bank which provides persistent storage for addresses from base to base + size - 1. Running OpenOCD on Windows on Tin Can Tools | OpenOCD provides a command line interface for interacting with embedded devices. I wanted to use OpenOCD program to that but I have a few problems when I use that the command openocd -f interface/stlink. File Exchange; Support; Close Mobile Search. OpenOCD is an on-chip debugging, in-system programming and boundary-scan testing tool for ARM and MIPS systems. 04 18 Sep 2014. It worked as expected. Of course, you have to pre-build OpenOCD program with support this interface. If user types CTRL-C or kills OpenOCD, either the command shutdown or its replacement will be automatically executed before OpenOCD exits. Mac or Linux Terminal:. Next time I will use GDB to debug the program by attaching to OpenOCD built-in GDB server. arm-none-eabi-insight --eval-command="target remote localhost:3333" main. openocd is a telnet/gdb server, so supports any debugger that uses the gdb server interface. $ openocd -f. OpenOCD now supports TI’s stellaris launchpad. But if you are looking for a 'zero cost' solution, then OpenOCD is the way to go, if you are ok with the slow speed of OpenOCD with CMSIS-DAP. The console application I want to run is compiled from visual studio. Whether you try to use the LPC-link2 to program the LPC824-MAX board via the MCUXpresso IDE, if not, please give a try. The only component you may want to purchase is the inexpensive ST-LINK/V2 JTAG programmer/debugger described below. The launch. Connect to it using SSH and run the following command:. The 1st task of your program is configuring the clock. The easiest way to connect is creating a new directory in your home dir. Hi, Which board are you using? Did you update your System Workbench IDE after installing (Help >> Check for updates)? The installer is only updated a few times a year, while updates are available on a more frequent basis. from the command line using the system-config-users command. We'll open a new terminal window or SSH connection on the Pi and run this command to connect to OpenOCD:. Telemetry & Command Program listed as TCP. but when im using it for drscan or irscan command it wont work. I'm trying to upload the Arduino Zero bootloader with Atmel-ICE and openocd command line. In Eclipse, we firstly need to setup OpenOCD as an external program. I have been debugging successfully on the Core with an Olimex-arm-usb-tiny-h (also FTDI based), using openocd 0. Documents [FAQ] : Example project which creates a communication between SPI1 and SPI2 over ports of P1 and P2 (sigma studio) in ADSP-SC589 EZKIT. Open a (new) command prompt window and type: telnet localhost 4444. Keď sa objavila ponuka Stellaris LaunchPad LM4F120XL za nejakých 5 dolárov, neodolal som. The program. You can see a list of common OpenOCD commands here. OpenOCD has different commands for NOR and NAND flash; the “flash” command works with NOR flash, while the “nand” command works with NAND flash. When done, it switches to the so called run state. cfg file: source [find interface/stlink-v2. I am trying to use the program command in openocd-0. We have great success with FT2232H-based debuggers; we have one of these chips on board the devboard I used for the NES port and we use Tiao USB-JTAG boards for the rest. FTDI JTAG Connection. cfg -c "firmware Ice1000_firmware. Navigate to the directory containing your openocd executable. Otherwise, you’ll have to repeat it every time. and here is the OpenOCD log: (the program does run and the led. I have OpenOCD installed and set up correctly. This article shows how to use a $10 FTDI board as JTAG interface to program and debug the Espressif ESP32. Using OpenOCD and GDB That command should return something like this: This blog is a walk-though using the Visual Micro Arduino IDE in Visual Studio 2019 to. In the gdb script (to connect to openocd) i set a hardware breakpoint (with hbreak main), and a continue command >THIS IS THE OPENOCD SCRIPT:. Open a Command Prompt or Terminal window and cd into the openocd directory, then cd into the version-specific directory. Run the OpenOCD GDB server with the following command and leave it running. Navigate to the directory containing your openocd executable. i can run scan_chain command via my tcl application. elf erase 0x100000`, the execution consistently. 4) That's normal. Once your command resembles start program_name, doing so will run the "start" command for your selected program. Fork of OpenOCD. Insert the JTAG module into the Io making sure GND pins are aligned. c for STM32F4) and set a breakpoint in the erase function. -dev-141103193059. The transport must be supported by the debug adapter hardware and by the version of OpenOCD you are using (including the adapter's driver). 0/tcl in the command terminal and run OpenOCD as above. Millions of people use XMind to clarify thinking, manage complex information, run brainstorming and get work organized. Debugging is a very useful tool when working with Microcontrollers. I’ve downloaded the local IDE but there is nothing in there for using this. Very cheap. For whatever reason, the openocd server session is not launching. cd ~ mkdir bootloader cd bootloader. 0 manual is to shut down OpenOCD after the program command has been executed, which is why we were seeing this difference between 0. They also sell it at minimal cost. Hello, I tried to upload a binary file to arm without success. As can be seen, the Eclipse + GNU ARM Eclipse plugin + GNU ARM Embedded toolchain + pyOCD, OpenOCD support developers to develop applications for the VBLUno51 board easily. I assume that the almost exact same procedure can be applied to linux. Running Commands on Startup: the -c Flag. Then enter "target remote :3333" in the gdb command prompt in order to connect to OpenOCD: Locate the FLASH driver for your device family (e. It accepts connections from other programs, but does not provide any means for you to give it commands directly. Steps to start up a debug session with GDB from Eclipse and from Command Line. For anyone out there with a D10 Mini Xplained, you can make it into a programmer/debugger by removing R110/R111/R112 and take the signal to your off-board D20/D09/etc. elf erase 0x100000`, the execution consistently. If I close OpenOCD with a Ctrl-C, the pin stays high and the microcontroller operates normally. We’ll open a new terminal window or SSH connection on the Pi and run this command to connect to OpenOCD:. This way the GDB server inside OpenOCD will not handle the command himself, but pass it on to the native OpenOCD deamon. If properly configured, OpenOCD can even provide some measure of RTOS integration. Hi, I have an hardware with a stm32F7xx and an FTDI chip (4232) that controls the JTAG. I created openocd. After flashing on chip it is working properly. cfg -f target/stm32f1x. cfg Which opens a GDB server on port 3333. In a different Azure Sphere Developer Command Prompt window, navigate to the folder that contains the application. The easiest way to do this is to use getopt to parse them. Debugging Examples If you are not familiar with GDB, check this section for debugging examples provided from Eclipse as well as from Command Line. As can be seen, the Eclipse + GNU ARM Eclipse plugin + GNU ARM Embedded toolchain + pyOCD, OpenOCD support developers to develop applications for the VBLUno51 board easily. Still don't know how to reset the firmware. Example program. I have tested this by connecting to my ST-Link from OpenOCD using terminal (it flashes red and green on an LED when its connected to). cfg]; transport select. Running Commands on Startup: the -c Flag. Create OpenOCD config. I have tried the "program" command as well as the "flash image_write" command and nothing seems to work. GDB - OpenOCD - Floss JTAG. Posted on November 14, 2015 at 12:13. Hi, I have an hardware with a stm32F7xx and an FTDI chip (4232) that controls the JTAG. Download windows toolchain MSPGCC - project side. 0 (2010-02-22-19:05). The “init mode failed” message is shown by OpenOCD when it has opened a handle to the ST-Link device, but the device refused the initialization command. The Bus Pirate is supported as a JTAG programmer/debugger by OpenOCD. Find Program Entry Point The program entry point has to be determined so that the program counter can be set to the correct position before running the program. ), there are five dozen different ways to build a GCC/ARM toolchain. To use OpenOCD you will need to run it from the command line. > openocd-libftdi. To run OpenOCD, navigate to openocd-0. exe --file. if I use the Freescale Kinetis Design Studio or a DIY Eclipse IDE). Mass erase is not supported on CC13xx and CC26xx devices. In theory, any OpenOCD-compatible JTAG-debugger (that is not hardwired to be chip-specific; eg some of the STM32 ones are) will do. This block handles the system startup and manages the power domains inside the CXD5602. It worked as expected. You can send commands to OpenOCD using the monitor command. For several years I have been using a 'handmade' build of Eclipse, Zylin, OpenOCD 0. Program application starting at zero address # probe bank/target for actual flash size flash probe 0 # Erase the first 256kB of Flash flash erase_address 0x00000000 0x00040000 # Program application program application. You can type ' c ' command several times to continue execution and watch the contents of the count variable each time the program stops at a breakpoint. If you want to do some debugging with the command line, look at STM32F4 Discovery Toolchain for Mac OS X [23] and the GDB and OpenOCD section of the OpenOCD manual. $ openocd ‐f interface/ADAPTER. ©2019 Qualcomm Technologies, Inc. Any idea what should I do? From the command line:. This should result in a lot more debug output, and at least we can see exactly what OpenOCD is seeing. 1) compliant taps on your target board. most people will be using gdb as the backend debugger and possible eclipse/insight as a gui. First select the program, then type the alias, and click Add. Open a (new) command prompt window and type: telnet localhost 4444. sudo apt-get remove openocd. The FT2232HL is dual high-speed USB to UART/FIFO device, and similar FTDI devices are used on many boards as UART to USB converters. The GDB server enables OpenOCD to function as a "remote target" for source-level debugging of embedded systems using the GNU GDB program (and the others who talk GDB protocol, e. Run OpenOCD with next parameters: sudo openocd -f interface/parport. Right click on the project name and select Build Project. Oh i think my problem was that i need to run the openOCD external tool and then hit debug, i suppose enableing "start openOCD locally" makes starting openOCD a part of the process. exe), enter the path and name of the OpenOCD executable, -s and the path to the scripts, enter one or more -f followed by the path to the specific configuration class and. Open Command Prompt or PowerShell in "bin-x64" directory which is located in "openocd" folder. It seems a bit weird. * ** ** * Cross compile gdb and openocd binaries are required and only available from Developer Package. Steps to start up a debug session with GDB from Eclipse and from Command Line. In this case you will need to use openocd to program the flash. Also, run does not exist when using target remote:3333 to OpenOCD. Because I don't have any J-link or Atmel programmer I used to program my boards with Raspberry Pi and OpenOCD by this tutorial. openocd -f board\st_nucleo_f3. -v" and expect to get such an output: Like the ST-LINK, we will set OpenOCD to run on Eclipse IDE with one-click. 1) compliant taps on your target board. Contribute to ntfreak/openocd development by creating an account on GitHub. 0 (2010-02-22-19:05). What is OpenOCD? The Open On-Chip Debugger (OpenOCD) aims to provide debugging, in-system program-ming and boundary-scan testing for embedded target devices. Build and flash your TinyGo program using tinygo flash like this: tinygo flash -target=microbit [PATH TO YOUR PROGRAM] The micro:bit should restart and begin running your program. JTAG Debugging the ESP32 With FT2232 and OpenOCD - DZone IoT IoT Zone. More information that could be helpfull; when i run the openocd. The OpenOCD debugging plug-ins are not included in these packages, and need to be installed as usual. It exists with target extended-remote:3333, but causes issues… just don't use it OK. bin reset exit, the SRST pin gets pulled low. I'm running OS X 10. There is a new feature in OpenOCD since version V0. OpenOCD Debug Host Tools¶ OpenOCD is a community open source project that provides GDB remote debugging and flash programming support for a wide range of SoCs. Steps to start up a debug session with GDB from Eclipse and from Command Line. This partially reflects different hardware technologies: NOR flash usually supports direct CPU instruction and data bus access, while data from a NAND flash must be copied to memory before it can be used. Did you include ''--enable-stlink'' on the command line for configure?. I can compile (with mbed-cli) and launch both openocd and GDB servers from a command line so I am pretty sure my desktop is configured properly. /configure command with the directory you extracted libftd2xx to. I have been compiling for the Raspbery Pi on my machine, and unless I do this I get the wrong compiler. With change set #2778 you. Download windows toolchain MSPGCC - project side. bin instead of using the load command in GDB? Just attach OpenOCD and GDB to debug once the binary has been copied over and the reset button depressed. yes Programmer Shield 1. Step 5: Use the following command in Command Prompt or PowerShell to program FPGA. This is achieved by specifying the --enable-stlink when configuring the OpenOCD build. Posted on August 28, 2012 at 19:31. Otherwise, you’ll have to repeat it every time. openocd\bin\openocd -f interface/stlink-v2. These are. Thanks for your help!. The transport must be supported by the debug adapter hardware and by the version of OpenOCD you are using (including the adapter's driver). Posted on November 14, 2015 at 12:13. but when im using it for drscan or irscan command it wont work. step6: openocd -> interface -> select the. Then I can go back to the IDE, and debug. Hi, Which board are you using? Did you update your System Workbench IDE after installing (Help >> Check for updates)? The installer is only updated a few times a year, while updates are available on a more frequent basis. In this project we will walk you through the process of building OpenOCD on Linux to work with Launchpad, debugging a project with GDB, and modifying the project behavior. And the program begins running on the Blue Pill. Usage Launch OpenOCD as follows (using MSP432 Launchpad as an example):. exe cannot be used in command line. This is a brief outline of the steps taken to get sample code from the Atmel ASF for the “SAMD20 Xplained Pro” built and flashed to the board from Ubuntu 14. Next time I will use GDB to debug the program by attaching to OpenOCD built-in GDB server. This is a brief outline of the steps taken to get sample code from the Atmel ASF for the "SAMD20 Xplained Pro" built and flashed to the board from Ubuntu 14. OpenOCD is an amazing free tool we'll use to talk to the BLE through the ST-link. Building OpenOCD from Sources Procedure to build OpenOCD from sources for Windows, Linux and MacOS operating systems.