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) Debugger free memory report causes compile error (Read 7380 times)
Bob Jones
Full Member
***
Offline


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
Debugger free memory report causes compile error
Feb 1st, 2016 at 4:23pm
Print Post  
I updated Visual Studio 2015 to the latest version of VM last night and immediately encountered compile problems as shown in the attached output.txt. Interestingly the code compiles and uploads in release mode but not in debug mode. Here are the diagnostics:

Severity      Code      Description      Project      File      Line      Suppression State
Error            error: ld returned 1 exit status            collect2.exe            
Warning            int servoPin = navigator.getServoPin()                        
Warning            #define MAX_SERVOS   (_Nbr_16timers  * SERVOS_PER_TIMER)                        
Warning            #define MAX_SERVOS 0                        
Warning            this is the location of the previous definition            C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\qmpnclth.gn3\Micro Platforms\default\debuggers\VM_DBG\VM_Boards.h      19      
Warning            undefined reference to `_VM_freeMemory            C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\qmpnclth.gn3\Micro Platforms\default\debuggers\VM_DBG\VM_DBG.cpp      857      
Warning            In file included from            C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\qmpnclth.gn3\Micro Platforms\default\debuggers\VM_DBG\VM_DBG.h      73      
Warning            In function `VisualMicroDebug::printFreeMemory()            M_DBG.cpp.o      -1      
Warning            80:0: warning: "MAX_SERVOS" redefined [enabled by default]            D:\users\Bob.ObigOne\Documents\Arduino\libraries\Servo\src\Servo.h      80      
Warning            from            D:\Users\Bob.ObigOne\Documents\Arduino\Rover\Rover.ino      44      
Warning            In file included from            D:\Users\Bob.ObigOne\Documents\Arduino\Rover\Rover.ino      66      
Warning            In member function 'void BJTestCases::servoTestCycle(int)            s\src\BJTestCases.cpp            
Warning            186:6: warning: unused variable 'servoPin' [-Wunused-variable]            s\src\BJTestCases.cpp            

« Last Edit: Feb 2nd, 2016 at 10:53pm by Tim@Visual Micro »  

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: Compile problems with latest VM release
Reply #1 - Feb 1st, 2016 at 4:37pm
Print Post  
Thanks, that is a problem with the live free memory reporting.

Please switch off project properties > auto reports> free memory

Or confirm if you have used a {special variable} to force the free memory report.

This will get fixed but the above will prove the issue.

Thanks
  
Back to top
IP Logged
 
Bob Jones
Full Member
***
Offline


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
Re: Compile problems with latest VM release
Reply #2 - Feb 1st, 2016 at 5:07pm
Print Post  
That fixed the problem. Thanks, Tim.
  
Back to top
 
IP Logged
 
Linas
Newbies
*
Offline


Posts: 2
Joined: Feb 2nd, 2016
Re: Compile problems with latest VM release
Reply #3 - Feb 2nd, 2016 at 7:25pm
Print Post  
I've got same problem since yesterday update:

VM_DBG.cpp.o:In function `VisualMicroDebug::printFreeMemory()
VM_DBG.cpp:undefined reference to `_VM_freeMemory
collect2.exe*:error: ld returned 1 exit status
Error creating .elf
  
Back to top
 
IP Logged
 
Bob Jones
Full Member
***
Offline


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
Re: Compile problems with latest VM release
Reply #4 - Feb 2nd, 2016 at 7:28pm
Print Post  
Did you turn off auto reports -> free memory? 

That worked for me.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile problems with latest VM release
Reply #5 - Feb 2nd, 2016 at 7:29pm
Print Post  
Hi Linas,

Thanks for the post.

You do not say if you read my workaround/solution earlier in this post?
  
Back to top
IP Logged
 
Linas
Newbies
*
Offline


Posts: 2
Joined: Feb 2nd, 2016
Re: Compile problems with latest VM release
Reply #6 - Feb 2nd, 2016 at 7:30pm
Print Post  
Yes, Bob. I did it yesterday but I would like to see this feature sometimes.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger free memory report causes compile error
Reply #7 - Feb 2nd, 2016 at 8:43pm
Print Post  
Thanks it will be fixed very soon. that is what this means

Quote:
This will get fixed but the above will prove the issue


Smiley
« Last Edit: Feb 2nd, 2016 at 10:53pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger free memory report causes compile error
Reply #8 - Feb 6th, 2016 at 7:43pm
Print Post  
Fixed in 1602.6. Sorry for the delay.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint