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) How to completely uninstall and clean Visual Micro? (Read 10806 times)
sns
Newbies
*
Offline


Posts: 7
Joined: Dec 30th, 2015
How to completely uninstall and clean Visual Micro?
Dec 30th, 2015 at 8:34pm
Print Post  
Hello,

After trying Atmel Studio installed VS 2013 CE, but the configs got messed up and now I cannot use Visual Micro whatever I try. 

Here's trace, boards are not detected

Status      Unable to select the current application
System.NullReferenceException: Object reference not set to an instance of an object.
   at Visual.Micro.MiroAppAPI.MCUApplication.get_runtimeBoardsList()
   at Visual.Micro.MiroAppAPI.SketchBase.setCurrentMcuApp(String sAppName)

I've tried to clean all the files and leftovers from Atmel Studio, searched in registry, but found nothing regarding Visual Micro, which takes its old config from somewhere every time...

Thanks in advance!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to completely uninstall and clean Visual Micro?
Reply #1 - Dec 30th, 2015 at 11:11pm
Print Post  
Hi,

I need to know which version of atmel studio you used 6.2 or 7?

You can delete the "HK_CURRENT_USER\Software\Visual Micro" registry key entirely then you should be prompted to add your arduino location when visual micro next starts.

To uninstall the older 6.2 version of visual micro you do so via "control panel>add or remove programs>Visual Micro/Arduino"

To uninstall/install the newer extension version of visual micro for VS2013 do so inside the Ide via "Tools>Extensions and Updates"

Let me know which versions you installed. 

ps: Status check - The older version, if installed, will show up under "tools>addin manager" the newer in "tools>extensions manager"
  
Back to top
IP Logged
 
sns
Newbies
*
Offline


Posts: 7
Joined: Dec 30th, 2015
Re: How to completely uninstall and clean Visual Micro?
Reply #2 - Dec 31st, 2015 at 6:31am
Print Post  
Thanks for the reply!

I was using Atmel studio 7 and corresponding beta plugin. Now I'm trying to use VS 2013 and release plugin, but the error persists. Arduino IDE 1.6.7 and I cannot understand what to do next, tried everything. The error as in the first message.
Attached screenshots of Visual Micro error in config window and Ardiono IDE setting.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to completely uninstall and clean Visual Micro?
Reply #3 - Dec 31st, 2015 at 6:40am
Print Post  
Try a sketch book location without non ascii chars

Please post the symbols in your screen shot as text so I can try
  
Back to top
IP Logged
 
sns
Newbies
*
Offline


Posts: 7
Joined: Dec 30th, 2015
Re: How to completely uninstall and clean Visual Micro?
Reply #4 - Dec 31st, 2015 at 6:54am
Print Post  
I have tried to leave sketch location blank, point it to the same as IDE - it does not help. I could manage with "hardware" directory in my sketch location to make it work somewhat if pointing ide directory location to some stupid location like C:\Program Files(x86) - I can select board, but no  compilation, libraries, etc is available, which is expected...

Just downloaded IDE 1.6.6, unziped to Program Files(x86), pointed by VM, skecth location left empty - same error.
Screenshots below.

On my notebook with the same win 10, VS 2013 it DOES work.... Getting crazy..

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to completely uninstall and clean Visual Micro?
Reply #5 - Dec 31st, 2015 at 3:46pm
Print Post  
Hi,

Yes strange but lets be clear about a few things to try/check in the following order:-

A) You have deleted the visual micro registry key mentioned above so that we don't need to check what settings you have altered?

1) You have set the arduino ide location to a valid path where the .exe exists
2) You leave the optional sketchbook folder empty which will then correctly default
3) You have run the arduino 1.6.6 ide at least once and then started VS
4) You have uninstalled 1.6.6, then deleted the "program files (x86)\arduino" folder then reinstalled arduino to ensure that no invalid historic config exists
5) You have renamed the "documents\arduino" folder so that it can't be found then restarted VS

?

Thanks
  
Back to top
IP Logged
 
sns
Newbies
*
Offline


Posts: 7
Joined: Dec 30th, 2015
Re: How to completely uninstall and clean Visual Micro?
Reply #6 - Dec 31st, 2015 at 5:13pm
Print Post  
Thank You very much for helping me with this.

I have uninstalled Arduino 1.6.6. The directory in Program Files(x86) was deleted automatically. I've checked Documents/Arduino dir - nothing with config inside is there - 3 libraries and readme.txt file.
Deleted registry tree for VM.
Installed Arduino 1.6.6.
Started Arduino 1.6.6 once.
Started VS - got first run once VM config - proper directory was already selected.
Got the following (almost identical) situation:

« Last Edit: Dec 31st, 2015 at 5:13pm by sns »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
sns
Newbies
*
Offline


Posts: 7
Joined: Dec 30th, 2015
Re: How to completely uninstall and clean Visual Micro?
Reply #7 - Dec 31st, 2015 at 5:34pm
Print Post  
I'd like to mention again that when I do select sketch directory and if it contains hardware folder from Arduino installation and if I select ide folder to some other dir - I do get list of arduino boards and almost everything works ok, except for compiling and staff that uses arduino executables, of course...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to completely uninstall and clean Visual Micro?
Reply #8 - Dec 31st, 2015 at 7:58pm
Print Post  
1)
Does your pc name have non-ascii chars in it? If so then please email me your c:\users\[yourname] to info[at]visualmicro.com

2)
Please leave sketchbook folder empty. Switch on tools>options>visual micro\system\trace. Then restart VS and email or post the "Micro Trace" output that appears

Thanks
  
Back to top
IP Logged
 
sns
Newbies
*
Offline


Posts: 7
Joined: Dec 30th, 2015
Re: How to completely uninstall and clean Visual Micro?
Reply #9 - Dec 31st, 2015 at 8:06pm
Print Post  
My pc does not have any non-ascii chars in it. As the user name.

Here's trace output:
Application      Begin
Status      Application - Extenders Created
Mode      AfterStartup
Status      AddinKickOff - Setup temp commands required
Status      AddinKickOff - Command event obtained
Status      Launched - Mcu Init
Info      MyVisualMicro location C:\Users\sns\Documents\Visual Micro
Status      Unable to select the current application
System.NullReferenceException: Object reference not set to an instance of an object.
   at Visual.Micro.MiroAppAPI.MCUApplication.get_runtimeBoardsList()
   at Visual.Micro.MiroAppAPI.SketchBase.setCurrentMcuApp(String sAppName)
Status      Available application configuations =  11
Status      Launched. Application configurations loaded = 11
Create UI command items      Begin
Create UI command items      End
Launch      Complete
Get      CustomToolBarObjects
  
Back to top
 
IP Logged
 
sns
Newbies
*
Offline


Posts: 7
Joined: Dec 30th, 2015
Re: How to completely uninstall and clean Visual Micro?
Reply #10 - Jan 1st, 2016 at 7:12pm
Print Post  
I've found the root of my problem. Or a fix.
Somehow Arduino preferences got scrambled and after deleting C:\Users\user\AppData/Local/Arduio directory along wirh AppData/Roaming/Arduino dir and reinstalling Arduino IDE VM works.
Arduino IDE keeps its preferences in mentioned directories (well, Windows caches Local dir with Roaming, I'm not expert in these Windows mechanics - why it stores almost identical data in these dirs).
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint