Post Created date
Interrupt causes ATMega2560 to Reset.
Quote:-Werror is a good idea as it means you cannot ignore the warnings. Yes, good idea. -Werror in couple with -Wall will stop compilation on any warning. Koshchi, in this case...
Thursday, 22 September 2011 - 15:14
Interrupt causes ATMega2560 to Reset.
Thanks for responses. I think my fault was that I didn't include avr/interrupt.h in file containing PCINT20 ISR. I've got warning but compilation was successful. So in fact I had...
Monday, 19 September 2011 - 14:00
PSTR compilation error.
Quote:Use Mfile Downloaded, had a short view on it. Not sure I'll use it as it's too complicated, but maybe I'll look at makefile_template sometimes. And other one note: Quote:...
Wednesday, 17 August 2011 - 13:51
PSTR compilation error.
Quote:(However you are doing the avr-obcopy properly so that .data is in flash aren't you?) Exactly! I forgot to include data section into flash. Great thanks! Now I can work with...
Wednesday, 17 August 2011 - 11:20
PSTR compilation error.
I try to understand AVR memory management. And have another one question. Quote:Because the LCD_puts routine (or other string routines) are designed to work with strings in RAM,...
Wednesday, 17 August 2011 - 10:24
PSTR compilation error.
Okay, thank you for rumours, I noted that.
Monday, 15 August 2011 - 12:40
PSTR compilation error.
wek, thank for advise - I'm back to 4.3.4. And it works even without "const" in PSTR definition.
Monday, 15 August 2011 - 12:24
PSTR compilation error.
I'm using Plain C. Thanks, your advise to add "const" to definition of PSTR worked. But it's not clear for me why it wasn't there. I also had to install AVRLibC 1.6.8 back. I had...
Monday, 15 August 2011 - 12:19
PSTR compilation error.
Expanded function call: SendString2 ((__extension__({static char __c[] __attribute__((__progmem__)) = ("1123"); &__c[0];})));
Monday, 15 August 2011 - 11:03
[TUT] [C] GCC and the PROGMEM Attribute
At first thank you all for this good explanation. I have compilation error: variable ‘__c’ must be const in order to be put into read-only section by means of ‘...
Monday, 15 August 2011 - 09:52
Clocks, Baud Rate, _delay_ms (), F_CPU, etc...
At the previous week I've measured (by LED + _delay_ms () and by 1 bit + oscilloscope) that default clock of my ATMega is 1MHz. And added __attribute__((OS_main)) int main(void...
Thursday, 11 August 2011 - 11:50
Clocks, Baud Rate, _delay_ms (), F_CPU, etc...
Program built with UBBR value 47 (9600/7.3MHz) with F_CPU = 7372800. Time measured on oscilloscope. 1 bit = 96 microsecond. Program built with UBBR value 51 (9600/8MHz) with F_CPU...
Thursday, 11 August 2011 - 11:32

Pages