#avr Logs

Apr 19 2021

#avr Calendar

03:31 AM abcminiuser21481 is now known as abcminiuser2148
07:08 AM specing_ is now known as specing
08:41 AM rue_bed2: always listening tho :)
08:43 AM nohit: -- Feb 5
09:05 AM vmt: --
01:32 PM Kabriel: Are enums using avr-libc defined as int (i.e. 16 bit)?
01:34 PM twnqx: that's up to your compiler, not the libc
01:35 PM twnqx: gcc with strictest checking never complained using constant defined in an enum on ints, so at least it's compatible; you could add a satic_assert check comparing sizeof()s
02:09 PM vmt: or just do the sane option. you can have them in an enum but just use a sized type when you actually use them
02:57 PM dirty_d: is attiny212 not supported on avr-gcc?
02:58 PM dirty_d: attiny212 is listed under know device names when running --target-help, but when compiling with -mmcu=attiny212 there are linker errors
03:04 PM vmt: i would imagine avr-gcc supports the whole line
03:04 PM vmt: i take it this is the new series? what does your version look like
03:06 PM vmt: though off a quick google there's some avr-libc forks which mention the 212 et al. don't know. be a champ, get an stm32
03:14 PM dirty_d: I did find this https://github.com/vladbelous/tinyAVR_gcc_setup
03:15 PM dirty_d: I usually to use stm32, but I was over here thinking avr would be quick and easy
03:15 PM dirty_d: it used to be
03:20 PM vmt: the new series seem a bit funky
03:20 PM vmt: you can ping leo nerd (i don't want to), he's played with them quite a lot i think
03:22 PM dirty_d: that seemed to work, but this is concerning "warning: #warning "device type not defined"
03:23 PM dirty_d: it comes with a specs file specs-attiny212 that has the defines its looking for in it, but it seems like gcc is ignoring it or something even if I specify it with -specs=
03:27 PM vmt: if push comes to shove you'll just have to objdump it and cross-check with the datasheet :|
05:47 PM zgu: i think i had to build avr-libc with a special patch for tiny 0/1 ("avrxmega3") to work
05:48 PM zgu: and needs gcc >= 8
08:40 PM specing_ is now known as specing