#avr | Logs for 2015-09-09

Back
[01:16:45] <theBear> ahh :-) wonder how long ago i lost this one
[02:48:52] <megal0maniac> oh hai theBear
[03:57:59] <theBear> hurro :)
[07:03:31] <Martin90> Hello, I have terrible problem
[07:03:40] <LeoNerd> More lube
[07:03:57] <Martin90> my avr uC somehow changed own fuses
[07:04:11] <Martin90> I did my own pcb
[07:04:19] <Martin90> with programming pins on it
[07:04:30] <LeoNerd> I didn't think that ought to be possible
[07:04:37] <Martin90> it was programming ok yesterday
[07:05:22] <Martin90> but today I try to and avrdude says: :fuse xxx was changed to xxx, would you like to restore it back to yyy ?
[07:06:23] <Martin90> it helped and restored old fuses but now it again somehow changed fuses and the problem is avrdude can't restore it !
[07:06:34] <Martin90> just freeze
[07:06:56] <Lambda_Aurigae> that sounds more like a hardware issue.
[07:07:09] <Martin90> hardware, what you mean ?
[07:07:12] <Martin90> uC broken ?
[07:07:16] <Lambda_Aurigae> avrdude is trying to verify fuses and they don't read the same twice.
[07:08:15] <Martin90> but how it happened ?
[07:08:23] <Martin90> it was working ok yeasterday..
[07:08:34] <Martin90> and what to do now ?
[07:08:43] <Lambda_Aurigae> give me a minute to search google..
[07:09:44] <Martin90> I doubt it is possible to restore those fuses
[07:10:24] <Lambda_Aurigae> it's always possible unless you fry the chip.
[07:10:31] <Martin90> I diconected it from programer and now it says "avrdude: error: could not find USB device with vid=0x16c0 pid=0x5dc ven"
[07:10:32] <RikusW> Use HVPP
[07:10:37] <RikusW> orHVSP for ATtiny
[07:10:38] <Lambda_Aurigae> so, it was working yesterday...what was the last thing you did?
[07:11:00] <Lambda_Aurigae> what programmer hardware do you use?
[07:11:08] <Lambda_Aurigae> what is the clock source and speed of the avr?
[07:11:25] <Martin90> I mounted it on support where its suppose to work
[07:11:42] <Lambda_Aurigae> the more I think about it the more it sounds like a clock speed issue..
[07:11:49] <Martin90> try to program there and it said "can't set clock period
[07:11:54] <Lambda_Aurigae> but is still very early in the morning.
[07:12:15] <Lambda_Aurigae> you haven't answered any of the three questions.
[07:12:27] <Martin90> I did ?
[07:12:39] <Martin90> 16 Mhz
[07:12:46] <Martin90> USBasp
[07:13:15] <Martin90> clock source is crystal
[07:13:15] <Lambda_Aurigae> does your usbasp have the ability to lower its programming speed?
[07:13:20] <Martin90> yes
[07:13:27] <Lambda_Aurigae> then do so...go as low as you can.
[07:13:45] <Martin90> but it is soldered on pcb, I can't change crystal there
[07:13:55] <Lambda_Aurigae> not the avr speed.
[07:14:05] <Martin90> ?
[07:14:08] <Lambda_Aurigae> the programming/communication speed of the usbasp.
[07:14:46] <Martin90> so I shoud try with lower prog. speed ?
[07:14:47] <Lambda_Aurigae> what did you set the fuses to before it stopped working?
[07:15:03] <Martin90> low fuse -> EF
[07:15:03] <Martin90> high fuse -> C9
[07:15:29] <Lambda_Aurigae> and what is the AVR model?
[07:15:54] <Martin90> sorry, those fuses are onse I set on purpose
[07:15:59] <Martin90> I don't know those new fuses ;/
[07:16:21] <RikusW> which avr did you program ?
[07:16:29] <Lambda_Aurigae> what avr? atmega???
[07:16:35] <Martin90> atmega16a
[07:16:39] <RikusW> ah
[07:16:49] <Lambda_Aurigae> choo
[07:16:56] <Martin90> ?
[07:17:57] <RikusW> Martin90: did you connect a crystal to the mega16a XT1 and XT2 pins ? and with 18/22pF caps to gnd on both ?
[07:18:41] <Martin90> RikusW, maybe you did'nr read above messages but I was all working corrent yestareday and yes i connected everything ok
[07:18:59] <RikusW> seems I got in a bit late
[07:19:15] <Martin90> no problme ;]
[07:19:22] <RikusW> HVPP should fix it
[07:19:23] <Martin90> Lambda_Aurigae, whats wrong with atmega16a ?
[07:19:31] <Lambda_Aurigae> nothing.
[07:19:53] <Martin90> so, what means your "choo: reaction on atmega16a xD
[07:20:03] <Lambda_Aurigae> it was a reaction to RikusW
[07:20:03] <RikusW> Martin90: want a jtagice mki clone to debug the m16a ? -> https://sites.google.com/site/megau2s/
[07:20:05] <Lambda_Aurigae> ah choo.
[07:20:07] <Lambda_Aurigae> a sneeze.
[07:20:14] <Lambda_Aurigae> attempted humor.
[07:20:18] <RikusW> heh
[07:20:20] <Martin90> xD
[07:20:27] <Martin90> anyway, did you recommend me to slow programming speed ?
[07:21:01] <Lambda_Aurigae> yes, at least twice.
[07:21:08] <Lambda_Aurigae> do you have a bootloader installed?
[07:21:13] <RikusW> slowing it down usually helps
[07:21:15] <Martin90> pm me your address, I will send you a beer
[07:21:22] <Martin90> it helped
[07:21:28] <Martin90> xD
[07:21:37] <Lambda_Aurigae> I don't drink alcohol anymore.
[07:21:49] <Lambda_Aurigae> I don't feel like bleeding out through my stomach and intestines.
[07:22:10] <Martin90> but the question still remains " how the hell it changed those fuses independently ?
[07:22:20] <Lambda_Aurigae> I'm guessing it didn't
[07:22:38] <Martin90> But I tell you it did
[07:22:45] <Lambda_Aurigae> more likely they got changed with a write to the fuses with the writing speed too fast and corrupted them.
[07:22:50] <RikusW> Once when I used excessive programming speeds it changed the fuses somehow, like 2Mhz ISP clock or something
[07:22:58] <Lambda_Aurigae> corruption.
[07:23:03] <Lambda_Aurigae> plain and simple.
[07:23:11] <Lambda_Aurigae> happens with usbasp type programmers a lot.
[07:23:52] <LeoNerd> Not so handy for parallel devices, but I find it useful to keep my HVSP burner to hand in case of screwups with fuses
[07:24:08] <Lambda_Aurigae> I keep a fusedoctor handy for that too.
[07:24:11] <LeoNerd> I could easily turn it into an HVPP device by applying a couple of shift registers... might consider that oneday
[07:24:15] <Lambda_Aurigae> does both hvsp and hvpp chips.
[07:24:22] <RikusW> Martin90: You can load my jtag mki clone onto any avr and debug your m16a with it using avarice or avrstudio 4
[07:24:44] <Jartza> https://drive.google.com/file/d/0B2dTzW9TMeBxZG5kMEZOcWpNbjA/view
[07:24:45] <Lambda_Aurigae> and, time to go to work...laters all.
[07:24:47] <Jartza> :)
[07:25:04] <Lambda_Aurigae> Jartza, now THAT's engineering..hehe
[07:25:09] <Lambda_Aurigae> love it I do I do!
[07:25:14] <Jartza> :)
[07:25:24] <Lambda_Aurigae> that the full color version?
[07:25:25] <Jartza> found some soic16-dip -adapters. made the 3-color vga out of it
[07:25:27] <Jartza> yes
[07:25:28] <Martin90> sorry, what is that HVPP device ?
[07:25:29] <Jartza> :)
[07:25:39] <Lambda_Aurigae> Martin90, read the datasheet...it's all in there....
[07:25:52] <Lambda_Aurigae> hvpp is high voltage parallel programming...needed when you screw up fuses too bad.
[07:26:00] <Jartza> the orange, yellow and blue wire going outside pic are +5V, GND and UART
[07:26:08] <Lambda_Aurigae> glub, why don't people read the manual before playing with the toys? sheesh.
[07:26:16] <Lambda_Aurigae> anyhow,,gotta flit...laters all.
[07:26:22] <Martin90> thanks ;)
[07:26:23] <Jartza> single color version fits on one soic16-dip adapter
[07:26:27] <Jartza> Lambda_Aurigae: have fun!
[07:26:59] <Martin90> so are you trying to tell me that there is always a way to restre.repair fuses ?
[07:29:21] <RikusW> yes
[07:29:31] <RikusW> The STK500 and AVR Dragon can do HVPP
[07:29:46] <RikusW> or you can make your own, HVPP is rather simple for fuses only
[07:29:55] <Martin90> hah, I shoud have added "with USBASP " ;)
[07:30:15] <Martin90> my usbasp has clock speed option
[07:30:18] <Martin90> slow/fast
[07:33:54] <Martin90> and it still unbelievable for me that it changed those fuses independently, I did like 1k memory writes with avr with no problem and now something like that happens
[07:39:29] <Martin90> maybe there was short somewhere
[07:39:34] <Martin90> after i mounted it
[07:45:47] <theBear> if you got a tinyisp or usbisp or one of those kinda ones and you can solder you can use the upgraded firmware and 1 extra pin if it's just clock and not write-protect fuses
[07:46:03] <theBear> and you say 1k writes ? the flash is probly failing if it's an older series chip
[07:50:56] <Darkwell> just a quick check since its first time I'm getting atmel328pu without a bootloader... When purchasing the chip and crystal I'm asked about if I want 8MHz 16MHz or 20MHz crystal... does it matter for me when adding the bootloader?
[07:52:26] <LeoNerd> I imagine it just affects the timing
[07:52:33] <LeoNerd> So if the loader isn't timing-critical, no
[07:52:37] <theBear> not if yer programmer ain't mental-fast AND the bootloader is ok for the next round at that speed
[07:52:44] <theBear> and don't forget some caps
[07:52:52] <LeoNerd> but obviously if the loader is talking UART or USB or something, then yes that will matter
[07:53:03] <theBear> generally a serial or usb loader will be kinda picky about speed, at least knowing what it gonna be
[07:56:29] <Darkwell> I'm trying to upload from an arduino uno v3.. when I got the chip
[07:58:38] <Darkwell> the idea is to solder the crystal and so on a breadboard to easily hook up and upload bootloader on...
[08:02:10] <Darkwell> what I found also is that I have to know if and if so which frequency the crystal will be on the board to upload proper bootloader or did I get it wrong ?
[08:28:51] <theBear> lets just say it's best to know what yer bootloader is gonna want clock-wise LONG before you program it
[08:29:11] <theBear> and it doesn't hurt to grab another dollar worth of caps and crystals and you'll have all the common ones for years to come
[10:04:57] <Lambda_Aurigae> sometimes I miss the OTP days.
[10:05:40] <Lambda_Aurigae> back when you wrote your code, rewrote it, re-rewrote it, had someone double check it, you triple checked it, then you put it on the chip and prayed for a miracle that you didn't have a typo.
[10:07:43] <Jartza> yay
[10:07:48] <Jartza> my circuit even work
[10:08:09] <Jartza> what I understood after soldering was - should've flashed the chips first :D
[10:08:33] <Jartza> luckily I have saleae and it's probes, so I could attach my programmer to chips
[10:13:53] <Jartza> Lambda_Aurigae: https://drive.google.com/file/d/0B2dTzW9TMeBxdnhmM19ZMkY5SDA/view?usp=sharing
[10:14:23] <Jartza> https://drive.google.com/file/d/0B2dTzW9TMeBxU2d2ZnNCbzhpTUk/view?usp=sharing
[10:14:42] <Jartza> few more angles :)
[10:14:46] <Jartza> I think it became pretty
[10:18:47] <Lambda_Aurigae> it's looking good.
[10:18:52] <Lambda_Aurigae> I like the stacked mode.
[10:20:05] <Lambda_Aurigae> Life is like the ocean...if you can't ride the waves you are probably gonna drown.
[10:37:19] <Jartza> Lambda_Aurigae: yeah, figured out as vcc, gnd, uart and vsync pins go "pin-to-pin" from chip to other, that stacking is the way to go :)
[10:37:52] <Jartza> of course one day there'll be "real" pcb
[10:46:16] <Lambda_Aurigae> those look real enough to me.
[10:48:53] <Jartza> sure, but I mean "single" board :)
[10:49:20] <Jartza> which can also be used as arduino shield too (or nucleo shield, or whatnot shield)
[10:50:04] <Jartza> I'm thinking maybe putting voltage booster and level shifter there so it could be used with 3.3V devices too
[10:50:38] <Jartza> or 1.8V parts in future, if those appear one day :)
[10:51:16] <Jartza> basically this booster chip (ncp1402) allows to use anything from 0.8->5V but level shifting works from somewhere down to 1.6V up
[10:51:53] <Jartza> something worth doing is worth overdoing, eh? :)
[10:52:11] <Jartza> hopefully next weekend I have some time to blog about it
[11:29:26] <Lambda_Aurigae> feature creep!
[11:29:34] <Lambda_Aurigae> but, yeah, looking great so far.
[11:29:50] <Lambda_Aurigae> I've had so much going on elsewise I've only been able to replicate it in B&W mode so far.
[11:29:58] <LeoNerd> Feepers gonna creap
[11:30:05] <Lambda_Aurigae> haven't had time to screw with the software to make it work with external sram,,,
[11:30:20] <Lambda_Aurigae> anyhoo, off to do something similar to work...
[13:25:19] <Jartza> Lambda_Aurigae: well yeah, quick testing on breadboard takes 15 minutes :)
[13:25:25] <Jartza> if you just have 20MHz oscillators
[13:25:45] <Lambda_Aurigae> yup.
[13:26:02] <Lambda_Aurigae> ripped one off of an old motherboard.
[13:26:11] <Jartza> just flash it with "red" color code
[13:26:21] <Lambda_Aurigae> yeah..did that last weekend.
[13:26:29] <Lambda_Aurigae> when I had about an hour to play with stuff.
[13:26:51] <Jartza> ahh mmkay, read wrong :)
[13:27:04] <Jartza> so you DID test it, I first read you didn't have time to test it :)
[13:27:09] <Jartza> so it worked?
[13:27:16] <Lambda_Aurigae> yup.
[13:27:29] <Jartza> nice. so it's not just my monitor that's lucky :)
[13:27:45] <Lambda_Aurigae> only ran it on the nec multisync.
[13:27:55] <Lambda_Aurigae> need to dig out the elo and try on that.
[13:29:19] <Jartza> I would love to know if it works on CRT VGA :)
[13:29:33] <Jartza> if it does, then it works everywhere
[13:30:00] <Lambda_Aurigae> I have a couple...will dig one of those out too.
[13:30:15] <Lambda_Aurigae> have a nice 20 inch one made for graphic design.
[13:30:19] <Lambda_Aurigae> huge monster monitor.
[13:30:31] <Lambda_Aurigae> first monitor I ever had that included both vga and dvi inputs.
[13:31:09] <Jartza> hehe
[13:31:23] <Jartza> I threw away all CRTs few years ago as I ran out of storage space
[13:31:38] <Lambda_Aurigae> I've kept this one.
[13:31:45] <Jartza> but after my house renovation is done, I'm going to be left with two empty storages
[13:31:46] <Lambda_Aurigae> I have a couple of light guns and a light pen that work on it.
[13:31:51] <Jartza> then I can start collecting crap again
[13:31:51] <Lambda_Aurigae> they don't work on the LCDs
[13:31:56] <Jartza> yea
[13:32:36] <Lambda_Aurigae> I have a couple of old games that work best with the guns.
[13:33:41] <Jartza> I have 20 years old three-tube-videoprojector in storage, though
[13:33:52] <Jartza> that should work with light guns
[13:33:54] <Jartza> :)
[13:33:56] <Lambda_Aurigae> I tore a few of those apart for the optics a while back.
[13:34:16] <Jartza> this weighs something like 60kg
[13:34:25] <Lambda_Aurigae> yup.
[13:34:35] <Lambda_Aurigae> had 3 like that plus a 52 inch rear projection tv.
[13:34:41] <Jartza> nice :)
[13:34:52] <Lambda_Aurigae> still have the screen for the tv...nice big honking fresnel lens.
[13:38:33] <Lambda_Aurigae> if you ever tear those things apart, do it outside or inside a nice tote with no holes in the bottom.
[13:38:49] <Lambda_Aurigae> the ones I opened are full of super clear ultra fine oil.
[13:39:04] <Lambda_Aurigae> it is apparently to keep the optics cool so they don't warp.
[13:39:31] <Jartza> oh
[13:39:36] <Jartza> might be yeah
[13:39:38] <Lambda_Aurigae> each projector unit has the crt butted up against an optic section and that section has 2 to 3 lenses with oil in between the lenses.
[13:39:57] <Jartza> good to know
[13:40:13] <Lambda_Aurigae> I cracked the first open on the living room floor...carpet.....oops.
[13:40:32] <Lambda_Aurigae> luckily I was able to get it over something to catch most of the oil and it cleaned up easily.
[13:40:47] <Lambda_Aurigae> stuff is probably horribly toxic or carcinogenic or mutogenic or something.
[13:41:06] <Lambda_Aurigae> might be why we have those huge ants show up every once in a while.
[13:41:26] <Lambda_Aurigae> this year they were like 2+cm long.
[14:00:26] <Jartza> hehe
[14:00:42] <Jartza> ahh. I need to order more Tagsu
[14:00:44] <Jartza> +s
[14:00:52] <Jartza> all gone
[14:06:49] <Lambda_Aurigae> eating them for breakfast?
[14:09:45] <Jartza> nah. sold the rest in stock today.
[14:09:51] <Jartza> all 80 to one customer :)
[14:13:23] <jacekowski> Lambda_Aurigae: oil is normally there because of different index of refraction
[14:13:39] <jacekowski> Lambda_Aurigae: so you can do same thing in less space
[14:13:42] <Lambda_Aurigae> jacekowski, yeah, kinda figured that....but I'm betting it helps to cool them too.
[14:14:01] <jacekowski> Lambda_Aurigae: it takes a lot to warp glass
[14:14:28] <Lambda_Aurigae> the lenses I pulled out of the rear projection tv were plastic type material.
[14:14:35] <Lambda_Aurigae> not sure what exactly, but they aren't glass.
[14:15:14] <Lambda_Aurigae> they felt too light so I chipped one to see.
[14:17:40] <jacekowski> probably acrylic, takes a lot to damage as well
[14:17:50] <jacekowski> in some ways better than glass
[14:24:30] <englishman> hey dudes, where can i find stk500.exe to flash with my avrispmkii, tried atmel studio 5 and 6
[14:28:02] <Lambda_Aurigae> englishman, no clue what you are talking about.
[14:28:16] <Lambda_Aurigae> does avrdude not work with it?
[14:31:43] <englishman> avrdude uses a different libusb driver i believe
[14:31:58] <englishman> stk500.exe uses the stock jungo stuff
[14:32:11] <Lambda_Aurigae> oh.
[14:32:26] <Lambda_Aurigae> probably won't work for me which is why I never heard of it.
[14:32:34] <Lambda_Aurigae> linux only here.
[14:32:36] <Lambda_Aurigae> no winblows.
[14:32:47] <englishman> no .exe at all
[14:32:56] <Lambda_Aurigae> that's winblows/dos...
[14:33:05] <Lambda_Aurigae> useless on linux unless I run wine.
[14:33:15] <Lambda_Aurigae> and my programmer works fine on linux.
[14:33:31] <englishman> great thanks for not being helpful at all, and pushing your crappy OS too.
[14:33:44] <Lambda_Aurigae> better than being quiet I suppose.
[14:44:23] <Strangework> lol
[14:56:54] <TechIsCool> Anyone played with frigidaire ac remote?
[14:57:07] <Lambda_Aurigae> only to turn my ac on and off.
[14:57:41] <TechIsCool> Lambda_Aurigae: ok, trying to get the remote sense working
[14:57:54] <Lambda_Aurigae> no clue...mine seems to work.
[14:57:58] <Lambda_Aurigae> it's for a portable AC.
[14:58:10] <Lambda_Aurigae> and seems to have a thermostat control in the remote.
[14:58:40] <Lambda_Aurigae> when the wifey dropped it in the bed and it ended up under the covers one night we woke to being nearly froze to death...so I guess it works.
[15:00:37] <TechIsCool> yah I have the ir decoded now I am trying to figure out way the bytes work
[15:00:43] <TechIsCool> https://docs.google.com/spreadsheets/d/1dzsjstl6Z6v5cpDeSy3ELrdMs4BTkz9wt9dhJgS2tgw/edit?usp=sharing