Questions tagged [atmel-studio]

An Integrated Development Platform for programming and debugging various Atmel microcontrollers including AVRs (which are used in many Arduino boards).

Filter by
Sorted by
Tagged with
12
votes
1answer
2k views

Internet connectivity for the Arduino Due using AtmelStudio?

What hardware and software solutions work and what are the tradeoffs for connecting an Arduino Due to the internet? I gather the ethernet hardware is much cheaper than WiFi hardware (€29 versus €69). ...
4
votes
1answer
281 views

How can I indicate that I am using ATmega2560 so that Arduino libraries understand it?

I am developing AVR microcontollers in Atmle Studio and sometimes I am using Arduino libraries(such as LiquidCrystal). When I initialize LiquidCrystal lcd(12, 11, 5, 4, 3, 2); I don't think Arduino ...
4
votes
1answer
261 views

Can Atmel Studio 6 Simulator simulate SPI?

I am trying to do PAL composite video output with Arduino Nano. I am using Atmel Studio 6, not the Arduino IDE. I am sending out the picture data via SPI. On the TV I could not see the text I tried to ...
3
votes
2answers
1k views

Can I program AVR Microcontrollers using Arduino Development board with AVR Studio?

I know and I can program any AVR microcontroller with Arduino IDE and Arduino Uno board. Can I use Arduino board with AVR Studio? Or I have to buy an AVR Development board?
2
votes
4answers
408 views

Atmega168 breaking out of ISR

I wrote a code to handle an ISR triggered by UART input. I'm looking for 2 characters or more. I can handle extra characters and garbage values, but problem arises when I get less than 2 chars, ...
2
votes
0answers
26 views

Clock Problem when Migrating from Arduino IDE Mighty Core to Atmel Studio

I've been programming an ATMega1284 using the Arduino IDE with the MightyCore package. I'm now trying to migrate to Atmel Studio. Atmel Studio (7.0) will now compile the sketch and all required ...
2
votes
0answers
97 views

SPI Interface between Arduino UNO and EVK1100 [closed]

I'm using Arduino Uno board as master and AVR32UC3A0512 as slave. I've written code for arduino using SPI.h library, and Atmel Studio 6.2 using spi.h. I'm sending data from arduino to atmel i.e from ...
2
votes
0answers
1k views

Cannot program Mega2560 using Atmel Studio 6.2 and avrdude

So I will admit that I am a noob to Arduino. I have some experience programming microcontrollers, and that was back in the day (about 4 years ago - such as the Freescale 68HC12) so up until this point ...
1
vote
2answers
8k views

Where is documentation on Arduino's Internal Interrupts?

First time arduino programmer here...however I have programmed the TI MSP430 in the past... I am trying to figure out how to configure internal Interrupt Vectors on this Arduino Uno. In the Arduino ...
1
vote
1answer
3k views

Equivalent of millis() in Atmel studio

This code It works in atmel studio.But this millis function is starting to run 31-34 miliseconds behind of arduino millis fuction.Why?I am adding picture. Picture: https://imageshack.com/a/img922/...
1
vote
3answers
420 views

Why does my LED turn off automatically after about 18 seconds on its own?

I am using the Arduino Due and I am programming it with Atmel Studio 6.2. I have had a HUGE learning curve using this IDE and the Atmel ASF. Nothing is straightforward as it is in the Arduino IDE. ...
1
vote
4answers
2k views

Using Arduino to learn AVR programming

I want to learn AVR C programming instead of arduino programming. I have an arduino UNO board and few Atmega328 chips that I bought, and Atmel studio for programming. Can I use Arduino Uno board as ...
1
vote
1answer
3k views

Program an Arduino Uno with an Atmel ICE

When I connected my atmel ice to my arduino uno everything went okay. Then I tried debugWIRE and since then I can't connect to my ATMEGA328p. I get the error Failed to enter programming mode. ...
1
vote
1answer
1k views

Arduino Due's clock frequency

I want to change the clock frequency of the Arduino Due. The default value of the main clock, according to the SAM micro-controller, is 4 Mhz. But I found in some forums that it is 84 Mhz. But I need ...
1
vote
2answers
2k views

How Atmel Studio 7 compile Arduino code?

Atmel stated in their website: Atmel Studio 7 features seamless one-click import of projects created in the Arduino development environment. Your sketch, including any libraries it references, will ...
1
vote
2answers
872 views

Programming “Arduino” code to AT90S8515?

I found (from a previous life) an STK500 and a couple AT90S8515's in the recesses of my basement.. that I would like to put to use. Is there a way in which I can write "arduino code" for the 8515? ...
1
vote
1answer
1k views

16 bit register addressing through i2c

Note: I'm using just the atmega chip and atmel studio. Not exactly a full arduino. I have been using the atmega168 with a MAX17040 fuel gauge in a project. The I2C interface between the atmel and the ...
1
vote
1answer
71 views

How can I read this digital pin for Nano by using AVR's Atmel Studo?

How can I read digital pin 6 in AVR? I set the pin as input as follows: DDRD = B0100000; //this will set pin 6 as input But how can I now digital read this pin?: Another way of putting it: how can ...
1
vote
2answers
322 views

VisualMicro Can't compile in debug ('Serial' was not declared in this scope) for attiny84a

I was working on a project build initialy from the Arduino IDE to program an attiny84a (without a bootloader) using the board from https://github.com/damellis/attiny I got an atmel-ice recently and I ...
1
vote
0answers
86 views

Atmega32 push button library problem

I have two files, the first file is a library that I use to handle push buttons and initialize it and the second is where I handle my code and change LED state when push button is pressed, but my code ...
0
votes
3answers
2k views

Why can't the Atmel ATtiny family delay over a minute?

I have some really simple code and tested on an 8 MHz ATtiny85 and ATtiny2313. It's basically a blocking blink: int relayPin = 7; long offPeriod = 1 * 60 * 1000; long onPeriod = 1 * 60 * 1000; ...
0
votes
2answers
2k views

Reading from a pin Arduino Uno (assembly)

I am creating a project in which an Arduino reads (gets) a value from a DHT sensor. The DHT sensor returns two values: Temperature Humidity My assembly code: sbi ddrd,5 cbi ddrd,2 sbi portd,5 ...
0
votes
2answers
451 views

Atmel studio 7 vs Arduino IDE for register level coding? [closed]

Which one is better to get started with register level embedded c coding? Also which one is used professionally?
0
votes
1answer
115 views

Run a loop for only 60 secondes

How do run a code on arduino for only 60 secondes and than shut it down? I know I have to use the millis() function, but I do not know how to it in my code. Sorry if it looks unclear, but I only need ...
0
votes
1answer
219 views

What changes I have to take care while coding from Atmel Studio instead of Arduino IDE?

-Are there any changes in Bootloader? -Why is the coding different for same chip in different softwares? -How to upload the program from Atmel Studio?
0
votes
1answer
93 views

Can I use a UDOO as an Arduino?

I have a UDOO, and I wonder whether or not it is possible to use the Arduino that it has without starting the UDOO's operating system, i.e., I would like use Atmel Studio to load a program within the ...
0
votes
1answer
308 views

Atmel STK500 and Atmel Studio

Is the Atmel STK500 worth using as a AVR programmer and Dev board? I am starting to get to into AVR programming with Atmel studio. I plan on purchasing the AVRDragon and also looking into purchasing ...
0
votes
1answer
193 views

Sending data to UART using Atmel Studio with Attiny84

I want to send data to TFDI. It can be hello world or any value of variable. But I can't do. I haven't found example code on the internet. Some examples doesn't work. I am using Atmel Studio.
0
votes
1answer
63 views

help connecting atmega32 micro-controller to LAN [closed]

I have an atmega32 micro-controller and I would like to connect it to my LAN via ethernet, I'm planing to do this using arduino ethernet shield W5100 but I don't know how to start or how to interface ...
0
votes
1answer
168 views

Using Atmel Studio with Arduino Starter Kit (Uno MCU)

Can someone tell me if it's possible AND safe to use Atmel Studio with Arduino Starter Kit? I'm a newbie to firmware in general and I don't want to "brick" my Arduino Uno Microcontroller. I don't ...
0
votes
1answer
2k views

How to configure 2nd Quadrature Decoder IO pins in Arduino IDE

I am working to read two quadrature encoders using a single Arduino DUE, as part of my summer vacations project. According to the following link http://atmel.force.com/support/servlet/fileField?id=...
0
votes
3answers
991 views

Problem Atmel Studio 7 with uploading

I have a problem with the interworking between Atmel Studio 7 and Arduino IDE 1.6.10. I recently upgraded from IDE 1.0 to 1.6.10 and I can no longer upload my code to the Arduino. Everything works ...
0
votes
1answer
6k views

Atmel studio 7 - my own libraries

I like to use AS7 to make my programs. I know c and some c++, but how things work from there I'm green. I would like to know if there is a folder where I can store my own homemade c and h library ...
0
votes
1answer
2k views

