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
0 answers

New attiny85 fuse bits are all set by default

I've been working on an Attiny85 project and am trying to program the microcontroller using WinAVR and Burn-O-Mat to burn the code onto the chip. After i plug the chip to the arduino ISP and try to read the fuse bits using Burn-O-Mat, I see all the…
0
votes
1 answer

how to include external .C and .h file in AVR studio-4 project

I am new in AVR world.i have found a LCD file to use in my project. i have the .c and .h file to use. but i don't know how to include those file in my new project. Can any one give a relevant tutorial or example to solve this problem.
Md . Sojib Ahmed
  • 363
  • 2
  • 13
0
votes
1 answer

Avrdude .hex with Fuses

I have used a makefile to build my code and I have produced an ELF file. To make it understandable for my attiny85, I usually use avr-objcopy -O ihex -R .eeprom -R .fuse main.elf main_all.hex. I get a hex file containing fuse settings. I flash the…
Hert
  • 11
  • 1
  • 3
0
votes
1 answer

Code wont load to my attiny2313 microcontroller

I connected the USBasp correctly and also updated the firmware. no build error and after choosing USBasp as tool, it says avrdud is ready but my led wont turn on. this is what appears after loading with USBasp: avrdude.exe: set SCK frequency to…
soni_m
  • 11
  • 1
  • 2
0
votes
1 answer

My program runs well on gnu-gcc but not on gnu gcc for avr

I'm learning C. So I wrote this distance timer program. It runs well with gnu-gcc compiler. But but with gnu-gcc for avr it does compile but when I run it I get only a cmd session that does nothing except disappearing once I press any button. I…
Allan Mayers
  • 115
  • 1
  • 2
  • 7
0
votes
1 answer

Error during compile of Megablink demo using freeRTOS for atmega2560 using WinAVR

The following RTOS .c files compile fine during 'make': task.c, queue.c, tasks.c, croutines.c, list.c Then I get the following error: serial.c: In function 'xSerialPortReInit' serial.c: 665:error: 'ulWantedBaud' undeclared (first use in this …
rthadc
  • 1
0
votes
1 answer

RPM meter and send value with serial communication

I have a question about how to reading RPM and send value with serial It's my code: char init(void) { UBRRH=(uint8_t) (UBRR_CALC>>8); UBRRL=(uint8_t) UBRR_CALC; UCSRB=(1<
Lukis triya
  • 1
  • 1
  • 3
0
votes
2 answers

Send Decimal with USART in ATMEGA32

I have problem in send a serial data via USART it's send a ASCII not decimal. this is my code : while(!(UCSRA&(1<>8); UBRRL=(uint8_t)…
Lukis triya
  • 1
  • 1
  • 3
0
votes
1 answer

Basic I/O in Microcontroller AVR using WinAVR

I want to drive a BLDC motor, i use ATMEGA32 as CPU of controller , i have a problem in reading hall effect sensor from BLDC motor this is my code…
Lukis triya
  • 1
  • 1
  • 3
0
votes
1 answer

How to run AVRDUDE in C# windows form application visual studio 2010

I am trying to run avrdude in C# application in visual studio 2010 and taking its output in a RichTextox. Here is my code:- void proc_OutputDataReceived(object sender, DataReceivedEventArgs e) { if (e.Data != null) { …
0
votes
1 answer

main.c:19: undefined reference to `usbInit' & undefined reference to `usbPoll'

I faced with this error in building my project using v-usb library.followed is my code : #include #include #include #include "usbdrv.h" #include USB_PUBLIC uchar usbFunctionSetup(uchar…
Bashid
  • 101
  • 1
  • 10
0
votes
1 answer

Undefined Reference to (both object variables and base variables), C++ AVR

IntermediateRobotFunctions.cpp: /* * IntermediateRobotFunctions.cpp * * Created on: 27 Mar 2015 * Author: Edward */ #include "IntermediateRobotFunctions.hpp" IntermediateRobotFunctions::IntermediateRobotFunctions() { block =…
0
votes
2 answers

Switch-case not works for AVR Atmega32 Microcontroller?

Hello Friends i dont know what happen neither switch-case nor if,else statement works for me i want to give some data to both PORTB & PORTD when some specific data are come to the PORTA register in my "switch block" previously i used PINA instead of…
Shrikant Vaishnav
  • 70
  • 1
  • 4
  • 12
0
votes
1 answer

How to program ATmega32 using the USB to serial programmer

I use winxp inside a virtualbox with host as ubuntu. The usb programmer connected to host is routed to the guest. I use WinAVR which uses avrdude; the relevant fields in makefile are given as Atmega32 for processor, port as usb and programmer as…
Quest
  • 119
  • 1
  • 1
  • 8
0
votes
1 answer

AVRDUDE does not write flash

I'm having a problem with AVRDUDE. It does not even attempt to write the hex file to the AVR. In WinAVR there is no problem. (I can't use WinAVR, because I've got only the hex file.) L:\>avrdude -c SAJAT -p t2313 -P COM1 -U…