Questions tagged [winavr]

Open source software development tools for the Atmel AVR series.

WinAVR is a suite of executable, open source software development tools for the Atmel AVR series of RISC microprocessors hosted on the Windows platform. It includes the GNU GCC compiler for C and C++.

68 questions
0
votes
1 answer

Code from ICCV7- AVR displays garbled in text editor?

I have code written for Atmega64 , with "ICCV7 for AVR" (C Cross Compiler for the Atmel AVR), I can also open and edit it with sourceInsight, but when I open it with text editor (the most common one on Windows), it is all garbled. What can I do…
Julia Chen
  • 3
  • 1
  • 2
0
votes
2 answers

How to flash error if a macro not defined?

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 . . . #if LCD_IO_MODE #ifndef LCD_PORT #error LCD_PORT not defined //(e.g. #define…
Adi
  • 407
  • 1
  • 4
  • 13
0
votes
1 answer

Implementing timer code for Atmega8 into Atmega16

This code snippet is written for Atmega8 taken from clapper circuit using Atmega8. Can anyone convert this code snippet for Atmega16 with a little explanation. As I am trying to implement the same for Atmega16 and having some trouble with the timer…
-1
votes
1 answer

WinAVR no rule for main.elf

I am trying to generate .hex file to be burned on micro-controller. I'm using WinAVR. With MFile I generated makefile for my ATmega8. Here is the makefile main.c Now when I try to make all from Programmer's Notepad it gives me error saying : >…
Maifee Ul Asad
  • 3,992
  • 6
  • 38
  • 86
-1
votes
1 answer

how to control servo motor using embedded c using simple code?

i'm working on a school project "automatic railway system" my project suppose to close the gate when the train coming to the station with a buzzer on with 90 sec count down display on 7-seg. and a led flashing. after the train leaving the station,…
Sara Gero
  • 1
  • 2
-1
votes
1 answer

Why is char acting as int in for loop?

#include "avr/io.h" main() { unsigned char= z ; for(z=0;z<200;z++) PORTA=z; //PORTA dispalys the value of z } Please explain the working of the loop as z is char and is acting as int
splash
  • 37
  • 1
-3
votes
2 answers

Getting the contents of Arduino's flash memory back

I have a code burned on Arduino uno and I want to get the hex file of this code back?! How can I make that ?!
Armia Wagdy
  • 567
  • 6
  • 22
-4
votes
2 answers

Help required in WinAvr programming

i am trying to run a source code of win avr . after making the makefile when i try to send it using avrdude it is giving me error. Please any one can help me
user88233
  • 11
  • 1
1 2 3 4
5