Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) Visual Micro failed to create UI command items (Read 40325 times)
Fred Koschara
Junior Member
**
Offline


Posts: 13
Location: Peabody Mass. USA
Joined: Mar 3rd, 2014
Visual Micro failed to create UI command items
Mar 4th, 2014 at 11:08am
Print Post  
I installed Atmel Studio, then Visual Micro, built some projects even though every time I start the program I get a "Visual.Micro.AS6" error dialog that states

Visual Micro failed to create UI command items

The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))


I deinstalled and reinstalled Visual Micro, and tried resetting the user interface, but I still get the message every time I start Atmel Studio.

Could this be related to my not having options for debugging on the attached Arduino board, or for the Arduino not being available as a debug target?

Operating environment, as reported by AS About box:

Atmel Studio 6 (Version: 6.1.2730 - Service Pack 2)
© 2013 Atmel Corp. All rights reserved.

« Last Edit: Mar 5th, 2014 at 5:38pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12204
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro failed to create UI command items
Reply #1 - Mar 4th, 2014 at 5:12pm
Print Post  
Hi,

What location have you set for the arduino ide in Visual Micro options?

Which version of Arduino does the location point to?

Which Visual micro Arduino app did you set the location for? Arduino 1.0.x or Arduino 1.5.x

Please do not continue with your debugger questions in the other thread you have created until you have this error resolved.

Thanks
  
Back to top
IP Logged
 
Fred Koschara
Junior Member
**
Offline


Posts: 13
Location: Peabody Mass. USA
Joined: Mar 3rd, 2014
Re: Visual Micro failed to create UI command items
Reply #2 - Mar 4th, 2014 at 11:22pm
Print Post  
Hi Tim --

I'm not sure what you mean by "Visual Micro options" - where are those options set?

When I go to the Tools menu in Atmel Studio the first option is for Visual Micro (Arduino 1.0.x) so I'm pretty sure VM is set up for the Arduino 1.0.5 installation on my system.

When I was installing VM, I believe it asked which Arduino version, and I pointed it to the Arduino 1.0.5 directory where the only version of Arduino I've got installed lives.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12204
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro failed to create UI command items
Reply #3 - Mar 5th, 2014 at 12:32pm
Print Post  
Hi Fred,

Thanks for the info. It sounds like you have installed the correct ide location for arduino 1.0.x

If you open the platform explorer on the "tools>visual micro" menu do you see the boards listed from the arduino ide?

Do you see a list of boards in the "tools>visual micro>boards" menu?

Do you see a list of boards on the tool bar?

Thanks

ps: for reference. the visual micro options are on "tools>options>visual micro"

  
Back to top
IP Logged
 
Fred Koschara
Junior Member
**
Offline


Posts: 13
Location: Peabody Mass. USA
Joined: Mar 3rd, 2014
Re: Visual Micro failed to create UI command items
Reply #4 - Mar 6th, 2014 at 4:59am
Print Post  
Hi Tim --

Yes, the Arduino boards are listed on the tools->visual micro->boards menu, and on the toolbar.

I also see the V.M. settings at the bottom of the tools->options dialog.

Would it help if I exported the settings?

-- Fred
  
Back to top
 
IP Logged
 
Fred Koschara
Junior Member
**
Offline


Posts: 13
Location: Peabody Mass. USA
Joined: Mar 3rd, 2014
Re: Visual Micro failed to create UI command items
Reply #5 - Mar 6th, 2014 at 1:26pm
Print Post  
I reviewed the "Basic Setup" and "Getting Started" pages on the visualmicro.com Web site.  I had done everything as described there when I first set up Atmel Studio and Visual Micro.

It would be nice if micro$**t's products gave more information about *what* command items failed to load - I would like to be able to help fix this!
« Last Edit: Mar 6th, 2014 at 1:26pm by Fred Koschara »  
Back to top
 
IP Logged
 
Fred Koschara
Junior Member
**
Offline


Posts: 13
Location: Peabody Mass. USA
Joined: Mar 3rd, 2014
Re: Visual Micro failed to create UI command items
Reply #6 - Mar 6th, 2014 at 2:24pm
Print Post  
For reference, here's a link to a screen capture with the error message displayed:

http://theoriginalprototype.com/projects/Arduino/20140306-wfredk-create-commands...

(I couldn't figure out how to insert the image directly into the post, so I put it on my Web site at the URL above.)
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12204
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro failed to create UI command items
Reply #7 - Mar 6th, 2014 at 3:53pm
Print Post  
Thanks for the info. Please switch on tools>options>visual micro>user interface>trace then post the output that appears after re-starting the ide. 

Please do not open any projects before grabbing the trace output

Thanks
  
Back to top
IP Logged
 
Fred Koschara
Junior Member
**
Offline


Posts: 13
Location: Peabody Mass. USA
Joined: Mar 3rd, 2014
Re: Visual Micro failed to create UI command items
Reply #8 - Mar 7th, 2014 at 4:16am
Print Post  
Here's the trace from just starting Atmel Studio, not launching a project:

Code
Select All
CreateCommandBarItemsPerm	Begin AddinVer=1.1401.26
Permanent Items Setup Requested	 - Exiting setup because some controls already exist
CreateCommandBarItemsPerm	End
Create UI command items	Begin
CreateCommandBarItems	Begin AddinVer=1.1401.26
Get Bar	Tools
Create Bar	Tools>Arduino
Adding	Tools>Ports
Adding	Tools>Other Ports
Adding	UI Menu-Board-Items
Adding	UI Menu-SerialPort-Items
Adding	Creating project menu libraries for platform
Adding	ToolBar-Lib-Items
Create UI command items	End 



I opened my project, and closed Atmel Studio with the project properties tab as the current file in the display.
This trace resulted from double-clicking the solution file in winDoze Explorer so the solution wais loaded during startup:

Code
Select All
CreateCommandBarItemsPerm	Begin AddinVer=1.1401.26
Permanent Items Setup Requested	 - Exiting setup because some controls already exist
CreateCommandBarItemsPerm	End
Create UI command items	Begin
CreateCommandBarItems	Begin AddinVer=1.1401.26
Get Bar	Tools
Create Bar	Tools>Arduino
Adding	Tools>Ports
Adding	Tools>Other Ports
Adding	UI Menu-Board-Items
Adding	UI Menu-SerialPort-Items
Adding	Creating project menu libraries for platform
Adding	ToolBar-Lib-Items
Unable to create UI command items	The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) 



I then put the focus on one of the C++ files and closed Atmel Studio.  Again I opened the solution file by double-clicking it in winDoze Explorer.  This is the resulting trace:

Code
Select All
CreateCommandBarItemsPerm	Begin AddinVer=1.1401.26
Permanent Items Setup Requested	 - Exiting setup because some controls already exist
CreateCommandBarItemsPerm	End
Create UI command items	Begin
CreateCommandBarItems	Begin AddinVer=1.1401.26
Get Bar	Tools
Create Bar	Tools>Arduino
Adding	Tools>Ports
Adding	Tools>Other Ports
Adding	UI Menu-Board-Items
Adding	UI Menu-SerialPort-Items
Adding	Creating project menu libraries for platform
Adding	ToolBar-Lib-Items
Create UI command items	End 



This is repeatable:  I tried it several times to be sure it wasn't a transient phenomenon.  It seems that if Atmel Studio is closed where the project file has the focus, the command items are not properly loaded when the program restarts.  When Atmel Studio is closed with a source file having the focus, or when no project is loaded at startup, the commands are initialized properly.

Failure:
http://theoriginalprototype.com/projects/Arduino/20140306-wfredk-create-commands...

Success:
http://theoriginalprototype.com/projects/Arduino/20140306-wfredk-create-commands...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12204
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro failed to create UI command items
Reply #9 - Mar 7th, 2014 at 1:25pm
Print Post  
Hello,

Can you please close the solution with many projects. normally this would be fine but it's impossible to see what is going on with so many projects.

Please perform a simple test in an empty atmel studio by clicking "file>new>sketch project". Then post a screen shot.

The error sounds like a library with a name that Visual Studio does not like but before I ask you to zip your custom libs let's see what happens with a single sketch project.

  
Back to top
IP Logged
 
Fred Koschara
Junior Member
**
Offline


Posts: 13
Location: Peabody Mass. USA
Joined: Mar 3rd, 2014
Re: Visual Micro failed to create UI command items
Reply #10 - Mar 7th, 2014 at 2:41pm
Print Post  
I created a simple sketch project, it behaves the same way:  When the solution is closed with the source file tab open, opening the solution works correctly:

