Post Created date
Computation Problem
Just convert to uint16_t first, that won't change the result of squaring. It just makes it more efficient: . uint16_t uX = (uint16_t) X; . sum += (uint32_t) uX * uX; . That way...
Saturday, 20 July 2019 - 13:18
Announcing AVR-LIBC3
As far as device support is concerned, the respective files were available but copyrighted. I will not propose patches containing copyrighted content (whoever hosts libc or...
Thursday, 18 July 2019 - 12:03
Announcing AVR-LIBC3
strontiumdog wrote: SprinterSB wrote: strontiumdog wrote: I wanted xmega3 devices to be in AVR-LIBC, there is a patch for that. For all of my knowledge, that patch had been...
Thursday, 18 July 2019 - 07:56
AVR-GCC 9.1 + AVR-LIBC with xmega3 device support
Just had a glance at  the script...   Does the avr-libc build use the freshly built / installed compiler?   You'll have to have at least one of the following:...
Wednesday, 17 July 2019 - 15:10
Announcing AVR-LIBC3
strontiumdog wrote: I wanted xmega3 devices to be in AVR-LIBC, there is a patch for that. For all of my knowledge, that patch had been accepted and integrated and is working...
Wednesday, 17 July 2019 - 14:57
Problems after upgrading GCC compiler to 9.1.0
There's no need for __flash / progmem variables to be global, the only requirement js that such variables reside in static storage (and are const). It makes obviously no sense to...
Friday, 12 July 2019 - 21:36
noinit section getting cleared by _do _clear_bss
I just wonder what's the benefit of all of it, because the original feature is working perfectly fine and is well established. . The directive for data_var is still odd and looks...
Friday, 5 July 2019 - 09:54
noinit section getting cleared by _do _clear_bss
noinit_var should be in .section .noinit,"aw",@nobits . and this is what avr-gcc v5 (FSF) generates. I never saw that .dinit stuff, libgcc (FSF) uses symbols defined in the linker...
Thursday, 4 July 2019 - 15:09
AtmelStudio 7, ATTiny10, Simulator, Volatile variable changing unexpectedly when entering ISR
Huh? avr-gcc uses __AVR_SFR_OFFSET__ of 0 for devices from -mmcu=avrtiny like ATtiny10. Is that a compiler bug?
Thursday, 27 June 2019 - 08:48
There are situations where the "pure" C/C++ code does not work. Namely on big devices when you want to jump from EIND=1 to 0x0 (which is EIND=0) and the compiler uses EICALL/EIJMP...
Saturday, 15 June 2019 - 15:50
Variable to register, inline assembly
LDI can only load values that are known at link-time or earlier. volatile is not known before run-time. . If you disassemble .o then symbols are not yet located and disassembled...
Sunday, 9 June 2019 - 10:31
building gcc=8.3, avr-libc on Linux w/ atpack hooks
1. You can simplify installing GCC prerequisites by running ./contrib/download_prerequisites from GCC top source (as explained in "Installing GCC"). This will download and link...
Tuesday, 21 May 2019 - 08:39