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
1
vote
3 answers

Grouping Files in Project Explorer in Eclipse

I am newbie to Eclipse, I am planning to use it for AVR development with WinAVR and gcc. The feature I am looking for is the grouping of different files in the project, like all headers together, all source files together and all files excluded from…
Adarsha
  • 2,107
  • 21
  • 27
1
vote
1 answer

How to compile and run c/c++ programs in Notepad++ using the WinAvr compiler

I want to use notepad++ instead of programmer's notepad. How can i use the WinAvr compiler with notepad++??
john
  • 11
  • 1
  • 2
1
vote
2 answers

Generate/ output clock pulse ( C code )

Im using Ethernut 2.1 B and I need a C program that outputs a clock signal at the timer 1 output B, with other words on output OCIB. The frequency of the clock signal should be at 1.0 kHz. Anyone know how this could be done?
Knut Pedersen
  • 205
  • 2
  • 10
1
vote
2 answers

Compiling .c to .hex - cc1.exe: error: avr25: No such file or directory

Today I finally managed to program attiny2313a via Arduino Uno. It was a test blink program. After it was uploaded I saw that the LED blinked with 8 seconds delays instead of 1 second, so I decided to change clock settings in Makefile and main.c and…
Olexiy
  • 460
  • 1
  • 6
  • 14
1
vote
1 answer

memcpy_P function AVR?

void * memcpy_P( void * dest, PGM_VOID_P src, size_t n ) Could someone please tell me where the above function is implemented in the avr libc library? I can only seem to find a definition for the function in a few header files, not the actual…
fulhamHead
  • 617
  • 1
  • 9
  • 20
1
vote
1 answer

Cannot change variable using itself in avr-gcc?

I'm having a problem with some C code for a microcontroller. It seems like a language or compiler problem, but the program will compile just fine. When ran on the microcontroller, however, the problem manifests. (This is for an Atmel AVR…
JYelton
  • 32,870
  • 25
  • 119
  • 184
1
vote
2 answers

Embedded C Passing a String to function

I'm trying to send an array of characters in C, byte by byte to an output for a microcontroller. I'm using the following code: int main() { ... LogOutput("Hello World!"); } void LogOutput(char *msg) { int i; for (i = 0; i < sizeof(msg);…
codedawg82
  • 456
  • 11
  • 24
0
votes
1 answer

Multi-interrupt for real-time data logging with MCU-ATMega 1280

My question is about real time data logging and multi-interrupt. I am trying to program an MCU-ATMega 1280 by winAVR to make it read the pulses from the quadrature encoder(20um/pitch) and store the data into the flash memory (Microchip SST25VF080B,…
0
votes
1 answer

having trouble with winavr gcc in eclipse c/c++

I am using eclipse c/c++ when i create a c project then it does not shows winavr gcc in the toolchain list but i have installed WinAVR-20100110 in c drive and my eclipse is also in the same directory. it shows cygwin,solarize,linux,macosx,mingw gcc
user1432124
0
votes
1 answer

CMake error with AVR WINAVR compiler

The C compiler identification is GNU The CXX compiler identification is GNU Check for working C compiler: C:/WinAVR-20100110/bin/avr-gcc.exe Check for working C compiler: C:/WinAVR-20100110/bin/avr-gcc.exe -- broken CMake Error at C:/Program…
0
votes
1 answer

Build AVR Studio 4 project in AVR Studio 5

I have an AT90USB162 Minimus AVR which I want to integrate into a project. I downloaded the demo code from Minimus USB. This is a driver for using the AVR as a COM port. The project is written for AVR Studio 4, and cannot be loaded as-is in AVR…
Rego
  • 1,104
  • 1
  • 16
  • 39
0
votes
2 answers

help requires in winavr

i am trying to send ---.hex file to my siemens C55 throught serial port but while doing do i am getting an error "make.exe" program avrdude -p atmega8 -P com2 -c stk200 -U flash:w:gsm_remote.hex avrdude: port name "com2" is neither…
user88233
  • 15
  • 1
0
votes
1 answer

win avr gcc - nonconstant expression for length

Have been tring to build this bootloader for a few days now. https://github.com/ahtn/kp_boot_32u4 Windows pc, under mingG, WINavr and Python installed. Im stuck at creating the elf file... Linking:…
Marlon
  • 1
0
votes
1 answer

programmers notepad is missing when installing winavr

i installed winavr and tried to open programmers notepad but iam getting : pn.exe is not found. and the pn folder is empty. Is there any way to solve this issue?
mahditrad
  • 30
  • 7
0
votes
1 answer

Char array can't save chars as its members. Password system using ATmega8

I was work with system, that read some symbols from the specific keyboard, pass it to the ATmega8, and then pass it to the display one-by-one(this step work correctly), but if I want to show all symbols array, I discovered that the dynamic array on…