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 Example Code that works in Arduino IDE, not working in Atmel Studio 7 (Read 2843 times)
icehawk255
Newbies
*
Offline


Posts: 2
Joined: Oct 5th, 2016
Example Code that works in Arduino IDE, not working in Atmel Studio 7
Oct 5th, 2016 at 7:44pm
Print Post  
Hello,

I just got Atmel Studio 7 and Visual Micro up and running and have been loving it. Everythng has worked nicely so far up until tried to use the USB host shield 2.0 lib from GtHub: https://github.com/felis/USB_Host_Shield_2.0

The examples here will compile and download on both IDEs. However, when compiled/uploaded from Atmel studio, the Host Shield fails to initialize. When I use the Arduino IDE, it works perfectly. 

Am I correct in thinking that there must be some compiler optimization setting that is changing what is going on? I have been testing using the HID => keyboard sketch primarily, but they all seem to behave the same. 

Are there any well know pages about setting Atmel/VM to use AVR GCC and AVR Dude exactly as the Arduino IDE does?

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Example Code that works in Arduino IDE, not working in Atmel Studio 7
Reply #1 - Oct 5th, 2016 at 9:05pm
Print Post  
Hi

Visual micro does what the arduino ide does by using the same config.

Can you please post the compiler output so we can see what you can see.

Also switch on vmicro>compiler>verbose and click rebuild so the output is full/complete.

Then post as .txt or email to info[at]visualmicro.com (along with link to this post)

You should also ensure the toolbar is set to Release and not Debug so we don't have confusion of additional debug  commands.

Finally if using a shield then please what hardware you have and what version of arduino ide

Thanks
« Last Edit: Oct 5th, 2016 at 9:06pm by Tim@Visual Micro »  
Back to top
IP Logged
 
icehawk255
Newbies
*
Offline


Posts: 2
Joined: Oct 5th, 2016
Re: Example Code that works in Arduino IDE, not working in Atmel Studio 7
Reply #2 - Oct 6th, 2016 at 6:32pm
Print Post  
Hi,

I figured out the problem this morning as I was setting up to output the compiler messages. 

I had "Arduino Mega ADK" rather than "Arduino Mega w/ 2560" selected as my board while using an Arduino Mega 2560. This setting worked for most purposes, but not with the USB shield. After changing to the correct board, everything is perfect. 

I would like to give a shout out to the folks at Visual Micro for not only making a great product, but also being on their support game for silly people like me!

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