68 questions
0
votes
2
answers
254
views
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: ...
0
votes
1
answer
325
views
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?
-1
votes
1
answer
892
views
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 ...
0
votes
2
answers
2k
views
why adc always reads 1023 irrespective of input
I am trying to read a analogue voltage using the ADC in attiny85. But the ADC register always read 1023 irrespective of what input is given.
Moreover when the ADC pin is measured with a multimeter ...
0
votes
1
answer
81
views
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 ...
0
votes
0
answers
242
views
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 ...
1
vote
2
answers
907
views
How to find the address of a variable when using AVR?
I am trying to write a program that detects pixel level collision of bitmaps on a Teensy micro controller compiling with AVR-GCC. I am trying to work out how to calculate the position of a single byte ...
1
vote
1
answer
176
views
How to take value from DALLAS 18B20 using Atmega 32
I have atmega 32 and DALLLAS 18b20. the out put of the temp sensor is digital in one wire. can any one suggest me how to read the value using ADC channel. thanks in advance.
0
votes
1
answer
1k
views
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 ...
0
votes
1
answer
3k
views
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 ...
0
votes
1
answer
192
views
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 ...
-1
votes
1
answer
3k
views
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 ...
0
votes
1
answer
95
views
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 ...
1
vote
1
answer
525
views
Array in Proteus using WinAVR C size issue
I have a lab assignment which needs me to use an Atmega328P to do an ADC, and with USART, transmit the digital value to a MILFORD-4X20-BKP LCD display. The LCD needs to display the value in a 2 byte ...
0
votes
1
answer
152
views
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:...