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 same code works with arduino IDE but not in VS (Read 1695 times)
Christoph
Junior Member
**
Offline


Posts: 32
Joined: Sep 4th, 2020
same code works with arduino IDE but not in VS
Dec 17th, 2020 at 1:05pm
Print Post  
Hello,

I have some code with an DS2413P onewire and when I upload with arduino IDE it works fine, finds bus device and toggles the leds. 

Same code uploaded with visual studio, uploading works no errors or so but tells me it could not find any bus device.

Can someone tell me what could be the problem?

Thank you in advance!
Christoph
« Last Edit: Dec 17th, 2020 at 1:06pm by Christoph »  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: same code works with arduino IDE but not in VS
Reply #1 - Dec 17th, 2020 at 1:10pm
Print Post  
Thanks for the report.

Can you also enable the Verbose and Show Build Properties (as shown at the top of the page) and attach the full build output as well? (so we can understand the environment better)
  
Back to top
 
IP Logged
 
Christoph
Junior Member
**
Offline


Posts: 32
Joined: Sep 4th, 2020
Re: same code works with arduino IDE but not in VS
Reply #2 - Dec 18th, 2020 at 8:29am
Print Post  
Yes - sry for oblivion!

  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: same code works with arduino IDE but not in VS
Reply #3 - Dec 18th, 2020 at 10:35am
Print Post  
Thanks for the detail, we will continue to investigate.

Can you confirm you have the same problem when building in Release Mode in Visual Micro?
« Last Edit: Dec 18th, 2020 at 12:02pm by Simon@Visual Micro »  
Back to top
 
IP Logged
 
Christoph
Junior Member
**
Offline


Posts: 32
Joined: Sep 4th, 2020
Re: same code works with arduino IDE but not in VS
Reply #4 - Dec 18th, 2020 at 11:44am
Print Post  
Yes same problem
  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: same code works with arduino IDE but not in VS
Reply #5 - Dec 18th, 2020 at 12:03pm
Print Post  
Thanks for confirming.

Would you also be able to attach the full Output from the Arduino IDE with the File > Preferences > Show Verbose Output during: Compilation [Yes] set?

It may also be worth upgrading Visual Micro to the latest forum release from the page below (20.09.10.23):
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
 
IP Logged
 
Christoph
Junior Member
**
Offline


Posts: 32
Joined: Sep 4th, 2020
Re: same code works with arduino IDE but not in VS
Reply #6 - Dec 18th, 2020 at 12:56pm
Print Post  
I will do!

Here is the copied verbose output from arduino ide
  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: same code works with arduino IDE but not in VS
Reply #7 - Dec 18th, 2020 at 1:27pm
Print Post  
Also please ensure the Optimization is set to Default in the following places:
1) vMicro > Debugger > Optimization = Default
2) vMicro > Project Properties > Ensure Disable Optimization for Core/Libraries/Project are all set to False
3) vMicro > Project Properties > Ensure Configuration Extra Flags for Core/Libraries/Project are all all empty
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint