Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [atmel-studio]

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

0
votes
1answer
37 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
0answers
211 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....
1
vote
1answer
388 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/...
0
votes
0answers
144 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
2answers
177 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
0answers
37 views

Problems using Arduino pcb as ISP with Atmel Studio 7

This issue has been bugging me for the past few days! I have learned a lot with my Arduino and the Arduino IDE over the past few years and decided to learn how to make faster, leaner code. I want to ...
1
vote
1answer
1k 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
2answers
159 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 ...
0
votes
2answers
953 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 ...
1
vote
1answer
812 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 ...
0
votes
1answer
1k 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
49 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
0answers
72 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 ...
-1
votes
1answer
68 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 ...
5
votes
1answer
179 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 ...
0
votes
1answer
150 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
3answers
1k 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
1answer
1k 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
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
3answers
669 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 ...
1
vote
0answers
157 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
5k 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
1k 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/...
-1
votes
1answer
866 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 ...
1
vote
2answers
1k 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 ...
0
votes
1answer
202 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 ...
2
votes
0answers
89 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 ...
1
vote
2answers
687 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? ...
0
votes
1answer
412 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
188 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
85 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
2answers
6k 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 ...
4
votes
1answer
252 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 ...
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
90 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 ...
1
vote
3answers
384 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
1answer
909 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 ...
0
votes
1answer
230 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/...
-1
votes
1answer
538 views

Learning to use ATmel Studio - using BOSSA downloader

The basic question - is BOSSA the right SOFTWARE "tool" to use in ATmel Studio to connect / download to Arduino DUE AND NOT using VisualMicro? I cannot get BOSSA to AUtoScan for COM port. Getting ...
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?
1
vote
0answers
976 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
4answers
368 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, ...
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 ...
0
votes
2answers
140 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
1answer
256 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 ...
1
vote
4answers
1k 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 ...
11
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). ...