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) [SOLVED] VisualMicro cant compile for chipkit anymore (Read 6497 times)
mdps
Newbies
*
Offline


Posts: 7
Location: Spain
Joined: Nov 23rd, 2013
[SOLVED] VisualMicro cant compile for chipkit anymore
Feb 13th, 2017 at 4:44pm
Print Post  
Hello,

I'm having some problemas with the last version of Visual Micro with VS2015 Community, arduino 1.8.1 and Chipkit 1.3.1

the problema is that i cant compile any code targeting the chipkit devices, i can compile code for Arduino (or even ESP boards) with no problem using VM + VS2015 and i can compile for Arduino and Chipkit using the arduino IDE but for some reason it is imposble to compile for chipkit with VS2015 and VM.

The error is:

Code
Select All
Compiling debug version of 'prueba' for 'chipKIT uC32'
	Preprocess: "{runtime.tools.pic32-tools.path}\bin\pic32-g++" -c -g -O2 -w -DARDUINO_ARCH_PIC32 -mno-smart-io -ffunction-sections -fdata-sections -mdebugger -Wcast-align -fno-short-double -ftoplevel-reorder -MMD -fno-exceptions -w -x c++ -E -CC -mprocessor=32MX340F512H -DF_CPU=80000000L -DARDUINO=10801 -D_BOARD_UC32_ -DARDUINO_ARCH_PIC32 -DMPIDEVER=16777998 -DMPIDE=150 -DIDE=Arduino -G1024 t_uc32\Debug cores\pic32" variants\uC32" _uc32\Debug\prueba.cpp" -o "nul"
   Referencia a objeto no establecida como instancia de un objeto



	An error was encountered during the 'Deep Search' library discovery process.
Debug build failed for project 'prueba'

 



for Arduino UNO, same empty project:

Code
Select All
Compiling debug version of 'prueba' for 'Arduino/Genuino Uno'
Program size: 1.776 bytes (used 6% of a 32.256 byte maximum) (2,50 secs)
Minimum Memory Usage: 272 bytes (13% of a 2048 byte maximum)
 



I've been trying very hard to fix it because we are on the middle of a project and need to carry on working, but i have had no luck, even uninstalling VM, VS and the arduino IDE and reinstaling everything.

I hope someone here can help.

I've been using Visual Micro Pro for a long time and is the first time I have a problem...

Thanks in advanced.
« Last Edit: Feb 14th, 2017 at 9:19am by mdps »  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VisualMicro cant compile for chipkit anymore
Reply #1 - Feb 13th, 2017 at 4:51pm
Print Post  
Hi,

Try opening the visual micro explorer and selecting the board manager tab. Then click rescan to see if that fixes it.

If not then switch on "vmicro>compiler>show build properties", then build and then zip/email the output as a .txt file to info[at]visualmicro.com

Hopefully the output will show which chipKit tool chain you have installed (so that you don't need to provide any info)

Thanks
« Last Edit: Feb 13th, 2017 at 4:52pm by Tim@Visual Micro »  
Back to top
IP Logged
 
mdps
Newbies
*
Offline


Posts: 7
Location: Spain
Joined: Nov 23rd, 2013
Re: VisualMicro cant compile for chipkit anymore
Reply #2 - Feb 13th, 2017 at 4:58pm
Print Post  
I already tryed to rescan with no succeed, i've sended to you the requested information.

Thanks for yor help!

P.S I was working fine with the same configuration but with VS2013 til yesterday....
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VisualMicro cant compile for chipkit anymore
Reply #3 - Feb 13th, 2017 at 8:00pm
Print Post  
Thanks for sending the files. I have tested chipkit and it is working okay under normal circumstances

The problem is that the build tools can't be discovered for some reason. 

I am going to explain how to fix but first I would appreciate you running a test so I can know the original cause of the issue...

Test

Please open the arduino ide and switch on file>preferences>verbose

Then create a new sketch, select your chipkit board and then click build/verify.

I need to see what exact location is used for the build tools. So copy and paste the build output and email it to me

Thanks.

Solution

Your build output shows the build tools have not been found and also that the upload tool is an incorrect version.

I think you should open board manager and under the "Board Platform Installer" node click the ChipKIT node. This should prompt you to remove the chipKit install.

Alternatively, delete this folder "C:\Users\[your name]\AppData\Local\arduino15\packages\chipKIT" and click (Rescan or restart ide)

Then click the chipKIT node again and allow it to re-install the hardware.

After that click the Rescan button and then click build, hopefully that fixes it.

« Last Edit: Feb 13th, 2017 at 8:01pm by Tim@Visual Micro »  
Back to top
IP Logged
 
mdps
Newbies
*
Offline


Posts: 7
Location: Spain
Joined: Nov 23rd, 2013
Re: VisualMicro cant compile for chipkit anymore
Reply #4 - Feb 14th, 2017 at 8:27am
Print Post  
Thanks for your help : )

I did what you told me and  I sended to you the verbose output of the arduino IDE. I've tryed to reinstal chipkit from VS2015 but after that (either method, reinstall from ide and delete folder and reinstall) it fails still the same way : (

I sended you the output of VS2015 after the reinstallation aswell.

One thing I've noticed is that wen I try to uninstall chipkit from VS2015 i got a message saying "Unable to remove platform, reference to object no set to instance of an objecct"

When I click OK on that message the chipkit line from Installed platforms disappeared. But later on (after reinstall) the list of chipkit boards looks to be pointing the right folder. but not working...
  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VisualMicro cant compile for chipkit anymore
Reply #5 - Feb 14th, 2017 at 8:38am
Print Post  
Please follow my guide to delete the chop it folder manually so we have a clean install
  
Back to top
IP Logged
 
mdps
Newbies
*
Offline


Posts: 7
Location: Spain
Joined: Nov 23rd, 2013
Re: VisualMicro cant compile for chipkit anymore
Reply #6 - Feb 14th, 2017 at 8:50am
Print Post  
Sorry i get lost Smiley what guide?
  
Back to top
 
IP Logged
 
mdps
Newbies
*
Offline


Posts: 7
Location: Spain
Joined: Nov 23rd, 2013
Re: VisualMicro cant compile for chipkit anymore
Reply #7 - Feb 14th, 2017 at 9:19am
Print Post  
ok, looks like i fix it, first i install from arduino IDE chipkit 1.3.0 (with 1.3.1 installed), y try to compile from VS2015 and it WORKS!!!! then from VS2015 i tryed to update 1.3.0 to 1.3.1, it give me the error "cant uninstall chipkit 1.3.0, reference to object not set to instance of an object", i tryed to compile again and it failed.

I remove VM from VS and close everything, open arduino IDE, remove chipkit and reinstall chipkit 1.3.1, then I open VS2015 install VSMicro from Extension manager and compile, ti works... at the end!!!!

thanks you very mucho for your help, this has been very extrange, but now at the end i can carry on with my project Wink

You gave me a great support, thanks.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: [SOLVED] VisualMicro cant compile for chipkit anymore
Reply #8 - Feb 14th, 2017 at 9:36am
Print Post  
Thanks for all the great info. I will try to replicate and prevent the issue.

The object reference expected error is not connected and harmless but will also be fixed.

Thanks again
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: [SOLVED] VisualMicro cant compile for chipkit anymore
Reply #9 - Feb 16th, 2017 at 1:24am
Print Post  
Hopefully this is resolved in 1702.15 sp1 just published.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint