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 setup() in separate file (Read 1908 times)
Craos
Newbies
*
Offline


Posts: 2
Joined: Mar 12th, 2018
setup() in separate file
Mar 12th, 2018 at 4:24pm
Print Post  
I put setup() function in separate file, when using Arduino IDE. Unfortunately it doesn't work when using vMicro with MS VS 2017 - simply, nothing happens when uploaded to a board. When I move setup() to "main" file, it works fine. Loop and other functions work outside the main file without any problem. Is there a way, how to put setup() in separate file using vMicro?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: setup() in separate file
Reply #1 - Mar 12th, 2018 at 10:22pm
Print Post  
How about with tool bar set to Release instead of Debug?
  
Back to top
IP Logged
 
Craos
Newbies
*
Offline


Posts: 2
Joined: Mar 12th, 2018
Re: setup() in separate file
Reply #2 - Mar 13th, 2018 at 7:20am
Print Post  
Nice, thanks.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: setup() in separate file
Reply #3 - Mar 13th, 2018 at 1:31pm
Print Post  
Great. I will look into that. The debugger must be receiving a startup serial message and incorrectly assuming it has to activate the main .ino file then hitting an exception so serial is not displayed.

  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint