#avr | Logs for 2016-07-12

Back
[00:08:27] <Ashleee> bss36504, I remember E appearing as I was closing on my embedded dev chapter :)
[00:11:47] <mrmoth> I'm trying to get avrdude working with an olimex avr isp mkii. I've applied the patch to avrdude following this forum post: http://www.avrfreaks.net/forum/lufa-based-avrisp-mkii-doesnt-work-avrdude-601 and updated the firmware of the programmer to the latest libUSB-avrdude firmware using dfu-programmer. Here's the output that I keep getting: http://pastebin.com/57LeGd4Q
[00:11:56] <mrmoth> any ideas anyone?
[00:44:48] <_ami_> mrmoth: it seems the firmware of avr isp is not compatible with latest avrdude anymore.
[00:51:56] <mrmoth> _ami_, even when applying the patch?
[00:52:48] <_ami_> mrmoth: probably the patch is not compatible with 6.3 version. you should try with the avrdude version for which author claims it to work?
[00:53:02] <mrmoth> _ami_, I'll give that a go
[00:53:18] <_ami_> mrmoth: try with 6.0.1
[00:53:33] <_ami_> http://download.savannah.gnu.org/releases/avrdude/avrdude-6.0.1.tar.gz
[00:57:10] <mrmoth> _ami_, one of the few programs that has compiled the first try :p
[01:02:07] <_ami_> mrmoth: did it work?
[01:04:24] <mrmoth> _ami_, Getting the same error as I would with the latest avrdude (and no patch applied) http://pastebin.com/KkVrHWMH
[01:04:34] <mrmoth> Gonna try an older version of avrdude
[01:04:42] <_ami_> ok
[01:05:32] <mrmoth> _ami_, same problem I started out with with an older version :\
[01:06:26] <_ami_> mrmoth: after applying the patch?
[01:06:44] <mrmoth> _ami_, yeah
[01:06:56] * WormFood doesn't open the blocked pastebin link
[01:07:12] <mrmoth> WormFood, Is pastebin blocked?
[01:07:31] <WormFood> Yeah, in China.
[01:07:31] <_ami_> mrmoth: WormFood lives in china :P
[01:07:49] <mrmoth> WormFood, If you're curious I can post it elsewhere :p
[01:08:17] <_ami_> mrmoth: check ur connection then
[01:08:17] <WormFood> I compile tons of shit from source. I was writing C code in the '80s. I figured I'd take a peek at it, and see if I could help
[01:09:08] <WormFood> But, I gotta take off and meet someone really quick, and then I'll be back.
[01:09:08] <mrmoth> WormFood, Ah, I'm not programming anything in C. Just compiling random versions of avrdude to see if it'll work with my dinky programmer
[01:09:33] <WormFood> Right, but it doesn't matter if you wrote it yourself, or someone else wrote it, you're still compiling C code.
[01:09:50] <WormFood> I was just pointing out, that I have years of compiling stuff from C
[01:10:46] <mrmoth> ah, well if you could figure out my problem I'd be very grateful!
[01:10:58] <WormFood> I'll take a look when I get back.
[01:11:27] <WormFood> I'll probably be gone about 15 minutes, I'm guessing.
[01:11:38] <WormFood> probably someone else will point out the error before I get back
[01:11:51] <WormFood> by the way, what distro are you using?
[01:40:06] <mrmoth> _ami_, Guess who had his connector plugged in incorrectly?
[01:40:23] <_ami_> mrmoth: damn you :P
[01:40:32] <_ami_> btw, it happens
[01:41:01] <_ami_> so it means latest avrdude should do just fine for you without the patch.
[01:41:05] <mrmoth> I was wondering why the little power LED I rigged was blinking when I would try and program
[01:41:24] <mrmoth> I'll give it a go!
[01:41:46] <mrmoth> Hey it works!
[01:46:34] <WormFood> about time :P
[01:50:42] <_ami_> coolness :D
[01:51:31] <_ami_> i am gonna say " i told you so" :P
[01:51:52] <_ami_> WormFood: btw, why pastebin is blocked in CH?
[01:52:15] <_ami_> does someone share their nuclear weapons list via pastebin? ;P
[01:52:19] <WormFood> What is CH?
[01:52:22] <_ami_> china
[01:52:36] <WormFood> the country code for China, is CN, not CH
[01:52:45] <_ami_> ah, ok.
[01:53:02] <WormFood> I don't know why it's blocked. Probably because it's popular, and anyone can share anything there
[01:55:07] <_ami_> pastebin was once blocked in india, the reason was someone shared the torrent link for a newly released movie. so produces actually took court decision to block pastebin in india for few months.
[01:55:22] <_ami_> bullshit reason to block pastebin and court agrees.
[01:55:24] <_ami_> FFS
[01:55:41] <_ami_> produces -- producers of movies*
[01:55:54] <WormFood> The Internet always sees censorship as damage, and routes around it
[01:56:51] <_ami_> actually its problem in the mentality. instead of solving the problem, ban the medium which is used to create the problem.
[01:57:12] <WormFood> When your only tool is a hammer, every problem looks like a nail
[01:57:48] <_ami_> its just like if someone murders using a kitchen knife -- solution: ban the kitchen knife.
[01:59:21] <Snert> oh no. prosecute the perp as a hate crime.
[01:59:45] <Snert> never mind that it was already illegal to murder someone.
[01:59:52] <_ami_> yeah, :
[01:59:55] <Snert> lol :)
[02:01:37] <_ami_> you know they blocked github once too. :P
[02:02:04] <WormFood> Yes, when they blocked github there was a huge outcry from the tech sector
[02:02:15] <WormFood> They unblocked it.
[02:02:26] <_ami_> http://www.zdnet.com/article/india-lifts-block-on-vimeo-pastebin-internet-archive-others-still-banned/
[02:02:47] <_ami_> they find a reason each time.
[02:02:53] <Snert> those silly fucktards
[02:04:29] <_ami_> although pastebin works now. i sent so many emails to indian telecom minister regarding this.
[02:06:04] <_ami_> lol, someone tweeted his joy when github was unblocked. :P https://twitter.com/channikhabra/status/550519153564454912?ref_src=twsrc%5Etfw
[02:15:42] <_ami_> WormFood: one question regarding soldering. i generally make my circuits on perfboard. how to use only solder to make connection on close joints. e.g. http://farm3.static.flickr.com/2420/2105450676_db9ddf91b4.jpg . In my case, i always struggle to use solder to make connections.
[02:17:05] <_ami_> i think it is called solder bridges?
[02:21:14] <Snert> I save resistor leads after I cut them off.
[02:21:27] <Snert> or strip wire.
[02:21:57] <Snert> I don't rely on solder bridging unless the distance is very close and it is hard not to.
[02:23:12] <_ami_> Snert: ok, noted down. strip wire is a good choice.
[02:23:28] <_ami_> but is n't it hard to hold it still while soldering.
[02:23:52] <Snert> you can kind of sew. like a needle and thread.
[02:24:21] <Snert> so no, the wire stays in place because it goes through the holes.
[02:25:16] <Snert> of course, there are other ways too. Whatever works for you.
[02:25:55] <Snert> your soldering looks really good.
[02:26:54] <WormFood> _ami_, turn down the temp on your solder iron.
[02:27:19] <WormFood> If you want to make solder bridges, and the solder is too hot, the surface tension will cause it to make 2 balls on each pad.
[02:27:50] <WormFood> uh...I don't mean it makes 2 balls on each pad...it makes one ball on each pad.
[02:28:10] <_ami_> WormFood: yes, thats what exactly happens
[02:28:29] <WormFood> I'm still waiting for the page to load....which will be forever, because flickr is blocked here too (don't ask why, as many others are unblocked)
[02:28:35] <_ami_> aha moment for me
[02:29:05] <_ami_> WormFood: http://i.stack.imgur.com/1awsv.png
[02:29:34] <_ami_> i should buy a temperature controlled soldering station.
[02:29:48] <WormFood> Did you know, that China has not specific laws about child porn? ALL porn is illegal here, so there is no need to make extra laws that cover child porn. I just remembered that, because many porn image sites are not blocked in China. It's like the stuff they really hate (porn) isn't being blocked, and the good stuff, is being blocked.
[02:30:26] <_ami_> :P
[02:30:29] <WormFood> now that I can see. That looks like you're doing a decent job
[02:30:35] <Snert> serious. I run with a hot iron. I get my temperature regulation by how long I am on the solder joint.
[02:30:53] <WormFood> Are you using a piece of wire?
[02:30:55] <Snert> be good. be quick.
[02:31:11] <Snert> no matter what I'm soldering.
[02:31:18] <WormFood> Right, let the solder cool down, and only touch it as short as you can, to make the bridge
[02:31:50] <WormFood> I mean, only touch it the shortest amount of time. That's a primitive way of temp control.
[02:32:00] <Snert> it's quick and easy.
[02:32:05] <Snert> it always works.
[02:32:11] <WormFood> But, that also tends to leave cowlicks.
[02:32:13] <Snert> it doesn't require a fancy iron.
[02:32:33] <WormFood> I don't know how better to describe that, but I expect you understand what I mean.
[02:32:39] <Snert> never mind that I have a fancy temp controlled iron though.
[02:32:50] <WormFood> I have a fancy temp controlled iron
[02:32:50] <Snert> I just leave it at 1 temp usually.
[02:33:10] <WormFood> I got a digital iron, and I'm thinking I would have probably been better off with an analog one.
[02:34:11] <WormFood> But, a proper temp controlled solder iron, will make bridging gaps a LOT easier.
[02:36:51] <_ami_> WormFood: sometimes i use piece of wire to make connections between long joints.
[02:41:27] <WormFood> I use another rolling paper between my long joints.
[02:41:33] <WormFood> :D
[02:42:00] <WormFood> _ami_, I do the same now, as it's easier and faster to use a hotter iron, and little pieces of wire.
[03:26:22] <l9> i have a metcal mx-ps5000
[03:38:30] <l9> having a good soldering iron helps alot
[03:41:56] <l9> morning all, yeah _ami_ i know thing changes i just dont think all changes are good changes
[07:23:00] <_ami_> l9: ok
[14:47:36] <bss36504> Lots of channel activity in regards to people timing out and stuff. Problems?
[14:50:28] <LeoNerd> Only the usual freenode/IRC shaped noise :)
[14:52:17] <bss36504> Oh know what, the online IRC client lost its settings...
[14:52:20] <bss36504> my bad
[14:53:59] <bss36504> Oh, so I still couldnt get the comparator to work last night. Found out that not only do you need to set the ACOUT bit in the AC's registers, but you also need to set up the correct pin muxing in the port configuration registers. But, that didnt work. So I think I'll go another route, and try triggering an interrupt, but I'll need another interrupt
[14:53:59] <bss36504> source to make sure all that is setup correctly first.
[14:54:14] <bss36504> Then once i have interrupts firing, I'll try and enable the AC to fire them off.
[14:54:40] <bss36504> In the end i dont really care if the AC is on an actual pin or not. It's just going to be internally routed anyway
[18:50:32] <osteri> bss36504: that's why you have smartfilter irc plugin
[18:51:24] <osteri> you won't miss important quits
[22:26:09] <Chillum> is there a way to tell if the avr is booting due to a watchdog reset?
[22:49:40] <cehteh> yes
[22:51:12] <cehteh> → MCUSR register
[22:51:47] <Chillum> thanks
[22:52:19] <Chillum> that is good, I want my device to require a hard reset by the user if the watchdog has gone off. Looks like I just need to check for that in setup
[22:54:05] <cehteh> be careful clib startup or bootloaders may clear that register, you need to save it aside early
[22:54:36] <cehteh> and if the watchdog is activated, it stays activated over a reboot, you may end in a boot loop if you dont ping it
[22:54:53] <Chillum> and if it gets stuck in that state I need a HV programmer to get it out?
[22:54:54] <cehteh> and why hard reset?
[22:55:01] <cehteh> no
[22:55:12] <cehteh> you can just flash a new program
[22:55:15] <Chillum> ah
[22:55:37] <Chillum> My error handling demands a hard reset in any fatal fault. Keeps my state machine simpler
[22:55:38] <cehteh> but your code may not execute properly, depends on you
[22:55:42] <Chillum> just a personal preference
[22:55:54] <cehteh> watchdog reset is somewhat a hard reset
[22:56:15] <cehteh> for the clib it is
[22:56:17] <Chillum> mostly for consistency with how I handle other errors
[22:56:33] <cehteh> strange design choice :D
[22:56:50] <Chillum> I am strange
[22:57:19] <cehteh> you cah have a 2 stage watchdog trigger .. first watchdog triggers the wdint, next one does the reset
[22:58:21] <Chillum> nice
[22:58:55] <cehteh> i made some code which uses the 'noinit' section for most of the data
[22:59:10] <cehteh> that reduces the clib startup overhead considerably
[22:59:41] <cehteh> and then i manually initialize everything as needed, that keeps all data in sram intact over a reboot (watchdog)
[22:59:53] <cehteh> or in my case reset pin
[23:00:15] <cehteh> registers / mcu will set to their initial state still
[23:37:47] <PoppaVic> oi.. what a fuckin' day
[23:38:46] <PoppaVic> fighting eeprom/ram
[23:58:37] <PoppaVic> "I hear you struck my son." -Yes sir, I did. "May I ask why?" -Well, sir. He stole John Wicks car and killed his dog. "Oh." <click>