OpenOCD | OpenOCD provides on-chip programming | Code Inspection library

 by   arduino C Version: 0.9.0-arduino License: GPL-2.0

kandi X-RAY | OpenOCD Summary

kandi X-RAY | OpenOCD Summary

OpenOCD is a C library typically used in Code Quality, Code Inspection applications. OpenOCD has no bugs, it has no vulnerabilities, it has a Strong Copyleft License and it has low support. You can download it from GitHub.

By default the OpenOCD build process prepares documentation in the "Info format" and installs it the standard way, so that "info openocd" can access it.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              OpenOCD has a low active ecosystem.
              It has 97 star(s) with 72 fork(s). There are 24 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 3 open issues and 2 have been closed. On average issues are closed in 0 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of OpenOCD is 0.9.0-arduino

            kandi-Quality Quality

              OpenOCD has 0 bugs and 0 code smells.

            kandi-Security Security

              OpenOCD has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              OpenOCD code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              OpenOCD is licensed under the GPL-2.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              OpenOCD releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.
              It has 7036 lines of code, 41 functions and 30 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of OpenOCD
            Get all kandi verified functions for this library.

            OpenOCD Key Features

            No Key Features are available at this moment for OpenOCD.

            OpenOCD Examples and Code Snippets

            No Code Snippets are available at this moment for OpenOCD.

            Community Discussions

            QUESTION

            Unable to start debug session with OpenOCD/Clion
            Asked 2022-Mar-29 at 00:27

            I'm currently trying to set up CLion for embedded development. Running 'build' by itself creates the executable without any issues, but trying to start the debugger fails with the following error:

            ...

            ANSWER

            Answered 2022-Mar-25 at 11:46

            "Unable to reset target" is the key line in what you have posted.

            If you don't have a hardware reset line available, try changing your openOCD configuration to include:

            Source https://stackoverflow.com/questions/71608471

            QUESTION

            nrf51822 / YJ-14015 Blinky
            Asked 2022-Jan-03 at 13:10

            I am trying to build a simply first blinkyon a nrf51822 china clone (YJ-14015), as part of building a redox wireless and debugging why the BLE communication does not work.

            As SDK I use nrf5_SDK_11 as the keyboards custom firmware is based on it.

            Now I tried a very minimal example blinky with main.c

            ...

            ANSWER

            Answered 2022-Jan-03 at 13:10

            In case someone else stumbles across the same difficulties:

            After quite a while, I figured out a way to fix the blinky example for the yj-14015. The key was to adjust the Makefile which I took from the nordic SDK according to the Makefile in the redox firmware.

            The relevant lines being as follows:

            Source https://stackoverflow.com/questions/70306956

            QUESTION

            Fail to build Yocto extensible SDK
            Asked 2022-Jan-02 at 13:11

            I'm new to Yocto and I've been trying to setup for developing with devtool.

            I've followed the instructions from from the Yocto Linux Kernel Development Manual, but I've made a change to Step #2, setting MACHINE = stm32mp1 since I'm targeting the STM32MP157D-DK1. However, Step #5 fails, where it asks you to build the SDK using the command bitbake core-image-minimal -c populate_sdk_ext with the following error:

            ...

            ANSWER

            Answered 2022-Jan-02 at 13:11

            I've fixed the build issue. It required adding meta-python2 as I did; but instead of IMAGE_INSTALL_append = " python-dev", TOOLCHAIN_HOST_TASK_append = " nativesdk-python-core" is needed instead in local.conf.

            Source https://stackoverflow.com/questions/70554998

            QUESTION

            targets/stm32f1x.cfg:74: Error: target requires -dap parameter instead of -chain-position! OpenOCD
            Asked 2021-Nov-04 at 15:38

            I am using OpenOCD to flash code into a black-pill (STM32f103). It worked a week ago but after updating ubuntu (it's the only thing I can think of that changed) it gives me an error when flashing the code.

            ...

            ANSWER

            Answered 2021-Nov-04 at 15:38

            Since version 0.11.0 OpenOCD doesn't create the DAP(Debug Access Point) isn't automatically created. Change the line for:

            Source https://stackoverflow.com/questions/69841521

            QUESTION

            MicroBlaze without Vitis
            Asked 2021-Sep-09 at 21:22

            Has anyone managed to connect a MicroBlaze instantiated in a Xilinx FPGA to anything other than the Xilinx tools (SDK or Vitis) for download and debugging?

            I'm targeting a VCU29 and have licenses from Xilinx for Vivado etc; I have already extracted the libraries, source and GCC tools and constructed a makefile that will build my applications.

            I'm resigned to using Vitis to load the initial bitfile but would really like to download the code and operate the JTAG from a tool that better matches SW development flow - Eclipse with OpenOCD? Perhaps over the built-in USB->Serial->JTAG interface? I believe I'd be content with just the interface offered through GDB.

            I'd really like to know if anyone has tried this with either success or failure or maybe has one of those "Why don't you just..." lateral thinking ways of solving the problem.

            ...

            ANSWER

            Answered 2021-Sep-09 at 21:22

            Yes, my team does not use Vitis or SDK to build, deploy, or connect to MicroBlazes.

            If you generate your BSP and a linker script with Vitis, you can then build using mb-gcc and link with mb-ld directly. To get these into your PATH, just source the settings script that Xilinx provides with their tools in /settings64.sh.

            As for loading and debugging - if you source the same script, then you will have access to xsdb. Once you have XVC running (i.e. connecting to your board with Vivado HW manager), then you can launch xsdb and inside run connect or connect -xvc-url :: if you are running on a different host. While connected, you can run targets to identify your MicroBlaze, and then select the MicroBlaze with target 5.

            While you have the MicroBlaze selected, you can load and run a number of debugging commands. Just run help while connected to see your options.

            Source https://stackoverflow.com/questions/68624804

            QUESTION

            target not halted error when flashing sample into stm32
            Asked 2021-Aug-11 at 21:04

            I have the stm32 nucleo board wb55rg and am trying to flash some examples into it like blinky and a custom sample, but when am trying to flash the project into the board after building it, I am getting the same error (timed out while waiting for target halded) and I dont know how to deal with it. I was searching on internet and I found some info's about OCD and I didn't really understand. I am not using STMCubeIDE only zephyr's sample blinky. Can anyone help me with that ? I am using linux OS from VM box and a simple blinky sample from zephyr.

            ...

            ANSWER

            Answered 2021-Aug-11 at 21:04

            I have found the problem of this issue. This board was used its previous owner has changed some togle pins on the board. So I searched for the default pins of stm32wb55rg and when I set the default pins the error was solved. Thanks a lot everyone who has made a reply to this post in order to help me find out what was going on.

            Source https://stackoverflow.com/questions/68704671

            QUESTION

            Openocd GDB server configuration
            Asked 2021-Jun-14 at 14:29

            I am using Openocd to debug my code remotely for STM32 via Raspberry pi as detailed in this tutorial: https://learn.adafruit.com/programming-microcontrollers-using-openocd-on-raspberry-pi

            Whenever I run openocd it starts gdb server on port 3333 which is default of course as shown in the picture above. My question is that, is there a way to provide a different port number for openocd to start the gdb-debugger on... For example, if I want to run openocd where i want gdb server to start on 3334 instead of 3333 how can i do that.

            I intend to do that so that i can run multiple openocd instances for different targets simultaneously connected to a single raspberry pi. Any help will be greatly appreciated. Thanks in advance.

            ...

            ANSWER

            Answered 2021-Jun-14 at 14:29

            OpenOcd manual explains how to select a specific port number inside the configuration file as shown in image below:

            Source https://stackoverflow.com/questions/67927513

            QUESTION

            Cannot open source file avr/io.h (dependency of hal.h) with Visual Studio Code on windows 10
            Asked 2021-Jun-05 at 07:00

            I want to implement an embedded project using stm32F0 (arm-based) with VS Code. The project ran properly on other systems.

            1. I Added C/C++ extension to visual studio
            2. I installed a compiler for cortex-m0 arm: GNU Arm Embedded toolchain/gcc arm for windows.
            3. Makefiles installed: binaries file + dependencies file
            4. openOCD installed (open On Chip Debugger)
            5. tasks.json (build instructions), c_cpp_properties.json (compiler path and IntelliSense settings) were created. I modified the Include path because my program includes header files that aren't in my workspace, and that is not in the standard library path.

            c_cpp_properties.json file

            ...

            ANSWER

            Answered 2021-May-27 at 13:45

            Cannot open source file avr/io.h (dependency of hal.h)

            You appear to be using ChibiOS whhich has a file hal.h which includes halconf.h which includes mcuconf.h. Clearly you appear to have an AVR port of ChibiOS where you need STM32 or ARM Cortex-M support.

            But, how VS Code can find dependencies before compiling?

            The same way as the compiler/pre-processor do, by having include paths configured, parsing the project files and accounting for any externally defined (command line) macros.

            I also was wondering if I should add a path for main.cpp file and other C and CPP files in the configuration file of VS Code to solve these problems?

            I believe it will parse project files in any case. It only needs to find the header files included in a source file to provide context for the parsing of the sourcefile.

            For debugging, I don't see any debugger in the list, though I installed openOCD and add the path in the environment variable

            That is an entirely different question - post a new question for that.

            Source https://stackoverflow.com/questions/67715691

            QUESTION

            How to start openOCD on ARM M1 MacBook
            Asked 2021-May-02 at 18:00

            I'm having a hard time getting openocd to start. I attached an STM32F3 Discovery board. When I run openocd -f interface/stlink.cfg -f target/stm32f3x.cfg I get the following error:

            ...

            ANSWER

            Answered 2021-Apr-29 at 20:47

            Turned out that the cable I used was just a power cable which didn't support data transmission.

            With a proper mini USB cable that has all 4 lines it worked right away.

            Source https://stackoverflow.com/questions/67324561

            QUESTION

            ocd assertion fault when connecting gdb
            Asked 2021-Apr-26 at 01:45

            I am debugging board STM32f4 Discovery on Ubuntu 20.04 with openocd and arm-none-eabi-none. Things work well until yesterday. Today, when I connect the gdb to localhost:4444, following assertion happened and ocd quit:

            ...

            ANSWER

            Answered 2021-Apr-26 at 01:45

            I found the issue: I scale up the clock speed without switching to appropriate Flash Latency so the debugger will lose the track of program address as mentioned here, in Clocks and initial settings part: https://vjordan.info/log/fpga/first-steps-with-the-stm32f4.html

            Source https://stackoverflow.com/questions/67041370

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install OpenOCD

            You can download it from GitHub.

            Support

            By default the OpenOCD build process prepares documentation in the "Info format" and installs it the standard way, so that "info openocd" can access it.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/arduino/OpenOCD.git

          • CLI

            gh repo clone arduino/OpenOCD

          • sshUrl

            git@github.com:arduino/OpenOCD.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Code Inspection Libraries

            Try Top Libraries by arduino

            Arduino

            by arduinoJava

            arduino-cli

            by arduinoGo

            arduino-ide

            by arduinoTypeScript

            ArduinoCore-avr

            by arduinoC

            arduino-builder

            by arduinoGo