The avr-toolchain tag has no usage guidance.
1
vote
1answer
31 views
Compiling source with Arduino.h with avr-g++
How should I include the Arduino libraries when I'm compiling from the the command line? I tried to do it like this:
avr-g++ -g -Os -Wall -mcall-prologues -mmcu=atmega328p -fno-exceptions -o blink....
1
vote
2answers
117 views
programming arduino in pure c
I'm trying to flash pure c-code to arduino Mega2560 board from linux using avr-gcc & avrdude. Compilation is done , now trying to flash using avr-dude, getting error as "avrdude: stk500_recv(): ...
0
votes
3answers
71 views
Can I port a project built on Arduino Uno to a standalone ATmega328 using the exact same code?
I'm building an IoT power usage monitor in which the data is logged using a RTC and an SD card module and a web app hosted on an ESP8266 gives access to this data. My question is can I use the exact ...
0
votes
1answer
33 views
avr-gcc -D is ignored
Im trying to use XCode to compile avr program with arduino libs but seems like something wrong with my Makefile because it throws me warnings like
# warning "F_CPU not defined for <util/delay.h&...
0
votes
2answers
62 views
Logging without IDE
Is there a way to log events on Arduino when developing using C / AVR toolchain, and not the Arduino IDE? Working on Ubuntu.
2
votes
1answer
71 views
How can I make Arduino IDE use Atmel's provided toolchain? (Linux/Ubuntu)
I have an Arduino based board using ATmega168PB, but so far only Atmel's provided toolchain supports this microcontroller. I can download the toolchain from Atmel's website, but I am not sure how to ...
2
votes
2answers
1k views
How to program AVR in Mac OS X?
In our college we are using a module developed by IIT Bombay (called FIREBIRD V[ver 5]). It has ATmega2560 and ATmega8 microcontrollers (master and slave) with bootloader.
The staff uses AVR Studio ...
2
votes
1answer
147 views
Interleave Assembly and Source for avr-objdump
Trying to get avr-objdump to generate a listing that interleaves the assembly with the source code. I've tried a bunch of debugging arguments in different configurations but I can't seem to get it. ...
3
votes
1answer
293 views
Arduino in Eclipse IDE: How to add SPI library (core library already added)?
I want to use eclipse for arduino programming, so I followed the guides to set up a static project for the arduino core library. Then I added the library file (.a) and the .h and .cpp files to my new ...
2
votes
1answer
1k views
Storing in a global variable using inline assembly
What I'm trying to do is pretty basic: I have a global variable and I'm trying to store some value in it (specifically, the SP_H and SP_L values).
The variable is an array of structs and I'm trying ...
1
vote
1answer
110 views
Why are Tone.cpp and IPAddress.cpp getting built for my project?
I'm using avr-size to see the size of library objects to free up some FLASH. Why are Tone.cpp and IPAddress.cpp getting built? e.g.
$ cd /var/folders/3j/6wp3hvrj34n0xg3xzq6vjq380000gn/T/...
11
votes
2answers
538 views
Assembly on the Arduino: IO registers
Question: What registers do I use to access the IO on the Arduino Uno when I am using assembly for programming?
Background: I was interested in practicing my assembly language skills on the Arduino (...