Type in the full discussion title or a part of it.
Discussion Title Created date
GCC and binutils version?
I took a pause a few years and don't know if this was addressed, but I see that the latest version of the avr8 GCC compiler suite by Microchip is using binutils v2.26 ; GCC...
Thursday, 29 November 2018 - 19:06
converting from atmel ASM to GCC gas
Hi, I switched my PC to linux, everything works fine, avr-gcc, avrdude, etc. However my bootloader was written in "atmel" asm style using avrasm2 compiler. I know I could install...
Thursday, 19 December 2013 - 14:53
optimization and warning
I have a string that I receive by serial and need to test the first 2 chars to take further action. char buf[20]; ... if(buf[0]=='O'...
Wednesday, 9 October 2013 - 14:03
__flash and arguments
I have a simple program with some string in __flash (using gcc 4.7.2) #define _FLASH const __flash char _FLASH unit_strings[3][7] = { "Metric", "Imp US", "Imp UK" }; Now I...
Friday, 8 March 2013 - 19:56
Watchdog question...
On a 168P, this does not work, cpu reset after 1s: void goto_sleep() { cli(); // disable interrupt timer0_ovf=0; wdt_enable(WDTO_1S); set_sleep_mode(...
Tuesday, 17 January 2012 - 19:28
bit testing in a 128bits bitmap, improvement?
I want to test a bit in a 128bits bitmap, for the moment it is stored in 4 unsigned long, it looks like this: unsigned long pid01to20_support; unsigned long pid21to40_support...
Wednesday, 23 November 2011 - 02:45
about danni's switches debouncing
yes I know the code and used it a couple of years ago, it is dated 2005 but switches debouncing questions occur every week in the forum, it should be a sticky post :) https://www....
Wednesday, 16 November 2011 - 01:50
using __pgm with GCC 4.7
forked from the 4.6.1 LTO thread SprinterSB wrote: #include #define PGM_STR(X) ((const __pgm char[]) { X }) char const __pgm *gstr = PGM_STR ("123"); char const __pgm text...
Monday, 24 October 2011 - 13:52
Remove .fini9/.fini0 from executable?
Hi, My main() never return/exit, it's declared as: void main(void) __attribute__ ((OS_main)) __attribute__ ((noreturn)); which produce the smaller code, however I noticed that in...
Tuesday, 7 September 2010 - 16:04
Need help with CAN bus
Hi, I use an atmega168 and a MCP2515/2551 to talk CAN, for a car embedded product. They talk via SPI, both chips have a separated 16MHz crystal. The RS slope on the 2551 is 47k. I...
Wednesday, 21 October 2009 - 17:14
On the importance of optimization flags
I am making an application on a ATMEGA168 so I have 16Kb of flash space. I added and added functionnalities and the size grows a lot with time. This is the basic optimization...
Tuesday, 6 October 2009 - 16:11
powering an LCD controller with a pin?
My project uses an atmega168p and a standard LCD 16x2. In power down mode the avr takes less than 1µA but the LCD chipset takes about 1.5mA, always. So my question is, can I power...
Wednesday, 18 February 2009 - 14:05

Pages