Questions tagged [atmel-studio]
112 questions
12
votes
5 answers
PIC32 vs dsPIC vs ARM vs AVR, does the architecture matter when we are programming in C-language anyways?
We are currently using 32-bit PIC32 Microcontroller. It is working fine for our needs, but we are also exploring other microcontollers that can suite us better + we have other projects for which we are selecting MCU. For that purpose we have…

TheTechGuy
- 611
- 1
- 7
- 13
9
votes
1 answer
How to enable c++11 support for Atmel Studio?
I am currently using Atmel Studio 7 and I need to enable c++11 support for it. I couldn't find any documentation about this topic. Moreover, I am not even sure it has c++11 support, yet.

ozgur
- 479
- 5
- 12
8
votes
2 answers
Is it really necessary to manually clear the XMEGA timer overflow interrupt flag?
As some of you may know, Atmel provides a software framework (mainly as part of Atmel Studio) that provides drivers and examples and is updated on a more or less regular basis.
In a recent update they explicitly point out, that it is important to…

Rev
- 10,017
- 7
- 40
- 77
7
votes
2 answers
How different is the Arduino language than Atmel Studio language?
I see that on the official Arduino website, the reference page contains the functions and vales you would use specified to the Arduino compiler.
http://arduino.cc/en/Reference/HomePage
What would you use instead, if you are working with Atmel…

Aleatory
- 497
- 2
- 5
- 12
7
votes
3 answers
Better workflow in Atmel Studio 6 for building and transferring program
After having modified my code in Atmel Studio 6, I write the program to my MCU in the following steps:
Click Build or F7
Click Device Programming or Ctrl+Shift+P
Click Apply (to choose programmer+device+protocol)
Click Memory
Click Program
How can…

Andreas
- 713
- 2
- 13
- 21
7
votes
3 answers
Finding the source of a Hard Fault using extended HardFault_Handler
I have been hitting some hard-faults on the firmware I have created with FreeRTOS on a SAMD21 (ARM Cortex-M0) MCU.
So I took a further action to find out the cause and eventually bumped into this article on Code_Red pointing out the snippet…

Mehrad
- 656
- 2
- 7
- 20
6
votes
3 answers
Unusual or Strange Behavior: uint8_t in for loop in avr MCU
I am learning programming MCU with c
I am using atmel studio 7, averdude, USBasp and Atmega16a
this is my code
#define F_CPU 1000000
#include
#include
int main(void) {
DDRA = 0xff;
DDRC = 0xff;
while (1) {
for…

Muhammad Nour
- 527
- 6
- 16
4
votes
1 answer
Using AVR Dragon with Atmel Studio 6
I have an Xmega Xplained 128A1 kit along with an AVR Dragon.
Can anyone help me with the steps to be followed for programming Xmega using Dragon using Atmel Studio 6?
I have downloaded the material from the Atmel website and have the necessary codes…

Enthusiast
- 477
- 1
- 5
- 17
4
votes
3 answers
Convert the type of calculation result in if() to uint8_t
I am writing in C using the Atmel Studio (AVR-C.)
I have an if statement:
if( (rxProcessing < (rxWritePos-1) ) )
Where rxProcessing and rxWritePos are already type uint8_t .
and I want the result of (rxWritePos-1) to be an unsigned 8-bit int (so…

Christianidis Vasileios
- 2,645
- 2
- 9
- 32
4
votes
2 answers
Atmega168 USART RX Interrupt does not trigger
I have been trying to get the USART RX interrupt trigger working on my ATmega168A using the tutorial here (updating my registers as per the datasheet): Tutorials
I have setup the system to use a baud of 4800 at a freq of 1MHz (8Mhz internal…

NoLiver92
- 150
- 9
4
votes
2 answers
Using Atmel Studio 7 to program Arduino Uno
I will like to use AS7 IDE to program the Arduino board, for start Im using Arduino UNO with ATMEGA328P-PU chip. Im using Windows 10 professional
First I used the Arduino IDE in order to run/confirm this simple program that blinks the orange LED…

cyber101
- 93
- 9
4
votes
1 answer
C Documentation for AVR Atmel Studio
I am new to AVR programming and have tried couple of tests on assembly language and were successful.
However, I would like to try out programming in C with Atmel Studio.
Could somebody tell me where I can find the complete documentation of what is…

Babu James
- 301
- 2
- 12
3
votes
2 answers
Problem with Atmega 168 USART receive interrupt ,while communicating with Xbee
Before decreasing my reputation please let me know what I have done wrong. Bear with me as I am a newbie.
I have written a program so that a receiver radio module sends 1 when it receives an 1 from a broadcaster module.I am using XCTU with a Xbee as…

Rambo partyush
- 115
- 5
- 14
3
votes
4 answers
Atmel Studio 6 Simulator Not Showing Up
I was looking to run the simulator for an AVR controller, but when I went to set my debugging tools as outlined in this video- http://www.youtube.com/watch?v=9QlDSNeuAdY
I do not have anything show up under the drop down both on my PC and Mac…

ControlAltDelete
- 131
- 1
- 1
- 2
3
votes
2 answers
ATSAMC21 - CAN configuration - Nominal bit timing vs. data bit timing & time quanta calculation
I'm trying to configure the CAN bit rate of an ATSAMC21 to 125ksps in a CAN2.0B configuration.
However, after reading through the datasheet, the ASF documentation and the ATMEL start help I'm confused.
I got mainly 3 questions:
What is the…

KarlKarlsom
- 1,792
- 2
- 13
- 26