Post Created date
make uses wrong compiler.
Is there a file called GNUmakefile is one of these directories?   Show us the makefile, it could contain a name dependant bug.  
Sunday, 12 April 2015 - 11:36
32u4 reset delay possible?
Why not add a delay to the application startup so as to prevent the undesirable repeat of startup?
Saturday, 26 July 2014 - 11:09
Optimisation breaks debug code.
A solution could be to put the entire sequence of instructions in inline assembly, using conditional assembly to choose between sbi and cbi.
Thursday, 24 July 2014 - 16:04
volatile pgmspace
Until a change on 2nd May 2013, the implementation of pgm_read_byte uses an asm statement without volatile. The compiler is therefore allowed to assume the outputs (the value)...
Thursday, 6 March 2014 - 21:11
LTO generates inefficient ISR code in 4.7.2
It looks like you omitted the optimisation flag from the link command line.
Tuesday, 16 July 2013 - 11:46
Global Array Size Affects Clock Frequency (avr-gcc on Linux)
The start of the BSS section is incorrectly set to 0x60. The address of OSCCAL on a ATmega164a is 0x66. So when the array is 7 bytes long zero is written OSCCAL when the program...
Saturday, 23 February 2013 - 20:33
GCC doing crazy stuff - is it my fault?
nick.parker wrote: static inline __attribute__((always_inline)) uint16_t sh07U2(uint16_t input) { asm volatile( "lsl %A0 ;put top bit of LSB into carry \n\t " "...
Wednesday, 24 October 2012 - 16:31
Strange register modification (possible compiler bug)
Apart from the missing bracket and space, your inline assembler has undefined behaviour. Why do you think you can alter r25 without declaring so without breaking your program? Any...
Sunday, 10 June 2012 - 17:50
longjmp() at the end of an ISR ? Or Goto+flag ?
neoirto wrote:It appears the global floats have to be volatile (if you jump from ISR) in order to execute compute and store good values. No, volatile is not sufficient as...
Sunday, 10 June 2012 - 17:16
longjmp() at the end of an ISR ? Or Goto+flag ?
ka7ehk wrote:NO! In C, you do nothing at the end of an ISR. There is a built-in reti. Also, every ISR has a "preamble" where a bunch of stuff is saved. If you try to exit before...
Sunday, 10 June 2012 - 16:44
Can the application use an IRS built into the bootloader?
Why are you writing to MCUCR? The jmp instruction does not write a return address to the stack, so the interrupt routine returns to a nonsensical address. You want to use call.
Wednesday, 19 October 2011 - 18:47
r28/29 cannot be used in asm here
The inline assembler reads some non-volatile variables without declaring them as inputs or including "memory" in the clobber list, which will make the compiler assume they are...
Sunday, 9 October 2011 - 17:15