Type in the full discussion title or a part of it.
Discussion Title Created date
avr-g++ generating wrong code for function in init section
Hi,   when compiling the following code with avr-g++ 4.3.3 using -Wall -O2 -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -...
Wednesday, 7 February 2018 - 16:17
Multiple firmware build configurations
Hi,   It seems to me that having separate debug and release configurations is of little to no value. Generally, because of size restrictions, you need to use the same...
Thursday, 24 August 2017 - 08:10
Flash self-programming - must page fill be done from NRWW section?
I am trying to program flash on an atmega1281, and the datasheet doesn't say that doing page fill (i.e. only SPMEN set in SPMCSR, boot_page_fill() from avr/boot.h, etc.) must...
Wednesday, 31 May 2017 - 14:52
ATmega2560 fast pwm as frequency generator OCRnA only 10 bits?
Hi,   I am trying to use fast pwm (mode 15) as a (variable) frequency generator. For some reason, OCRnA only accepts 10 bits, if I put in larger values, they get clipped to...
Friday, 4 November 2016 - 13:45
Possible bug using inline assembler?
I have the following macro to extract an uint16_t from a big-endian byte array at the specified index: #define vPayloadParamGet_uint16( payload, var, first_byte_index...
Monday, 14 June 2010 - 10:05
XMEGA ADC unsigned transfer function
According to the xmega a datasheet, the unsigned transfer function is RES = 4095 * VIN - (-dV) / VREF where dV = VREF * 0.05 Substituting yields RES = 4095 * ( VIN/VREF +...
Tuesday, 23 March 2010 - 11:05
excluding a section from the linker --gc-sections option
Hi, Is there any way to use --gc-sections and still keep a specific section? I have an "application info" section located at a specific address in flash, which is modified with...
Wednesday, 3 March 2010 - 19:41
avr-gcc 4.3.2 emitting obsolete instructions...
Hi folks, In the process of adding rounding to divisions performed using right-shifting, I've looked into the generated assembler code.. I've found something strange: uint16_t...
Thursday, 11 February 2010 - 13:44
saving unused registers on the stack in ISR
Hi guys, using inline assembler, gcc and atmega32.. void TIMER0_OVF_vect( void ) __attribute__ ( ( signal, naked ) ); void TIMER0_OVF_vect( void ) { asm volatile ( "push r0...
Friday, 29 August 2008 - 13:54