In Linux how do I start up Atmel Studio

I am using Linux Fedora 20. In order to compile C programs for the Arduino, as described in the book "C Programming with Arduino" by Warwick A Smith, pub by Elektor, I have downloaded and untarred/...
0
votes
1answer
965 views

Arduino Due with Atmel Studio 7

I was trying to switch to Atmel Studio for programming my Due project since it became more and more complex. I managed to use the Arduino Importer Wizard to load a blink.ino file and included all the ...
0
votes
1answer
227 views

How to upload Arduino sketches to Atmel chips

I am new in this Arduino coding world and I was trying to make a project. I normally used Arduino Unos all the time, but I was facing a problem and that is that the Arduino Uno has only 13 digital ...
0
votes
1answer
474 views

ATtiny461 PWM CTC mode help

I am a beginner at AVR and programming. I am using ATtiny461 and asked to make code to use timer in PWM and CTC mode and use interrupts and pin toggle, this code worked for me with normal timer and ...
0
votes
1answer
108 views

IDE to program Arduino Uno especially internal interrupt vectors

I am trying to program this Arduino Uno's Timer1 module to use its Input Capture pin to record the times of edges and store / transmit them during the Input Capture Interupt Service Routine, but I ...
0
votes
1answer
2k views

Arduino Attiny 85 IR library compiler error

I'm about to ask a question for the most common problem which everyone has with attiny85 and the IR library. I will try to make this question as simple as possible. Few things about the lib and the ...
0
votes
1answer
255 views

Atmel Studio and Arduino IDE compiles the same code different

Before going in details I need to say I am trying to program Arduino Nano board with atmega328p. Here is my code in Atmel Studio; #include <avr/io.h> #include <string.h> #include <avr/...
0
votes
2answers
153 views

Atmega168 interrupt error handling

I'm using an Atmega168 in a project that involve using the ISRs from multiple sources. I have an ISR hooked up to an external button and a timer, to use it as a reset button after a predetermined hold ...
0
votes
0answers
60 views

Circuit Playground Express & Atmel Studio 7: Issues compiling binary file

I am having trouble compiling a binary .bin file that runs on the Adafruit Circuit Playground Express via Atmel Studio 7. Context: I created an Arduino ino sketch in the Arduino IDE. The code in the ...
0
votes
0answers
39 views

For loop blocking other program mm

Currently practicing my programming knowledge So,am using atmel studio to program atmega328p I have a "for" statement that flashes an LED(led1) 5 times when button1 is pressed. Then another "if" ...
0
votes
0answers
841 views

Adafruit Feather M0 Basic update bootloader

I bought a Feather M0 Basic from a reseller Lawicel however I'm missing the UF2 boot feature. When I press the reset button two times I just get a serial and have to program circuitpython using Bossa....
0
votes
0answers
466 views

How to use watchdog timer for the purpose of recovery from failures in Arduino ATmega2560

Here is my tool-set; Visual Studio with plugin called "Visual Micro" Flashing the HEX file using Atmel Studio. via AVRISP mkII on ATmega 2560 MCU And my simple trial code (I have also some others). ...
0
votes
1answer
2k views

SAMD21 Programming with Atmel ICE Fail to Write

I am trying to program my Adafruit M0 with the SAMD21G18 chip with Atmel studio and the Atmel ICE programmer. I have pin 1 on the ICE connected to 3.3V on the M0, pin 2 connected to SWDIO, pin 4 to ...
0
votes
1answer
2k views

Reading Two Quadrature Encoder using a single Arduino Due

I am working on an autonomous robot in my summer vacations. I am currently working on running the motors of my robot in a closed loop. In order to do so, I have to interface two Quadrature encoders of ...
0
votes
0answers
192 views

How to port Arduino project using non-core parts of the arduino library to atmel studio?

I'm trying to port an Arduino IDE project to Atmel Studio (I have Arduino IDE 1.6.8 and Atmel Studio 7). I've used the Atmel Studio wizard for importing an Arduino Sketch, which has imported my ...
0
votes
1answer
1k views

How do I change fuse bits - not communicating?

Currently I'm working on a project using an ATmega 2560 microcontroller card with a 10 MHz crystal. My main goal is to use the Arduino IDE to upload sketches to this chip to run my bread board ...
-1
votes
1answer
93 views

What software should I use to program my ATmega2560? [closed]

I have written code in Atmel Studio 7. First off, I have to create a hex file of the code. How to create a hex file using Atmel Studio 7? Secondly, I want to upload the code to my ATmega2560, so ...