Run and Debug Configurations don't work
I’ve updated my software already, running std lib 1.6.0 and all.
I was in this bad habit of “braching” projects by simply making a copy of my current project to edit. After doing this several times, I found that when I clicked the “Run” or “Debug” button, the IDE would try and use a different “run” or “debug” configuration, one associated with a previous project. That’s wrong, right? It complains of course, and says that the file is not found, and says an error occurs.
Fine. That’s fair I suppose. Lots of files to keep track of in a project. I get it. I lost one somewhere.
So I try to be smart about it. No more laziness. I start a new project from the wizard, and copy only my own high level application sources and headers in. I add in my preprocessor definitions and it builds just fine.
So I go to run it or debug it, and it tries to run a configuration from some other project again! What!?
So I investigate further.
I click the little down arrow for “Run” and I get the configuration manager. Neat. But, no configuration for my newly created (via the wizard) project even exists. Great. That’s fine. It’s cool. So I simply click a button and add a project to a newly created “configuration” which should now be associated with my project. I give this configuration the same name as my project (because it just feels orthadox, you know?). I apply those changes, and hit “Run” from the manager window.
So it tries.
It erases flash, but fails to re-flash it with my application. What!?
A dialog window appears saying: Error: ‘MyProjectName’ not found.
So I go back into the “run” configuration manager and delete the configurations that are associated with other projects. Maybe the IDE fixated in some kind of love relationship with one of these others for some reason, see?
I click OK, and attempt a “run” and alas, my console displays the following message output:
Open On-Chip Debugger 0.9.0-dev-00418-g9afb8b4-dirty (2015-09-28-12:09)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 2000 kHz
adapter_nsrst_delay: 100
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : clock speed 1800 kHz
Error: libusb_open() failed with LIBUSB_ERROR_ACCESS
Error: open failed
in procedure ‘program’
in procedure ‘init’ called at file “embedded:startup.tcl”, line 473
in procedure ‘ocd_bouncer’
- OpenOCD init failed **
shutdown command invoked
My target is blank, and openOCD periodically polls the thing and produces more junk in the console window.
I have no idea what’s happening. Everything is falling apart! What do I try next?
This probably comes from me being new to eclipse. Any gurus over here that can tell me what I’ve done wrong?
This has all happened over a period of 4 days. Time to get it working again.
Thanks guys!