AVR-GCC is part of the GNU Compiler Collection (GCC) collection of open source compilers that targets the popular AVR microntroller produced by Atmel. It supports both the C and C++ languages.

learn more… | top users | synonyms

0
votes
0answers
21 views

GLCD t6963 auto write problem

I am trying to send data to a 128x240 display driven by t6963 in autowrite mode by ATMega128 under AVR-GCC. the code gets stuck when checking DAWRDY bit ( to see if the driver is ready for receiving ...
2
votes
3answers
91 views

'bit' type for AVR Microcontroller programming

I have written a code for 8051 microcontroller, where I used bit type, something like this: ...
0
votes
1answer
60 views

Problem Changing system clock frequency

I have an ATtiny85 and I'm trying to set the clock to 8Mhz. I have read the data sheet and some discussions on how to do this but am not having any luck getting it to work. I have included my code ...
0
votes
0answers
31 views

How to change PORTX register in other place of program?(Codevision & GCC)

i have a question about GCC and CodeVision: How can i changing PORTX register in other place of program. as you know, normally we setting it at Main function inside DDRX rigester for example like ...
0
votes
0answers
48 views

How can i port this Lib(ProGFX) to CodeVision(compiler)?

i want to port this library to CodeVision(compiler). http://progfx.org/ How can i do it?
2
votes
1answer
71 views

LED remains off on ATmega16

I wrote this simple program: #include <avr/io.h> int main(void) { DDRA = 0xff; PORTA = 0xff; while(1) { } } When I program it to my brand new ...
1
vote
1answer
85 views

AVR-GCC: Ports Undeclared when compiling

My Setup I'm running Ubuntu 12.10, and I want to be able to use gcc and avrdude to compile and program my ATmega328. I followed this Ladyada tutorial: Ladyada AVR Tutorial Everything installed ...
2
votes
3answers
178 views

Short String overflows.text area on ATtiny85, Arduino IDE

I'm using the Arduino IDE with arduino-tiny (https://code.google.com/p/arduino-tiny/) on an ATTIny85. My code is maxing out the RAM, or so it seems: Adding a ...
1
vote
2answers
245 views

Minimum files for Atmega1284p AVR-GCC?

does someone have the minimum setup (ie. a 1284p Makefile and an example blink.c) for an ATMega1284p and AVR-GCC? I seem to be ...
4
votes
0answers
216 views

Programming an ATmega1284p with Arduino IDE and internal RC Oscillator?

I'd like to program an ATmega1284p with my AVR Dragon and the Arduino IDE. So far I have installed mighty1284p (http://maniacbug.wordpress.com/2011/11/27/arduino-on-atmega1284p-4/), after writing my ...
1
vote
1answer
48 views

How to flash error if a macro is not defined in program

I want my program to flash compile time error like "LCD_PORT not defined" if it is not defined in program itself. For that I modified the header file like this ...
1
vote
1answer
278 views

Pointer Size using eeprom.h with ATmega328p in AVR-GCC

I am working on a project that randomly reads and writes large blocks of data from EEPROM, based on user input. I have used the EEPROM before, but I never really thought about this. In the operations ...
1
vote
2answers
541 views

AVR GCC : Global / Static Array not getting initialized properly

Im having problem with global arrays in my C code. What i am trying to do is to use a display buffer (array of 8 uint8_t with each uint8_t representing a row) to light up the leds in 8x8 led matrix ...
4
votes
2answers
102 views

Global Array Size Affects Clock Frequency Only On Linux (avr-gcc)

I am having the most peculiar problem. When the size of a global array changes, it alters the clock frequency of the ATmega164a. This is on Linux. When compiled on Windows, this problem doesn't occur ...
0
votes
3answers
331 views

Serial communication in Atmega128

I want to send some string to PC via serial port. In cute com (software) its displaying the string but with some chars missing. Also some hex numbers are appended at the start and end of the string. ...

15 30 50 per page