Skip to main content
manueld4722623's user avatar
manueld4722623's user avatar
manueld4722623's user avatar
manueld4722623
  • Member for 3 years, 11 months
  • Last seen more than 3 years ago
comment
How to implement `analogRead` (Arduino) on AVR?
@Justme, oh, I know, but I want to implement it universally, for every AVR microcontroller, using the preprocessor, maybe io.h somehow can help me to do it? Maybe I will use a table with information about the pin, ADC support, ADC number, etc, but I need to get this information every compilation time, in depend on a microcontroller to compile a program to.
Loading…
awarded
comment
Error Real Time Clock implementation AVR microcontroller
@jwh20, I'm using an inner crystal clock source by default in AVR microcontrollers. It's not suitable for real time clock?
Loading…
awarded
comment
C++ AVR big code size & excess unused symbols in build file
@PeteW, yeah, it worked, code size reduced to 472 bytes, thanks. You can post the answer if you want
comment
C++ AVR big code size & excess unused symbols in build file
@PeteW, my .map file: pastebin.com/raw/XuczgFXQ. What compiler arguments are you talking about? How can I enable garbage collection?
comment
C++ AVR big code size & excess unused symbols in build file
@MarcusMüller, so, how can I see the size of the program that will end up on the microcontroller? avrdude writes as much as the avr-size outputs: avrdude: 548 bytes of flash written
comment
C++ AVR big code size & excess unused symbols in build file
@MarcusMüller, I just removed a few unused methods from the class and the output from avr-size decreased from 682 bytes to 548.
comment
C++ AVR big code size & excess unused symbols in build file
@MarcusMüller, I analyzed the ELF file compiled by avr-g++. I don't use virtual functions. Output of avr-size is Program: 682 bytes and Data: 0 bytes
Loading…