#avr | Logs for 2015-06-27

Back
[02:45:57] <rue_house> ny167 attiny22 attiny2313 attiny2313a attiny24 attiny24a attiny25 attiny26 attiny261 attiny261a attiny28 attiny43
[02:46:03] <rue_house> the compiler dosnt' know about tiny20
[02:46:21] <rue_house> need a compiler that can compile for tiny20
[02:51:05] <rue_house> DrLuke, you using debian?
[02:54:44] <Lambda_Aurigae> interesting..
[02:54:58] <Lambda_Aurigae> it's not shown in mine.
[02:55:31] <Lambda_Aurigae> nor is attiny10
[02:55:56] <rue_house> whats your version
[02:58:38] <Lambda_Aurigae> avr-gcc (GCC) 4.8.2
[02:58:49] <Lambda_Aurigae> ubuntu here...couple versions old.
[02:59:04] <Lambda_Aurigae> I really need to wipe and put pure debian back on though.
[02:59:51] <rue_house> gcc version 4.7.2 (GCC)
[02:59:54] <rue_house> hah
[03:01:12] <rue_house> I dont have 10 or 20
[03:03:33] <Lambda_Aurigae> interestingly, however, I have iotn20.h file in my avr libs.
[03:04:22] <rue_house> I have it too
[03:04:43] <rue_house> avr-libc: /usr/lib/avr/include/avr/iotn20.h
[03:04:47] <rue_house> libc, not gcc
[03:05:11] <Lambda_Aurigae> yeah.
[03:05:15] <Lambda_Aurigae> oddish.
[03:05:19] <Lambda_Aurigae> must be a patch for it.
[03:05:51] <rue_house> half descently new version of gcc-avr
[03:06:45] <Lambda_Aurigae> or you set mmcu to avrtiny and include iotn20.h directly
[03:29:23] <theBear> hmmm, i don't think i'm imagining that something around 4.7.x had some issues for some of the tinier things
[03:31:22] <Lambda_Aurigae> looks like 4.8 and 4.7 are showing it.
[03:31:38] <Lambda_Aurigae> luckily for me I don't use such teensy tiny parts.
[03:32:28] <Xark> Hmm, http://nongnu.org/avr-libc/user-manual/ claims it supports atiny10 and 20
[03:32:37] <blathijs> My 4.8.2 from Debian also doesn't show the tiny20 in -mmcu. IIRC Debian applies the patchsets directly from Atmel nowadays
[03:34:32] <Lambda_Aurigae> Xark, yeah...my libc has it...just my avr-gcc doesn't.
[03:37:58] <Lambda_Aurigae> ok..gonna try to go back to sleep now.
[03:38:41] <Lambda_Aurigae> it's too early in the morning to be awake if I'm not drinking....and no alcohol in the house other than vanilla extract and that's a bit harsh to get wackersnoodled on.
[03:39:29] <Xark> Lambda_Aurigae: No Listerine, eh? :)
[04:00:25] <Jartza> very strange thing in Tagsu assembly
[04:00:48] <Jartza> out of 200, ten attiny85s were broken in exactly the same way
[04:00:56] <Jartza> two pins being dead
[04:01:41] <Jartza> chips flashed ok and firmware ran ok, just two pins (same pins on every 10 chips) were just dead
[04:02:14] <Xark> Odd. Bad day on one of the factory lines? :)
[04:02:30] <Jartza> maybe. I informed atmel.
[04:03:01] <Jartza> the assembly house said it's unusually high number of faulty chips
[04:03:12] <Xark> Seems fishy.
[04:03:16] <Jartza> the usual number being 0-2 out of 1000
[04:05:00] <Jartza> luckily attiny85 is easy to change (soic)
[04:06:12] <Jartza> but that was still extra work
[04:06:50] <Xark> Hmm, Tagsu = Wondertag?
[04:12:10] <Jartza> :D
[04:12:22] <Jartza> I hate the wondertag name
[04:12:33] <Jartza> and I want to get rid of it
[04:12:58] <Jartza> it was our previous marketing lady who invented the name
[04:13:06] <Jartza> but yes, it's that
[04:13:52] <Xark> I see. Just looking for keyword to disambiguate. :)
[04:15:26] <Xark> Looks cool. I assume less expensive than badgeR.
[04:15:39] <Xark> Er, BADGEr. :)
[04:16:34] <Jartza> hmm, how much is that?
[04:17:26] * Xark wants for really slow page to load (packets taking slow boat from China...)...
[04:17:32] <Xark> $50 -> http://www.seeedstudio.com/depot/BADGErv4-p-1587.html
[04:18:17] <Xark> Umm...really? -> http://www.seeedstudio.com/depot/Nose-LED-Kit-p-1274.html
[04:18:43] <Jartza> yah, tagsu is 29€
[04:19:17] <Jartza> including eu vat, I guess if ordering from outside eu, there is no tax
[04:19:50] <Jartza> which would be 23.39€ without VAT
[04:19:58] <Xark> Cool. Probably easier to read in DIM room too. :)
[04:20:08] <Jartza> very easy
[04:20:14] <Jartza> as it has backlight
[04:20:33] <Xark> Right.
[04:21:39] <Jartza> latest versions run over 80 hours with one aaa
[04:21:56] <Jartza> with backlight
[04:22:16] <Xark> Wow. What kind of battery is that?
[04:22:27] <Xark> Oh AAA, neat.
[04:22:43] <Jartza> yea, available everywhere and costs nothing
[04:23:29] <Xark> I assume rechargeable would work also (~1.25v)?
[04:23:46] <Jartza> first production run of 200 should be ready in two weeks
[04:24:02] <Jartza> yeah, it works, but not as long
[04:24:07] <Xark> Jartza: Where will you be selling them? From your site?
[04:24:13] <Xark> Fair enough. :)
[04:24:41] <Jartza> at first from the site yeah, haven't decided yet the selling place
[04:24:55] <Jartza> most of the 200 are already sold though :)
[04:25:21] <Xark> Jartza: Okay. Well, I prowl SeedStudio and Tindie for projects like this. :)
[04:25:34] <Jartza> :)
[04:25:43] <Jartza> yea, those have been in mind
[04:26:16] <Xark> I like that yours isn't a bare PCB.
[04:27:11] <Jartza> we had 100 at Slush last year, those were sold in no time
[04:27:27] <Jartza> they were still through-hole and hand soldered
[04:27:35] <Jartza> the latest is smd
[04:31:37] <Jartza> Xark: https://drive.google.com/open?id=0B2dTzW9TMeBxcDBZc04yTDQwa2s&authuser=0
[04:32:45] <Jartza> it comes with lanyard and audio cable and battery :)
[04:33:25] <Jartza> https://slack-files.com/T02FEAMUS-F055FNN9H-f0ba29b34f
[04:33:25] <Xark> Audio cable?
[04:33:49] <Jartza> https://www.dropbox.com/s/q7bu01zzyhuamd6/IMG_201506154_111503.jpg?dl=0
[04:33:52] <Xark> Ahh, "cassette" upload. :)
[04:33:54] <Jartza> yeah
[04:34:06] <Jartza> you can modify the texts with cell phone, tablet, laptop, pc... :)
[04:34:27] <Jartza> just go to http://tagsu.io/edit and create screens, connect audio cable and press play :)
[04:34:43] <Xark> Very clever. :)
[04:35:06] <Jartza> about 5 seconds to update 42 screens
[04:35:19] <Jartza> anyhow, I need to run now, laters!
[04:36:16] <Xark> Take it easy.
[04:36:43] <Xark> Good luck with your ATtinys. :)
[05:02:38] <Tekkkz> Hi! I'm on an XMEGA. To set options in a timer's register, I need to do this: TCC0.CTRLA = TC_CLKSEL_DIV256_gc;
[05:03:03] <Tekkkz> so how to find out the name of the _gc?
[05:03:16] <Tekkkz> I mean in the datasheet isn't it mentioned
[05:03:36] <Tekkkz> i want to set up spi, with master and enable, but what are the correct _gc's?
[05:04:01] <Tekkkz> SPIE.CTRL = SPI_ENABLE_gc | CTRL_MASTER_gc; this is not correct
[05:28:21] <Jartza> Xark: ah, the assembly-house already changed those attinys :)
[05:28:47] <Xark> Jartza: Nice. :)
[05:33:41] <Jartza> Xark: https://drive.google.com/file/d/0B2dTzW9TMeBxeV9MaFFSOXVFeVE/view?usp=sharing
[05:33:48] <Jartza> the update also works over fm radio :)
[05:34:02] <Jartza> and yeah. you can also update firmware with audio.
[05:35:07] <Jartza> and sync the screen from one tagsu to another
[05:42:14] <Jartza> Xark: https://drive.google.com/open?id=0B2dTzW9TMeBxNV81WXJaVXVTU2M&authuser=0
[05:43:45] <Xark> Jartza: Very slick (and hopefully Namco won't sue). :)
[05:43:56] <Jartza> hehe
[05:44:18] <Jartza> yeah, those characters aren't pixel-to-pixel clones :P
[05:44:21] <Jartza> just in case
[05:44:39] <Xark> Jartza: Yeah....
[05:45:01] * Xark recalls they famously sued "Corn Nuts" over a vaguely pac-man looking wrapper. :)
[05:45:51] * Xark links https://en.wikipedia.org/wiki/Talk%3APac-Man%2FArchive_1#CornNuts_trademark_dispute
[05:45:55] <Jartza> yeah
[05:46:11] <Xark> Jartza: I wouldn't lose too much sleep though. :)
[05:46:39] <Jartza> me neither, and we can always update the firmware to have some other animation :)
[05:46:56] <Jartza> there's also boulder dash guy, manic miner guy and archer from archon
[05:47:20] <Jartza> and generic icons
[05:47:32] <Xark> Jartza: Yeah, but none of the, are likely to sue. :)
[05:47:35] <Xark> them*
[05:47:41] <Jartza> yeah.
[05:47:52] <Jartza> if they do, we can change the pacman to text-eating copyright character :D
[05:48:03] <Xark> If they did sue, it would be a goldmine of publicity anyways. :)
[05:48:09] <Jartza> indeed
[05:49:39] <Xark> Besides, you have the distinctive horizontal and vertical gap. :)
[05:51:21] <Xark> Jartza: However, just teasing. A very "polished" look, I like it. :)
[05:51:37] <Xark> +1 to your firmware dev
[05:53:51] <Jartza> thanks :)
[05:55:12] <Jartza> those alphanumeric displays dob't really have graphics-support
[05:55:55] <Xark> Yes. I am aware. 8 re-definable characters, IIRC (plus "gaps").
[05:56:08] <Jartza> yeah
[05:56:31] <Jartza> in the editor, you can also draw 10 custom logos
[05:57:47] <Jartza> originally the whole thing was funny test to see if attiny85 can drive lcd and what else can be done with 5 pins
[05:58:09] <Jartza> it sorta got out of hands :)
[05:59:45] <Jartza> the firmware has been cramped into 6kB as 2kB of the flash is reserved for user data
[06:00:02] <Jartza> latest firmware is 6144 bytes :D
[06:00:44] <Xark> Jartza: Hehe, neat. I did a similar thing with anA ATtiny and a TFT LCD -> https://imgur.com/WKg33E7
[06:01:23] <Jartza> nice
[06:02:15] <Jartza> the lcd library for tagsu was much easier than I thought, and much easier than graphics tft
[06:02:43] <Jartza> I have tft displays too, but haven't tested them much yet
[06:03:18] <Jartza> the "real" work takes too much time from hobbies :D
[06:03:48] <Xark> Jartza: Well, you might want to check out an article I did (mostly about optimization though). https://hackaday.io/project/6038-pdqgfx-optimzed-avr-lcd-graphics
[06:08:23] <Jartza> Xark: optimization is fun, I'll look into it :)
[06:08:52] <Xark> Jartza: Cool. Got the lib 3.5x to 12x faster.
[06:09:17] <Jartza> yea
[06:09:38] <Jartza> tagsu lcd runs with i2c
[06:09:44] <Jartza> #define i2c_delay() __asm__("rjmp .+0\n\t""rjmp .+0\n\t");
[06:09:46] <Jartza> :D
[06:09:52] <Xark> Cool. :)
[06:10:26] <Jartza> _delay_us(1) didn't fit nor did 4 nops
[06:11:45] <Jartza> maybe I wanted too many features, but it was fun cramping them in
[06:11:55] <Xark> Jartza: Yeah, I have some similar wacky delays -> https://github.com/XarkLabs/PDQ_GFX_Libs/blob/master/PDQ_ILI9341/PDQ_ILI9341.h#L257
[06:13:25] <Xark> Yeah, cramming (like optimizing) is fun. :)
[06:13:46] <Jartza> i2c-lcd-lib, lcd effects & animations, menus (you can adjust contrast, animation speed, turn device "off", sync data with other tagsu, send and look at "business cards" which can be exchanged between tagsus), audio update, low battery indicator... hmm
[06:14:12] <Jartza> fw update :D
[06:14:54] <Xark> Nice.
[06:15:31] <Jartza> everything is still C, except that delay
[06:17:44] * Xark waves goodnight o/
[06:18:02] <Jartza> battery low if of course measured without using any pins
[06:18:31] <Jartza> Xark: ahh, that side of the world. good night then!
[06:18:41] <Jartza> it's 2pm here
[06:18:54] <Xark> 4AM here. :)
[06:18:58] <Jartza> ohh
[06:19:06] <Jartza> yea, usual bed time :)
[06:19:24] <Xark> (birds starting to chirp is not a good sign). :)
[06:19:51] <Jartza> we're at the time of year when they chirp 24/7
[06:20:04] <Jartza> sun doesn't really set at all
[06:20:22] <Jartza> it either light or twilight but not dark
[06:21:06] <Xark> Jartza: I see. I've seen close to that traveling in Canada (but currently Southern California USA).
[06:21:13] <blathijs> Is there a good name for INT0, INT1, etc? I think "external interrupts" is used, but if I read the 328 datasheet right, "external interrupts" also includes the PCINTs.
[06:21:29] <Jartza> Xark: I'm in Finland
[06:23:37] <Xark> blathijs: Hmm, yeah, Atmel doesn't seem to have a clear term for just the non-PCINT ones.
[06:31:35] <DrLuke> rue_house: I use arch
[06:31:51] <DrLuke> and apparently the libc support für tiny20 is very poor
[11:08:51] <rue_house> sounds like either a good project to mod gcc or a bad choice for building soemthing
[11:09:03] <rue_house> or a good time to do your project in assembler
[12:51:25] <Jartza> I made homebrew-formula for mac to build the "official" atmel toolchain, because other toolchains I found had always some problems with some chips