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
Normal Topic Traffic_Light Example (Read 720 times)
RBB01
Junior Member
**
Offline


Posts: 24
Joined: Mar 3rd, 2016
Traffic_Light Example
Jul 13th, 2016 at 10:59am
Print Post  
I unzip Traffic_Light.zip to the same directory level as a GDB/Zero Blink project which builds OK.

Upon opening Traffic_Light.sln pop-up is  "Team Foundation Server Version Control". I declined to contact the server. Next pop-up included "... binding information not found ..."

This is followed by "The active solution has been temporarily disconnected from source control because the server is unavailable.  To attempt to reconnect to source control, close and then re-open the solution when the server is available.  If you want to connect this solution to another server, use the Change Source Control dialog."

The build message is:
#include "lights.h"
                    ^
compilation terminated.

An error was encountered during the 'Deep Search' discovery process.
Either resolve the error or switch off the 'Deep Search Includes' option.
     Tip: When deep search is switched off, headers must be #included in the [project_name.ino] for all required libraries (for example: #include <SPI.h>)
     Tip: Deep search must be off if the project source contains links/shortcuts to code outside of the project structure. The source will have been #included using a relative path preceeded by ..\ (for example: #include "..\..\foo\foo.h")

Build with deep search turned off:

Compiling 'Traffic_Light' for 'Arduino/Genuino Zero (Programming Port)'
Traffic_Light.ino:28:20: fatal error: lights.h: No such file or directory
:#include "lights.h"
:compilation terminated
Error compiling project sources

If I close solution, attempt reopen by first signing in to Microsoft pop-up includes "res://ieframe.dll/http_404_webOC.htm"

What is the correct procedure to get this to build?

I am using:

Windows7
Arduino.c 1.6.9
VM 1606.17.10
Microsoft Visual Studio Community 2015 Version 14.0.25421.03 Update 3
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Traffic_Light Example
Reply #1 - Jul 13th, 2016 at 7:54pm
Print Post  
Hi,

The sample was written by the person who writes the docs. You should always be able to click cancel to the question of source control. I thik you can also right click the project in the solution explorer source control> remove. 

I will test and clean up the zip version shortly.

The compile error is unrelated to the source control issue. 

Please switch off vMicro>compiler>deep search and switch on verbose. then try the build and if it fails post the output as a .txt or email to info[at]visualmicro.com

Thanks
  
Back to top
IP Logged
 
RBB01
Junior Member
**
Offline


Posts: 24
Joined: Mar 3rd, 2016
Re: Traffic_Light Example
Reply #2 - Jul 14th, 2016 at 9:45am
Print Post  
Same error. Traffic_Light.txt attached, Deep Search off, Verbose on.
  

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: Traffic_Light Example
Reply #3 - Jul 14th, 2016 at 10:13am
Print Post  
I had a quick look at the project/zip.

The project doesn't appear to have the .h files included. Please use the "solution explorer>show all files", right click the .h files and "Include in the project"

Then try to build

Thanks
  
Back to top
IP Logged
 
RBB01
Junior Member
**
Offline


Posts: 24
Joined: Mar 3rd, 2016
Re: Traffic_Light Example
Reply #4 - Jul 14th, 2016 at 10:58am
Print Post  
Added Lights.h & lamps.h and pressed F5. This appeared to build but could not copy output due to pop-up that "This project is out of date:" Traffic_Light - Debug Win32 "Would you like to build it? I clicked Yes, output:

1>------ Build started: Project: Traffic_Light, Configuration: Debug Win32 ------
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(40,5): warning MSB8005: The property 'NMakeBuildCommandLine' doesn't exist.  Skipping...
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

Output.Micro Build has:
#####################
Compiling 'Traffic_Light' for 'Arduino/Genuino Zero (Programming Port)'
Program size: 8,620 bytes (used 3% of a 262,144 byte maximum) (0.56 secs)
 
Uploading 'Traffic_Light' to 'Arduino/Genuino Zero (Programming Port)' using 'COM18'
Open On-Chip Debugger 0.9.0-gd4b7679 (2015-06-10-22:24)
Licensed under GNU GPL v2
For bug reports, read
     http://openocd.org/doc/doxygen/bugs.html
debug_level: 0
adapter speed: 500 kHz
adapter_nsrst_delay: 100
cortex_m reset_config sysresetreq
target state: halted
target halted due to debug-request, current mode: Thread 
xPSR: 0x81000000 pc: 0x000005e8 msp: 0x20007ffc
** Programming Started **
auto erase enabled
wrote 24576 bytes from file fic_Light.ino.bin in 3.012172s (7.968 KiB/s)
** Programming Finished **
** Verify Started **
verified 8812 bytes in 0.748043s (11.504 KiB/s)
** Verified OK **
** Resetting Target **
     The upload process has finished.
shutdown command invoked

########################
If I click No to  pop-up that "This project is out of date:" Traffic_Light - Debug Win32 "Would you like to build it? The new pop-up is "Unable to start debugging. Cannot access as disposed object. Object name: 'Debugger'."

If I Build. Clean Build & Build.Rebuild Output.Micro Build is:

Compiling 'Traffic_Light' for 'Arduino/Genuino Zero (Programming Port)'
Traffic_Light.ino:In function 'void SetNewState(int)
Lights.ino:42:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
:char *activeLamp = "yellow"
Lights.ino:41:6: warning: unused variable 'delayTime' [-Wunused-variable]
:int delayTime = 100
Lights.ino:42:8: warning: unused variable 'activeLamp' [-Wunused-variable]
:char *activeLamp = "yellow"
Traffic_Light.ino:In function 'LampState* FindStartState2()
Lamps.ino:29:1: warning: control reaches end of non-void function [-Wreturn-type]
Program size: 8,620 bytes (used 3% of a 262,144 byte maximum) (17.93 secs)

Pressing F5 generates "This project is out of date:" Traffic_Light - Debug Win32 "Would you like to build it? Yes, No or Cancel generates  pop-up is "Unable to start debugging. Cannot access as disposed object. Object name: 'Debugger'." which is as occurs in http://www.visualmicro.com/forums/YaBB.pl?num=1468416233


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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Traffic_Light Example
Reply #5 - Jul 14th, 2016 at 11:02am
Print Post  
Okay that's better you can see the arduino build was fine and also the upload.

You can stop visual studio attempting to build by clicking "Build>Configuration Manager" and then unchecking any checkboxes you see on the screen that opens.

  
Back to top
IP Logged
 
RBB01
Junior Member
**
Offline


Posts: 24
Joined: Mar 3rd, 2016
Re: Traffic_Light Example
Reply #6 - Jul 14th, 2016 at 11:12am
Print Post  
Thanks.

Clean and rebuild then F5 generates  pop-up is "Unable to start debugging. Cannot access as disposed object. Object name: 'Debugger'."
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Traffic_Light Example
Reply #7 - Jul 14th, 2016 at 12:11pm
Print Post  
This Topic was moved here from Arduino Debugger [move by] Visual Micro.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint