#avr Logs

Feb 26 2020

#avr Calendar

04:33 AM twnqx: what's the size of a float in avr?
04:38 AM twnqx: 32bit?
04:56 AM skz81: twnqx, yes : https://gcc.gnu.org/wiki/avr-gcc
07:03 AM twnqx: thank you
08:38 AM rue_bed: I'd suspect floats are 16 and double is 32
08:44 AM nohit: you cant read ?
08:56 AM Fuchikoma: Whoo needs floating point libraries? :D https://sites.google.com/site/avrasmintro/home/2b-basic-math
09:08 AM twnqx: note to self: jumping into bootloader with active timer interrupts is a bad diea
09:09 AM twnqx: FINALLY this works.
09:12 AM twnqx: also, that's 26 of 32kb flash used :S
09:13 AM Fuchikoma: woohoo
09:13 AM twnqx: 4k bootloader, 7k FPGA configuration file...
09:13 AM twnqx: 15k code
09:19 AM Fuchikoma: 4K bootloader wtf
09:20 AM twnqx: yeah, LUFA feels a bit bloated. do you know a better USB bootloader for the mega32u4?
09:21 AM Fuchikoma: I don't use bootloaders myself but Optiboot has been talked about recently and it's only 512 bytes
09:21 AM twnqx: optiboot has no USB support
09:22 AM Fuchikoma: I don't think it'll take 3.5KB to add it though
09:23 AM twnqx: if you use lufa for the USB library it will :P
09:26 AM twnqx: given a software usb bootloader fits into 1k... it should be possible to get this smaller
09:30 AM skz81: IIRC LUFA is for generic USB comms, right ? Unsure, but maybe a bootloader specialized stack can omit some stuff...
09:31 AM Fuchikoma: Start commenting out functions until something breaks :D
09:32 AM twnqx: lufa has a nightmare of its own buildsystem on top of everything else
09:32 AM twnqx: it seems to me it uses a "compile everything, link in what's needed" kind of approach
09:32 AM twnqx: at least there's a ton of .o files with no traces in the resulting binary
09:34 AM twnqx: i...i might want to take that back
09:36 AM twnqx: apparently i have all the code for being a printer, massstorage, HID, MIDI, RNDIS, Audio, AndroidAcessory linked in my code
09:41 AM twnqx: though that was "only" 5k of my application binary
01:13 PM vigole1 is now known as vigole
03:15 PM JanC_ is now known as JanC
03:18 PM turq: is there a tutorial available for how to make your own bootloader?
03:18 PM turq: my bad, i'm looking for something on the atmega328p
03:20 PM turq: i was looking at https://github.com/matthijskooijman/arduino-platform-avr/blob/master/bootloaders/atmega8/ATmegaBOOT.hex and I have no clue what that is :)
06:40 PM PoppaVic: well, I wouldn't use a hex file ;-)
11:14 PM day__ is now known as day