** PLEASE NOTE **
- Atmel Studio 7 contains some "Arduino" functions unlreated to Visual Micro. These functions convert Arduino projects to .cpp projects that are unique to Atmel and outside of the Arduino open source eco system . This confuses some users who mistakenly believe they are using Visual Micro features and have subsequently given poor reviews in the Atmel Gallery (or emailed complaints). How to tell if you are using a Visual Micro project? Simple... If a project does not contain an .ino source code of the same name then Visual Micro is not managing the project or the build process. Please use the vMicro menu to open or create your first Arduino projects with Visual Micro.
- Problem: Atmel Studio 7 automatically adds source code to new projects. The code must be deleted for an Arduino project to compile correctly. The code is a main.cpp in the project folder and a directory below the project called Device_startup. Solution: Reinstated in version 1612.01 of Visual Micro, a prompt will appear after compilation requesting the files be deleted. In previous versions only a message was displayed in the compiler output. It is difficult to know how to handle this problem. Some advanced users might want to have a main.cpp and will be annoyed by the prompt. However other novice users have been leaving poor reviews since the prompt was removed.
- Installing from within the IDE via "Tools>Extensions and Updates>Online" is recommended. (Some users will not be able to install from outside of the IDE as a result of an oversight by Microsoft when releasing the Visual Studio shell upon which Atmel Studio is based)
- Switching on "vMicro>Debugger>Atmel Studio Debugger" allows Atmel ICE and other hardware debuggers to be used in combination with a standard Arduino upload. Please follow the guide in the output window after a build to ensure a project_name.cpp is used as an alternatve to .ino files but ensure an empty or dummy project_name.ino remains in the project. The project_name.ino is ignored by the compiler when a .cpp is used but Visual Micro will assume a standard non-arduino atmel project without the .ino.
- We have an active forum. Please report issues or ask questions. You will be answered. Thank you.
A free Arduino extension for Atmel Studio. Arduino compatible build and Atmel Studio debugging. A paid version is available at low cost with many additional features.
If you enjoy using the free version the please leave a review in the Atmel Gallery. If this product fails to install then please install from within atmel studio tools>extensions and updates>online>arduino ide for atmel studiio 7.
Advanded Mode (.ino sources ignored, build from real source code not a temp folder, still applies all other arduino build rules for core and libraries) - Switch on menu command "vMicro>Debugger>Atmel Studio" to use the Atmel Studio Avr Simulator or Hardware Debuggers (ie: Jtag/Swd/Segger) instead of the Visual Micro Software debugger. Add a project_name.cpp to override all .ino files. Click "vMicro>Toggle Hidden Files" to more easily see and debug Arduino core and library source code.
Known bugs in this release: After installing new hardware in the Board Manager we must click Rescan twice before the new hardware appears in the list.
Simple Mode (builds all sources and applies arduino build rules to .ino files, builds in a temp folder - not recommended for hardware debugging)
Advanced User Tips
Local project Board.txt allows override of most Arduino build properties (requires full version)
Easy access to the underlying Arduino source codes using menu command "vMicro>Toggle Hidden Files"
How to use Segger in Atmel Studio
In order to use J-Link with Atmel Studio, usually it is not necessary to separately install the J-Link software and documentation package. Anyhow, we recommend to make sure that the latest version of the J-Link software is installed and the DLL in Atmel Studio is updated to the latest version. Atmel Studio comes with a lot sample projects for various eval boards.
Using a Atmel Studio project with J-Link
The following steps explain how to configure a project to be used with J-Link.
- Open the project to configure
- Click Project | Properties from the main menu
- Click the Tool tab and select J-Link
- Make sure that the appropriate target interface (JTAG / SWD / ...) is selected
- Make sure that a proper target interface speed is selected (4 MHz works for almost all Cortex-M based targets and leads to good performance)
- Click Build | Build Solution from the main menu
- In order to start a debug session, click Start Debugging and Break.
Ready for debugging
Now the project is ready to be debugged with J-Link / J-Trace.