Top "Avr-gcc" questions

avr-gcc is a suite of executable software development tools for Atmel AVR RISC processors

AVR linker error, "relocation truncated to fit"

I'm trying to compile some code for an ATmega328 micro, and I want use the libraries and the core of …

linker arduino linker-errors avr avr-gcc
8 bit enum, in C

I have to store instructions, commands that I will be receiving via serial. The commands will be 8 bits long. I …

c avr avr-gcc winavr avr-studio4
Arduino (Uno) Ethernet client connection fails after many client prints

I'm using an Arduino Uno with Ethernet Shield. After sending many HTTP requests, client.println(...), the client starts to fail …

c arduino avr avr-gcc
PSTR() on __FUNCTION__

Using avr-gcc it is possible to store data on Program Memory in order to save RAM. This is acomplished using …

c++ c embedded avr-gcc
How can I perform pre-main initialization in C/C++ with avr-gcc?

In order to ensure that some initialization code runs before main (using Arduino/avr-gcc) I have code such as the …

c++ c initialization arduino avr-gcc
Disable function declaration error in avr g++

I am using this Makefile to compile my Arduino sketches which has the following flags for CPP and C CPPFLAGS += …

c++ makefile compiler-errors arduino avr-gcc
invalid conversion from volatile uint8_t* to uint8_t*

I'm trying to set a library in C++ for AVR. The idea is to have an easy way of configuring …

c++ avr-gcc
-gc-sections discards used data

Using avr-gcc, avr-ld I'm attempting to severely reduce the size of the output file by using fdata-sections -ffunction-sections and gc-sections. …

c garbage-collection avr-gcc
Changing a global variable in C

I am running a C program on an AVR chip. Whenever a serial signal is heard, it runs the serial …

c avr-gcc
AVR Studio 5: compile C++ code

When creating a project in AVR Studio 5, it creates a .c file with following content: #include <avr/io.h&…

c++ avr avr-gcc