Type in the full discussion title or a part of it.
Discussion Title Created date
Problem with volatile in WinAVR 20100110
type foo.c #include struct { volatile uint8_t m; } s = { 123 }; int main(void) { while (1) { PORTC = s.m; } } avr-gcc --version avr-gcc (WinAVR 20100110) 4.3.3 avr-...
Tuesday, 22 November 2011 - 18:11
How to ask GCC not to generate any code for unused variable?
#include static uint8_t foo1Called; static void foo1(void) { foo1Called = 1; } static void foo2(void) { if (! foo1Called) PORTC = 123; } int main(void) { foo1(); foo2(); while...
Thursday, 8 September 2011 - 19:19
avr-gcc -combine
It looks that the compiler has the "-combine" option. I think I even know what it does. But I cannot find any documentation. Any help? Any lmgtfy.com links? Edit: Found it...
Tuesday, 6 September 2011 - 17:26
TWI slave shifts wrong data
I realize that this is a long shot, but here it goes anyway. Two atmega324 talking to each other over TWI at 20 KHz. The code looks like this: while (true) { master transmit 4...
Friday, 29 July 2011 - 19:54
How to create a project file from an elf?
I have an elf file created by GCC and I want to debug it. I have done that a few times in the past. What I normally did was File->Open file, browse to .elf, Open. At that point a...
Thursday, 18 November 2010 - 18:20
Atmel parametric product table
What happened to the table? Where did all atmega USARTs and ADCs go? Or is this just something with my computer/browser?
Monday, 20 September 2010 - 17:09
AT90USBKEY issues
Trying to run Dean's Mass Storage Host demo on AT90USBKEY. So far unsuccessfully. At first had problems with the MS_Host_ResetMSInterface call. It kept failing with the...
Monday, 19 April 2010 - 19:10
Where to buy an AVRISP programmer?
It is getting more and more difficult to find an AVRISP-compatible programmer. We used to use this one. But it looks that they are no longer made. Any suggestions? Need RS232 (not...
Friday, 12 March 2010 - 14:25
WINAVR ignores volatile
I was playing with cli/sei reordering discussed in other threads and stumbled upon the following case, which I cannot explain. When BUG=1 is defined, WINAVR seems to completely...
Thursday, 4 February 2010 - 15:39
CMD_PROGRAM_FLASH_ISP
Anybody knows what is the purpose of the cmd3 field in the CMD_PROGRAM_FLASH_ISP command in the STK500 and AVRISP mkII communication protocols? The documentation says that it is...
Thursday, 20 August 2009 - 13:09
ATmega324PA signature
I was reading the ATmega324PA datasheet and noticed that the signature is different from that of ATmega324P. I wonder why would Atmel want to change it? I had an impression that...
Monday, 22 June 2009 - 17:54
Is this a bug in the compiler?
#include int main(void) { while (1) { switch (PINB) { case 0: PORTB = 0; break; case 1: PORTC = 1; break; case 2: PORTD = 2; break; case 3: PORTB |= 3;...
Saturday, 9 May 2009 - 19:04

Pages