Massimo Banzi From Arduino.cc Talks Atmel Studio 7
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.
Work with or without .ino files, with or without bootloader, share code between projects and with other Arduino users.
recent news ..
1st Septmeber 2016 - Add a project_name.cpp to your Arduino project. The .ino files will be ignored, the build will not use a temp folder. The Atmel Studio debugger will work really well!! (important to keep a project_name.ino but it can be empty).
29th Auguest 2016 - JTAG - SEGGER - ICE - ARDUINO + ATMEL - Arduino compatible build/upload combined with Atmel Studio hardware debugging. Connect Usb, connect JTAG, switch on the new menu item "vMicro>Debugger>Atmel Studio" then click "Debug>Start Debugging and Break"
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
To use native Atmel debugging instead of the Visual Micro Serial debugger: Build with Visual Micro then click "File>Open>Object file for debugging". This is an Atmel Studio feature which is described in the Atmel Studio documentation. Some Arduino boards, such as the Arduino Uno, are difficult to hardware debug.
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.