http://theoriginalprototype.com/projects/Arduino/20140307-wfredk-simpleTest-succ...

However, when the project tab is selected when the solution is closed, opening it fails:

theoriginalprototype.com/projects/Arduino/20140307-wfredk-simpleTest-failed.png




On a related note, I noticed that when a properties tab is selected, the properties pane for the project doesn't show anything:

http://theoriginalprototype.com/projects/Arduino/20140307-wfredk-properties-prop...

However, when a source tab is selected, the properties pane for the project does show the project properties:

http://theoriginalprototype.com/projects/Arduino/20140307-wfredk-properties-cpp-...




... and on yet another related note...

When I was converting my project from Arduino to Atmel Studio, I created C++ static libraries and a C++ executable program, partly because it is not obvious how to duplicate the way Arduino sketches and libraries are built in Atmel Studio when compared with the Arduino IDE.  For example, I still don't know how to create/edit libraries such as the UTFT one I'm using to interface with the LCD on the Arduino I'm using.  I didn't even notice the "New sketch project" menu item until you'd asked me to create a simple project for testing.

Because I created my library and program projects as C++ ones using the Atmel Studio tools, rather than Arduino sketch projects using the Visual Micro "new sketch project" menu item, there are differences between the project files for my project vs. the simple test one.  I'm going to edit the .cppproj files for my project to bring them in line with the one created for my simple test.  That may solve my debugger issues.  I will keep you posted.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12204
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro failed to create UI command items
Reply #11 - Mar 7th, 2014 at 3:48pm
Print Post  
Hi Fred,

Thanks for all the good info.

Unfortunately you are coming to Arduino with a huge amount of existing Atmel knowledge which confuses things slightly. Arduino cuts so many corners that to be compatible we ignore all of the std. atmel project windows and config.

For Visual Micro, an Arduino project is an empty .cppproj in a folder of the same name. As soon as a .ino is added of the same name then Visual Micro kicks in and overrides all Atmel functionality. You have noticed this happening because the vsarduino.h is automatically included to force intellisense to know about the Arduino stuff.

When you open a valid Arduino project (folder, cppproj and .ino of same name) then Visual Micro should look at the disk and validate/include all relevant Arduino files into the project.   

Keep in mind that Visual Micro ensures compatibility with the Arduino ide which does not have a project file. The Arduino rules are all cpp/c/h/ino files in a single folder. The folder name must match the name of the [primary].ino file.

There have been a lot of library structure changes within Arduino recently. Arduino produce different Ide version of each structure, Visual Micro works with them all so I think it is confused by one of your libraries.

Libraries can be stored under the main arduino ide/libraries folder or custom/user libs under your sketchbook folder (usually mydocuments/arduino/libraries). Do you have any custom/user libs? If so please zip them all and email to info [at] visualmicro.com

The debugger is a software debugger that by default uses the serial COM port selected on the tool bar or via "tools>visual micro". For the debugger to kick in you need to have started the free trial (see tools>visual micro>trybuy). When activated the debugger will be in novice mode allowing you to switch your project configuration from Release to Debug. Then when you hit F5 two complilations should be seen in the output window. Once for release and then one for debug, the program should automatically upload to the Arduino via the selected COM port and debug should start.

I suggest you get the usb upload and debug working then we can talk about using a programmer for upload but debug will still be via usb or via any 2 digital pins and an ftdi cable/xbee etc,

Thanks
  
Back to top
IP Logged
 
Fred Koschara
Junior Member
**
Offline


Posts: 13
Location: Peabody Mass. USA
Joined: Mar 3rd, 2014
Re: Visual Micro failed to create UI command items
Reply #12 - Mar 7th, 2014 at 7:37pm
Print Post  
I tried to start the debugger on the simple test Arduino project I created (a new Arduino sketch with nothing added or changed):  I hit the "Start Debugging" button on the toolbar.  This is the result from the output window:

