#avr | Logs for 2013-11-21

Back
[08:44:02] <Raazeer> hi all
[08:44:46] <Raazeer> does anyone here have the usbtmc module running under linux? (no, it doesn't make more sense to ask in #linux, they don't have scopes mostly)
[08:53:37] * amee2k has linux, but has a real scope that works without a host computer
[08:54:48] <Raazeer> amee2k, what makes you think mine doesn't?
[08:55:36] <Raazeer> i'd like to e.g. transfer screenshots and csv's without constantly having to go through an usb memory stick
[10:01:05] <sjokkis> abcminiuser: Do I have to install an ARM compiler separately to program SAM chips with AS6?
[10:01:28] <abcminiuser> Nope
[10:01:32] <abcminiuser> Comes with 6.1
[10:01:34] <abcminiuser> And 6.0
[10:02:46] <sjokkis> abcminiuser: That's totes weird. Perhaps I need to just clean everything and reinstall.
[10:02:55] <sjokkis> abcminiuser: I checked in settings, and I don't have an ARM toolchain
[10:04:30] <abcminiuser> Must have buggered up during the install
[10:04:35] <abcminiuser> It most definetely ships with it
[10:04:46] <sjokkis> I believe you.
[10:04:56] <sjokkis> It crashes a lot too, so I guess a clean install isn't a bad idea
[10:05:13] <sjokkis> Maybe the 6.0 -> 6.1 upgrade doesn't work so well
[10:06:52] <sjokkis> Upgrades are finicky things
[11:20:20] <megal0maniac_afk> OndraSter_: rfid thingy is at the post office :D
[11:30:40] <awozniak> the USART DRE interrupt on my XMEGA isn't getting called. USART.CTRLA=0x22 (RXC and DRE set to medium level interrupts), PMIC.CTRL = 0x07 (IVSEL=0, and all hi,med,low LVLEN=1), and SREG=0xC2 (global interrupt enable = 1). What else could I be missing here?
[11:32:07] <awozniak> o'scope shows me bits going out on the wire, I know the UART is working
[11:48:27] <OndraSter_> nice megal0maniac_afk
[11:48:38] <OndraSter_> I got it few days ago, but I am sure you will be playing with it earlier than me :D
[11:59:27] <abcminiuser> Tom_itx, programmer is sexy without the case
[12:02:23] <jerkey> Does anyone here have experience or interest in using Marlin firmware on a CNC machine? running on an atmega2560
[12:55:08] <megal0maniac_afk> OndraSter_: Exams finished today, but I have a long-ass todo list. So we'll see about that
[13:23:06] <megal0maniac> Breaking out the Arduino!
[13:24:24] <OndraSter_> breaking the Arduino! *
[13:31:40] <megal0maniac> OndraSter_: They secondary controller is useful. I'm playing with USART. In Studio, that is :)
[14:01:13] <megal0maniac> Wow. SPI was easy. USART is easy (although only in one direction so far)
[14:02:11] <megal0maniac> I hope that I2C is just as easy :D
[14:15:57] <megal0maniac> Ah. UART transmission is easy too.
[14:30:11] <OndraSter_> megal0maniac, I2C a bit "worse"
[14:33:03] <megal0maniac> So I'm discovering :/
[14:46:17] <bsdfox> there are some good i2c libraries
[14:50:15] <megal0maniac> bsdfox: Yeah, but the goal is to learn :)
[14:50:33] <hjohnson> I just wish I could find a decent library for handling AT commandsets
[14:52:20] <Casper> it was fun to deal with non-compilant modem
[14:52:38] <Casper> like sending a ping with a "+++ath0(cr)" packet :D
[14:52:47] <hjohnson> oh yeah haa
[14:53:09] <hjohnson> I will need to deal with an iridium modem and/or a gprs modem, so some library to handle AT command sets would be grand
[14:53:16] <Casper> I always wondered if it was possible to actually send "+++ath(cr)atd911(cr)" it actually fit in the packet payload
[14:53:58] <hjohnson> Casper: usually the modem would have hung up almost immediately
[14:54:12] <Casper> the modem hang up on outgoing packet
[14:54:22] <Casper> so it already received the incomming data
[14:54:55] <Casper> the question is more like... does it need a delay between the ath and the atd command?
[14:55:23] <Casper> and does the phone compagny would actually have "resetted" the line in time for the atd?
[14:55:34] <hjohnson> Casper: or more correctly does it hang up before it receives the latter part of that
[14:55:47] <hjohnson> Casper: any modem I dealt with waited for dialtone before dialing
[14:55:55] <Casper> imagine that... you ping flood an isp with that... and the whole city is flooded with 911 call :D
[14:56:26] <Casper> yes, the modem wait for the dial tone
[14:56:27] <Casper> but
[14:56:43] <Casper> does the modem take any command during the time it actually hang up?
[14:57:17] <Casper> and does that delay is enought to cause the phone compagny to actually "reset" the line into on hook...
[14:59:26] <jacekowski> i think that ath+atd one after another could cause problems
[15:08:43] <megal0maniac> while(1 << SOMEREG);
[15:09:05] <megal0maniac> Does this wait for SOMEREG to be true, then write a 1 to it, or..?
[15:09:36] <megal0maniac> Like an interrupt flag, for example, where 1 clears the bit
[15:18:01] <megal0maniac> Dur
[15:48:21] <megal0maniac_afk> abcminiuser: How's the job-hunt coming along?
[15:55:24] <abcminiuser> Nothing yet :(
[15:55:37] <abcminiuser> I'm off to bed, just grabbing the 4.4 OTA update package
[15:56:11] <megal0maniac_afk> Me too. Exams over. I've been told I should be out getting drunk, but I don't feel it
[15:56:53] <megal0maniac_afk> Something will come up. But at the last minute. Because where's the fun in having your shit together? :)
[15:58:03] <abcminiuser> Congrats!
[15:58:07] <abcminiuser> Anyway, off to bed, late here
[15:58:16] <megal0maniac_afk> Same timezone :)
[15:58:17] <megal0maniac_afk> Night
[15:58:29] <abcminiuser> Night!
[15:59:14] <specing> abcminiuser: no more ATMEL?
[16:13:12] <megal0maniac_afk> specing: No :( He's there until the end of the year, then moving back home
[17:39:27] <bss36504> Hi N1njAway
[18:28:53] <carabia> oh god
[18:29:13] <carabia> just watched some shit by that dave guy with the teenage girl voice
[18:29:23] <carabia> "soldering tutorial"
[18:29:36] <w|zzy> Dave Jones?
[18:29:47] <carabia> I dunno. Davy Jones?
[18:29:51] <w|zzy> please don't think all us Aussies are like this..
[18:30:14] <Tom_itx> haha
[18:30:15] <carabia> anyway his soldering is crap and then he goes on explaining how the chip he was soldering is 20 years old, and his solder and iron are old too...
[18:30:53] <w|zzy> I've not seen many of his videos.
[18:31:07] <carabia> i'm not saying i'd do a better job but i hate his style of... Stuff
[18:31:29] <carabia> "hi guys got this $20k oscilloscope here you jealous"
[18:31:47] <carabia> "agilent sent me this $1M logic analyzer, cya"
[18:32:00] <carabia> "i have worked at microchip"
[18:32:08] <carabia> pretty much sums this guy up
[18:32:40] <w|zzy> People either love him or hate him. very few sit on the fence..
[18:32:59] <carabia> barbed wire
[18:33:30] <w|zzy> I sit on the fence in this one
[19:46:42] <inflex> Hrmm... never a fan of people making grandouse claims
[20:11:06] <v0kehc> he sounds like a pussy.
[20:11:42] <w|zzy> he isn't
[20:15:22] <v0kehc> i bet he is.
[20:16:06] <v0kehc> dear god
[20:16:10] <v0kehc> https://www.youtube.com/watch?v=J5Sb21qbpEQ#t=30
[20:16:15] <v0kehc> 15 seconds and i cant stand this prick
[20:16:32] <Tom_itx> why share it then?
[20:16:56] <v0kehc> becaues its on topic.
[20:16:59] <v0kehc> seems obivous.
[20:17:02] <v0kehc> obvious* too.
[20:17:05] <Tom_itx> no, avr's are on topic
[20:17:19] <v0kehc> well, idk, last 30 or so lines were about this guy
[20:17:23] <v0kehc> maybe we can change it to you eating a bag of dicks?
[20:17:34] <Tom_itx> ok
[20:17:34] <w|zzy> v0kehc: settle down
[20:18:05] <v0kehc> here it comes
[20:18:06] -!- v0kehc was kicked from #avr by Tom_itx!~Tl@unaffiliated/toml/x-013812 [v0kehc]
[20:18:18] <Tom_itx> now behave
[20:18:35] <Casper> … trying to make a fan speed controller... it seems like it would be just easier to just do it with an avr...
[20:18:46] <v0kehc> Tom_itx: dont be a dick <3
[20:18:52] <Tom_itx> i wasn't
[20:18:55] <Casper> I want 30% duty at 30C and 100% at 50C...
[20:18:55] <Tom_itx> i didn't ban you
[20:18:59] <v0kehc> lol
[20:19:05] <Tom_itx> just a shot over the bow
[20:19:13] <v0kehc> i guess that in some way acknowledges it
[20:19:32] <w|zzy> avr would be easier right, Casper
[20:42:40] <Tom_L> http://www.electronicproducts.com/Packaging_and_Hardware/Prototyping_Tools_Equipment_Services/This_3D_printer_exclusively_makes_PCBs.aspx
[20:44:55] <Casper> w|zzy: I did some math, trying to see if I could do it via a simple NTC divider and PWM IC
[20:45:20] <w|zzy> Yeah.. Seems more difficult and less extensible.
[20:45:23] <Casper> unless I add an opamp to add a DC offset, it wouln't work :(
[20:45:32] <w|zzy> damn :(
[20:45:41] <Casper> my issue is that I was getting like 50% duty at 30C
[20:45:51] <Casper> due to the inability to go low enought
[20:46:06] <Casper> the solution would have been to use a dual supply...
[20:46:29] <Casper> or maybe I'll figure out how to make that switcher
[21:27:43] <w|zzy> micro is easy enough
[21:36:40] <darwen> hi everyone, i'm looking for some help with flashing lufa bootloaders
[21:38:27] <Tom_itx> not so hard
[21:38:28] <darwen> i am using an atmega32u4 on a custom board based off the sparkfun pro micro
[21:38:38] <Tom_itx> set a couple fuses and download it
[21:38:54] <Tom_itx> set the boot fuses and download the hex via isp
[21:39:02] <darwen> the problem is after i power cycle it a few times the device fails to enumerate
[21:39:43] <darwen> i've set my fuses like this: lfuse:0xff hfuse:0xd8 efuse:0xc4
[21:39:51] <Tom_itx> i'd check back when dean is here
[21:39:59] <darwen> how often does he stop by?
[21:40:03] <Tom_itx> daily
[21:40:05] <Tom_itx> usually
[21:40:30] <darwen> ok great
[21:40:42] <darwen> thanks!
[21:41:09] <Tom_itx> unfortunately he's come and gone for today
[21:42:02] <twnqx> is he in .au time zone already?
[21:42:11] <Tom_itx> i think he's still in Norway
[21:42:16] <darwen> okay i'm working at a start-up and would be willing to hire him as a consultant
[21:42:16] <Tom_itx> i may be mistaken
[21:42:39] <Tom_itx> twnqx, is he lookin for other work?
[21:43:07] <twnqx> his contract was ending
[21:43:09] <Tom_itx> oh.. he may have worked out something to work from Au for them...
[21:43:13] <Tom_itx> i forget
[21:44:25] <Tom_itx> he must be back in Au now
[21:45:09] <darwen> also - has anyone used the stk600 in linux?
[21:45:23] <Tom_itx> nope
[21:45:38] <Tom_itx> i use my programmer for everything i have
[21:46:31] <darwen> i see, the atmega32u4s i've been flashing have been failing to enumerate so i thought i could do some hvpp with the stk600 to revive them
[21:46:41] <darwen> in case they are bricked
[21:47:00] <twnqx> stk600 doesn't even in virtualbox with AS > 4
[21:47:10] <twnqx> +work somewhere in there
[21:47:34] <Tom_itx> darwen, more than likely our fuses aren't right or the program is loaded in the wrong place
[21:47:39] <Tom_itx> your*
[21:47:49] <darwen> i have AS 6.0 on windows and it works for the stk600 fine
[21:48:19] <darwen> i feel like that is my problem but have had no luck so far in diagnosing it
[21:57:54] <Tom_itx> i don't have one i can isp into atm
[22:00:55] <twnqx> i always managed to reset any chip on the stk 600 (as long as i had the right adapter)
[22:09:24] <Tom_itx> well, i could but i don't feel like breaking out the iron this evening
[22:10:08] <Tom_itx> darwen what are you making?
[22:19:15] <darwen> i'm making a gyroscope/accelerometer board
[22:20:04] <Tom_itx> i've got a couple 32U4 boards but nothing with an isp plug i can test with
[22:20:19] <Tom_itx> wasn't planning on replacing the bootloader
[22:20:29] <darwen> i see, what bootloader are you using?
[22:20:40] <Tom_itx> the one that comes loaded on it
[22:21:07] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/boards/atmega32u4/atmega32u4_1.jpg
[22:21:08] <darwen> i see
[22:21:43] <darwen> 16mhz clock?
[22:21:48] <Tom_itx> yep
[22:21:58] <darwen> do you run at 5v or 3.3?
[22:22:01] <Tom_itx> 4
[22:22:02] <Tom_itx> 5
[22:22:13] <megal0maniac_afk> Good morning all
[22:22:30] <megal0maniac_afk> 3.3 is out of spec
[22:22:33] <Tom_itx> dude you got your daze and nights mixed up
[22:22:36] <Tom_itx> yup
[22:23:18] <darwen> what do you mean
[22:23:35] <Tom_itx> it won't support 16Mhz at 3.3v
[22:23:41] <Tom_itx> look at the specs
[22:23:57] <Tom_itx> 8Mhz
[22:24:25] <jadew> most of them still work even out of spec :)
[22:24:25] <darwen> right - i am running at 3.3 8mhz
[22:24:28] <megal0maniac_afk> Dude you got your timezones all funny. And it might be out of spec, but it still works quite well regardless. "over clocking" if you will
[22:24:43] <Tom_itx> yup
[22:24:46] <jadew> I have plenty of AVRs that are running at higher speeds and lower voltages than what the datasheet says
[22:24:52] <Tom_itx> but technically...
[22:24:55] <jadew> yeah
[22:25:03] <megal0maniac_afk> jadew: naughty
[22:25:11] <Tom_itx> i've programmed them at 1.75v too
[22:25:25] <jadew> Tom_itx, now that's brave :P
[22:25:41] <Tom_itx> the led still blinked although was getting a bit hard to see
[22:25:44] <Tom_itx> it was just a test
[22:25:54] <darwen> anyone use the lufa hid bootloader?
[22:26:26] <megal0maniac> I think I have
[22:26:35] <Tom_itx> go back to sleep
[22:26:42] <Tom_itx> :)
[22:26:42] <megal0maniac> Okay
[22:26:43] <darwen> thanks for your help tom
[22:26:50] <Tom_itx> i haven't used it
[22:26:55] <Tom_itx> heh
[22:27:06] <darwen> megal0maniac, did you flash it yourself?
[22:27:06] <Tom_itx> he took me serious
[22:27:17] <Tom_itx> ^^ never do that
[22:27:21] <jadew> hehe
[22:27:36] <megal0maniac_afk> it's 6am. I don't actually want to be awake yet :)
[22:27:51] <jadew> 6am in here too, I woke up because of tooth pain
[22:27:59] <Tom_itx> now that sucks
[22:28:17] <Tom_itx> that will bring ya to tears
[22:28:28] <Tom_itx> i had a root crack once...
[22:28:47] <Tom_itx> SOB wanted to fix it not knowing it was cracked
[22:28:57] <jadew> combine that with screaming baby in about 30 minutes and you'll get an idea about how my morning will go :D
[22:29:14] <megal0maniac_afk> darwen yeah. I've tried a lot of the LUFA demos.
[22:29:19] <Tom_itx> have some licker for breakfast
[22:29:33] <jadew> Tom_itx, I went for an intervation yesterday and I was supposed to call in today saying it's all better
[22:29:50] <jadew> I guess I have to go back in and have her dig it up again
[22:29:55] <darwen> okay so i've been using the latest lufa hid bootloader and found that it stops enumerating after a few power cycles
[22:29:56] <megal0maniac_afk> jadew: Do what Tom says. it's never too early
[22:30:06] <Tom_itx> heh
[22:30:15] <jadew> I'm holding off on drinking until 10am
[22:30:39] <Tom_itx> jadew, i had mine pulled but after costing $300 i had to finish removing the root myself
[22:30:44] <jadew> megal0maniac_afk, IIRC you're in south africa, right?
[22:31:16] <jadew> Tom_itx, heh
[22:31:43] <Tom_itx> at least i was able to get in the same day
[22:32:00] <megal0maniac_afk> darwen: That's odd. USB has pretty strict time constraints. have you tried DFU or some other bootloader to rule out hardware / clock issues?
[22:32:01] <jadew> Tom_itx, lucky it didn't get covered
[22:32:08] <Tom_itx> i wouldn't let him
[22:32:13] <megal0maniac_afk> jadew correct
[22:32:15] <Tom_itx> i argued to have it pulled
[22:32:46] <darwen> megal0maniac_afk, i will give that a try
[22:32:54] <Tom_itx> he wanted to take the route that would pay him the most
[22:33:09] <jadew> Tom_itx, no X-Rays?
[22:33:26] <Tom_itx> i don't remember, i'm sure he did
[22:33:30] <Tom_itx> but it didn't show up
[22:33:34] <jadew> weird then..
[22:33:52] <jadew> my doc is a family friend, so he doesn't try to take advantage of me
[22:33:56] <Tom_itx> once he started pulling he agreed it was good to pull it
[22:34:05] <jadew> well, they're two, but they work in the same cabinet and they're both friends
[22:34:07] <Tom_itx> this was an emergency visit
[22:34:19] <Tom_itx> i won't make a return trip unless i'm dying
[22:34:49] <Tom_itx> at that point i may just get some licker and diy
[22:35:31] <jadew> I tried the DIY route once, it doesn't always go as easy as you might think
[22:35:48] <megal0maniac_afk> darwen: Might not be a true test since the inner workings are completely different, but your clock might be jittery. Personally I'd recommend using DFU as opposed to LUFA for this
[22:35:52] <jadew> and you realize what you were trying to do when you get it professionally removed
[22:36:02] <megal0maniac_afk> jadew: Why do you ask?
[22:36:03] <Tom_itx> yeah
[22:36:29] <jadew> megal0maniac_afk, I wanted to make sure that sauth africa is on the same timezone as .ro
[22:36:48] <Tom_itx> i can't seem to keep track where you all are anymore
[22:37:08] <megal0maniac_afk> I remember the regulars
[22:37:14] <Tom_itx> i should
[22:37:22] <megal0maniac_afk> jadew: We have no dst
[22:37:44] <darwen> megal0maniac_afk, does DFU support hid?
[22:37:55] <megal0maniac_afk> oh god
[22:38:14] <jadew> megal0maniac_afk, interresting
[22:38:51] <megal0maniac_afk> darwen: dfu is Atmel's bootloader, and it doesnt use hid i dont think
[22:39:07] <darwen> megal0maniac_afk, i see
[22:39:27] <darwen> megal0maniac_afk, but it might rule out a hardware issue
[22:40:17] <megal0maniac_afk> Possibly. Like I said, I'd recommend DFU anyway. Especially for production use
[22:46:41] * megal0maniac_afk goes back to sleep