Comments (12)
Hi,
My SAME70 seems to be working fine with your plugin.
from clion-embedded-arm.
OpenOCD requires both bin
and share/openocd/scripts
folders in the structure. Most probably your OpenOCD setup is not complete. How does it look like on my Windows:
+---bin
+---drivers
| +---FTDI CDM v2.08.28 Certified
| | +---amd64
| | +---i386
| | \---Static
| | +---amd64
| | \---i386
| +---ST-Link
| | +---amd64
| | \---x86
| +---WinUSB
| | +---amd64
| | \---x86
| \---WinUSB_Mini
+---QuickSetup
\---share
\---openocd
+---contrib
| +---libdcc
| +---loaders
| | +---checksum
| | +---debug
| | | \---xscale
| | +---erase_check
| | +---flash
| | | +---at91sam7x
| | | +---fm4
| | | +---fpga
| | | +---kinetis
| | | +---kinetis_ke
| | | \---xmc1xxx
| | \---watchdog
| +---remote_bitbang
| +---rpc_examples
| +---rtos-helpers
| \---xsvf_tools
+---OpenULINK
\---scripts
+---board
+---chip
| +---atmel
| | \---at91
| +---st
| | +---spear
| | \---stm32
| \---ti
| \---lm3s
+---cpld
+---cpu
| \---arm
+---fpga
+---interface
| \---ftdi
+---target
+---test
\---tools
On *nix it should look very similar way
from clion-embedded-arm.
Hi,
Thanks for your reply.
I'm using standard ARM-MCU-Eclipse plugin installation and I see that 'scripts' directory is located directly under OpenOCD home directory. There is no 'share' at all.
kamil@kamil-Latitude-E7450:~/workspace/same70-base$ ls /opt/gnu-mcu-eclipse/openocd/0.10.0-5-20171110-1117/ bin contrib doc gnu-mcu-eclipse info licenses man OpenULINK README.md scripts
I have created it manually and it worked.
from clion-embedded-arm.
Sorry, my plugin does not support that (yet?). Since you use ubuntu, try to install standard openocd distribution via sudo apt-get install openocd
from clion-embedded-arm.
@belussi, looks like you are trying to use this stuff with Microchip MCUs. Please let me know if you gain any success or not.
from clion-embedded-arm.
Flashing seems to working fine. But I get this when trying to debug:
Error during pretty printers setup: Undefined info command: "pretty-printer". Try "help info".
Some features and performance optimizations will not be available.
info pretty-printer
Undefined info command: "pretty-printer". Try "help info".
Debugger connected to
tcp:localhost:3333
It seems to be python module, so I will try to install it.
from clion-embedded-arm.
Looks like you are using very old gdb. Try version 8 or at least 7.
from clion-embedded-arm.
It works for me with the directory you mentioned, thanks. @elmot
I used openocd binary from https://github.com/runtimeco/openocd-binaries for macOS, http://gnutoolchains.com/arm-eabi/openocd/ for Windows.
from clion-embedded-arm.
I got several requests to fix this through private channels.
from clion-embedded-arm.
What else do you need except for openocd binary file? Why need the structure completely?
from clion-embedded-arm.
Bunch of scripts.
from clion-embedded-arm.
Some unofficial packages do not have share/
folder, but have scripts/
right at top level.
As a workaround on Windows, just copy whole scripts/
folder to OPENOCD_HOME/share/openocd
, so that there's OPENOCD_HOME/share/openocd/scripts/board
folder. Or make a link (i didn't try this).
On *nix just make a symlink with smth like
cd OPENOCD_HOME && mkdir -p share/openocd && cd $_ && ln -s ../../scripts
from clion-embedded-arm.
Related Issues (20)
- Show memory statistics after compilation HOT 1
- Unable to debug if linker script has two applications HOT 2
- How to use gprof HOT 2
- Document how to switch to a C++ Project HOT 2
- Improve WSL support HOT 3
- Cannot load settings from file workspace.xml HOT 4
- Out-of-source CMake builds differ from CLion HOT 12
- How do you develop this plugin? HOT 1
- OpenOCD support dialog incomplete. No way of specifying board HOT 2
- Would be possible to add MCU Registers view window/perspective during debugging?
- Error when updating CMake Project. Configuration problem HOT 1
- Load Project Setting Error after add OpenOCD configuration HOT 4
- Wrong objcopy executed. HOT 1
- ConfigurationException: Please open settings dialog and fix OpenOCD home HOT 1
- Debug fails with "Error running 'OCD test-program': Debugger executable is incorrect" HOT 2
- Does STLink V2 support now? HOT 1
- Set board config file from CMake HOT 2
- Support multiple config file HOT 2
- Feature request: relative paths for openocd board config HOT 2
- Warn : no flash bank found for address 0x00000000
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clion-embedded-arm.