Code
Select All
Compiling 'SimpleTest' for 'Arduino Mega 2560 or Mega ADK'
Binary sketch size: 666 bytes (used 0% of a 258048 byte maximum) (3.25 secs)
.
The usb debugger has been activated using global options
To prevent this message switch on the (Micro Debug) project properties (click the ? on the toolbar to view the properties)
Alternatively set 'Micro Debug - General>Always Use Debugger' = False in 'Tools>Options>Visual Micro'
.
Compiling debug version of 'SimpleTest' for 'Arduino Mega 2560 or Mega ADK'
Binary sketch size: 4292 bytes (used 2% of a 258048 byte maximum) (5.63 secs)
Uploading to I/O board using 'avrispmkii'
avrdude: usbdev_open(): did not find any USB device "usb"
 



What's wrong here?  Why isn't using COM5 (the selected serial port) where the Arduino is connected to the virtual USB COM port?  What don't I have set up right?

Incidentally, a breakpoint was set automatically on the loop() function, which I don't think I asked for.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12204
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro failed to create UI command items
Reply #13 - Mar 7th, 2014 at 8:08pm
Print Post  
You ticked tools vm upload using programmer.

please untick for normal usb upload
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12204
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro failed to create UI command items
Reply #14 - Mar 7th, 2014 at 8:10pm
Print Post  
Auto breakpoint is for new users. Delete and add your own ot switch off auto debug in options then invoke debug per config as shown on youtube video
  
Back to top
IP Logged
 
Fred Koschara
Junior Member
**
Offline


Posts: 13
Location: Peabody Mass. USA
Joined: Mar 3rd, 2014
Re: Visual Micro failed to create UI command items
Reply #15 - Mar 7th, 2014 at 9:01pm
Print Post  
Tim@Visual Micro wrote on Mar 7th, 2014 at 3:48pm:
Unfortunately you are coming to Arduino with a huge amount of existing Atmel knowledge which confuses things slightly. Arduino cuts so many corners that to be compatible we ignore all of the std. atmel project windows and config.


Actually no, I don't have a lot of Atmel experience - I downloaded Atmel Studio and Visual Micro about 10 minutes apart.  What I've got is a lot of {micro$**t} Visual Studio experience - years of it - that enables me to hack the project files because I've got a fair idea of what's in them.

<feigned_shocked_disbelief>Arduino cuts corners? Really?</feigned_shocked_disbelief>  I hadn't noticed...


Tim@Visual Micro wrote on Mar 7th, 2014 at 3:48pm:
For Visual Micro, an Arduino project is an empty .cppproj in a folder of the same name. As soon as a .ino is added of the same name then Visual Micro kicks in and overrides all Atmel functionality. You have noticed this happening because the vsarduino.h is automatically included to force intellisense to know about the Arduino stuff.

When you open a valid Arduino project (folder, cppproj and .ino of same name) then Visual Micro should look at the disk and validate/include all relevant Arduino files into the project.


This is really useful information for refactoring my project files.  I had not recognized the imortance of the Visual Micro directory within the project folder, or that the vsarduino.h file is a required component of the process.


Tim@Visual Micro wrote on Mar 7th, 2014 at 3:48pm:
Keep in mind that Visual Micro ensures compatibility with the Arduino ide which does not have a project file. The Arduino rules are all cpp/c/h/ino files in a single folder. The folder name must match the name of the [primary].ino file.


I read a comment recently that where the Arduino IDE does so many things "under the hood" that it actually gets in the way of experienced programmers.  I'm one who fits squarely in the middle of that category.  Unfortunately, it seems that in ensuring compatibility with the Arduino IDE, Visual Micro is following the same path of being in the way.


Tim@Visual Micro wrote on Mar 7th, 2014 at 3:48pm:
There have been a lot of library structure changes within Arduino recently. Arduino produce different Ide version of each structure, Visual Micro works with them all so I think it is confused by one of your libraries.

Libraries can be stored under the main arduino ide/libraries folder or custom/user libs under your sketchbook folder (usually mydocuments/arduino/libraries). Do you have any custom/user libs? If so please zip them all and email to info [at] visualmicro.com


FWIW, everything has been compiling and uploading properly in the Arduino IDE, and it all built properly in Atmel Studio once I got the project and solution setup figured out.  Buidling with the Atmel IDE gave me the first report I'd seen of how much RAM the program is using - and the Visual Micro build of my simple test sketch did NOT report RAM usage - which is a tremendous step backwards, in my opinion.  My primary motivation in turning away from the Arduino IDE was I need to be able to debug my program on the Arduino - a capability the Arduino IDE is totally lacking.

