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 Native C++ development of Arduino in Atmel Studio (Read 3119 times)
Mustafa Yassin
Newbies
*
Offline


Posts: 1
Joined: Jan 22nd, 2015
Native C++ development of Arduino in Atmel Studio
Jan 22nd, 2015 at 2:48pm
Print Post  
Hello every body,

I'm an electronic engineer with a decent experience in microcontrollers. I'm using visual micro with visual studio to develop arduino applications. It's fairly a good development environment for Arduino (VM + VS), (although not pretty much convinced with the debugger). But for advanced developers, it would be much more appealing to program Arduino using Atmel Studio natively in C++. I mean to use Atmel Studio natively, while including Arduino core libraries and other Arduino libraries into the project (the core still resides in the original Arduino IDE location). I want to use main.cpp directly instead of loop() and setup(), while at the same time, still have access to Arduino API like pinMode() ..etc

This means getting rid of the Arduino sketches and making real professional development in C++ while benefiting from the Arduino community and libraries. This would really be the best of both worlds and a very good choice for professional developers. This will give access to native debugging using Atmel SAMI-ICE JTAG debugger, and simulator and other Atmel Studio features.

I would appreciate a feedback on this elaborating whether Visual Micro will implement this in the future or whether I can do it right now by tweaking the build targets...etc

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Native C++ development of Arduino in Atmel Studio
Reply #1 - Jan 22nd, 2015 at 3:52pm
Print Post  
Hi,

We are working on the tools to make this easier for people but there are a few small thinks you can do.

1) Atmel
Build with visual micro then click "File>Open object file for debugging". This will give you a clean non-visual micro project than can use the standard atmel upload, debug or sim tools

2)Arduino/Vm
Click "Project>Show all sketch core and libraries" allowing you to see the arduino core and libraries in your projects
Use the visual micro project properties to define constants that can be used within modified core and library sources.

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