I have a few libraries in the main Arduino IDE/libraries folder that I customized since I downloaded them from the 'net.  In addition, I have several proprietary ones there that I wrote.  For the customer project I'm working on, there are several custom libraries in the sketch folder.  I doubt that my customer would be happy with me sharing their source code.  Perhaps it would be more useful for you to zip the visual micro files and send them to development [at] theoriginalprototype.com.


Tim@Visual Micro wrote on Mar 7th, 2014 at 3:48pm:
The debugger is a software debugger that by default uses the serial COM port selected on the tool bar or via "tools>visual micro". For the debugger to kick in you need to have started the free trial (see tools>visual micro>trybuy). When activated the debugger will be in novice mode allowing you to switch your project configuration from Release to Debug. Then when you hit F5 two complilations should be seen in the output window. Once for release and then one for debug, the program should automatically upload to the Arduino via the selected COM port and debug should start.


I just referred to the Atmel Studio IDE.  When I looked on the Tools->Visual Micro menu, I found that "Upload Using Programmer" was checked.  When I unchecked it, the simple test sketch was uploaded to the board - so that's one problem solved.


Tim@Visual Micro wrote on Mar 7th, 2014 at 3:48pm:
I suggest you get the usb upload and debug working then we can talk about using a programmer for upload but debug will still be via usb or via any 2 digital pins and an ftdi cable/xbee etc,


Using a programmer for upload isn't something I'm trying to do - all I want to do right now is be able to debug my program on the Arduino:  I had to do an extensive rearrangement of the code to put the FSM state information into PROGMEM because I was pretty sure I was running out of RAM (but had no way of knowing, since the Arduino IDE never says anything about RAM usage).  When I tried to run the updated program, it didn't work - and doing "by guess and by golly" debugging has become impractical:  I need to be able to see what's actually going on inside the processor!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12204
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro failed to create UI command items
Reply #16 - Mar 7th, 2014 at 10:53pm
Print Post  
Code
Select All
Actually no, I don't have a lot of Atmel experience - I downloaded Atmel Studio and Visual Micro about 10 minutes apart.  What I've got is a lot of {micro$**t} Visual Studio experience - years of it - that enables me to hack the project files because I've got a fair idea of what's in them 



Great well thanks for making every test with a solution containing 10 projects for a tool that you have only used for 10 minutes and thanks for not reading the two getting started articles linked on every page of visualmicro.com and on the atmel studio page   Smiley

Please keep in mind that this tool is primarily free and support needs to be kept to a min. 

Q: Why didn't you use Visual Studio Pro instead of Atmel Studio? It's better for viewing library sources. Project>Show all sketch sources toggles your library and arduino core sources into the project. The feature doesn't yet work in atmel studio because it doesn't support virtual solution/project folders.

Code
Select All
<feigned_shocked_disbelief>Arduino cuts corners? Really?</feigned_shocked_disbelief>  I hadn't noticed... 



Arduino cuts corners for mainly good reasons and provides a platform for rapid prototyping. 

Visual Micro allows you to switch off certain arduino features such as auto generation of prototypes, also allows atmel programmers to be used which you would need to do if you dumped Arduino because that's one of the corners they conveniently cut  Smiley

In addition to existing features it is true that we currently working on  looking at how we can allow pro users to step from an Arduino project into a raw Atmel project.

Quote:
This is really useful information for refactoring my project files.  I had not recognized the imortance of the Visual Micro directory within the project folder, or that the vsarduino.h file is a required component of the process.


I only mention it so that you know the vsarduino.h is not part of the compile or required if you want to include the project in source safe. It is auto created and auto maintained by Visual Micro. The best way to determine if your project is under the control of Visual Micro is to attempt a build.

The sketch name and folder name rules have always been the case for Arduino. The .cppproj name just makes sense so Visual Micro enforces it but if you let Visual Micro set your projects up for you there would not be any need to mess about with file and folder names.

Quote:
I read a comment recently that where the Arduino IDE does so many things "under the hood" that it actually gets in the way of experienced programmers.  I'm one who fits squarely in the middle of that category.  Unfortunately, it seems that in ensuring compatibility with the Arduino IDE, Visual Micro is following the same path of being in the way.


I look forward to hearing what exactly gets in the way. 

We can always consider supporting it but you might find much is already possible via the Arduino 1.5.x configuration system and the many vm options

Visual Micro does what Arduino does for a reason. It's difficult enough supporting people with a fixed known system + people can create their own Atmel Studio projects easily enough, can also use the Arduino tool chain to compile in any way they see fit. Just needs a bit of knowledge.

I suspect that the people who wanted to use Arduino but thought it got in the way didn't really want to use Arduino in the first place. I also think many technical people would like Arduino to be more technical. I will trade "technical" with "getting the job done". It's just no fun if it gets too complicated and people have to learn loads to get projects working.

Quote:
FWIW, everything has been compiling and uploading properly in the Arduino IDE, and it all built properly in Atmel Studio once I got the project and solution setup figured out.


Actually you will have read in the setup guide that you can simply use File>Open>File and open a master.ino of any Arduino sketch. Visual Micro will detect the arduino sketch and ask if you want to create an Arduino project. If you click yes a project will be created and all the .ino/cpp files will be added.

Quote:
Buidling with the Atmel IDE gave me the first report I'd seen of how much RAM the program is using - and the Visual Micro build of my simple test sketch did NOT report RAM usage - which is a tremendous step backwards, in my opinion.  


The simple ram report you refer to is displayed by Visual Micro if you use an Arduino 1.5.x system. In 1.5.x the method of obtaining the ram report is in the config files so Visual Micro does not have to hard code it. I think you should look at the options available from vm before commenting on what is a backward step especially seeing you have read zero pages from visualmicro.com

1.0.x has a lot of hardware coded stuff, it sounds like they have added the 1.5 style ram report in the latest version because it didn't do that in 1.0.x until recently. We will add that for the 1.0.x version when time permits but with everyone moving to 1.5.x it doesn't seem like a huge priority especially because we have the memory and dis-assembly reports as options in the project properties (visual micro project properties not the atmel ones). 

If you don't know how to view the project properties please search for project properties in the wiki.

Quote:
My primary motivation in turning away from the Arduino IDE was I need to be able to debug my program on the Arduino - a capability the Arduino IDE is totally lacking.


Intellisense, fast compile, drill down from compiler errors, advanced memory report, jumping to code definitions are are just a few of the visual micro benefits and just as useful as the debugger. 

Quote:
I have a few libraries in the main Arduino IDE/libraries folder that I customized since I downloaded them from the 'net.  In addition, I have several proprietary ones there that I wrote.  For the customer project I'm working on, there are several custom libraries in the sketch folder.  I doubt that my customer would be happy with me sharing their source code.  Perhaps it would be more useful for you to zip the visual micro files and send them to development [at] theoriginalprototype.com.


We can add more trace info to help but you can probably work it out for yourself. Take a look at the "Project>add/import sketch library" menu and you will probably see some libs missing. This might give an indication as to what it causing the problem. 

I probably only need a directory tree listing to see the problem.

Quote:
I just referred to the Atmel Studio IDE.  When I looked on the Tools->Visual Micro menu, I found that "Upload Using Programmer" was checked.  When I unchecked it, the simple test sketch was uploaded to the board - so that's one problem solved.


"Tools>Visual Micro>Upload using programmer" is un-ticked by default so you must have ticked it by mistake when clicking about. A couple of other people have also done this as you will see if you search this forum for "avrdude: usbdev_open(): did not find any USB device"

Quote:
Using a programmer for upload isn't something I'm trying to do - all I want to do right now is be able to debug my program on the Arduino:  I had to do an extensive rearrangement of the code to put the FSM state information into PROGMEM because I was pretty sure I was running out of RAM (but had no way of knowing, since the Arduino IDE never says anything about RAM usage).  When I tried to run the updated program, it didn't work - and doing "by guess and by golly" debugging has become impractical:  I need to be able to see what's actually going on inside the processor!


If you have used all your ram then software debug is not an option unless you are already using the Serial port and the same Arduino functions that the debugger uses. However you can buy an avr jtag ice3, plug into the icsp, hack the reset line then open the file for debug
« Last Edit: Mar 8th, 2014 at 1:57am by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint