#avr | Logs for 2013-11-22

Back
[01:30:03] <megal0maniac_afk> OndraSter_: Nevermind, I think the rfid reader will have to wait. Protocol looks like not much fun
[02:15:47] <sjokkis> so doing a complete reinstall of atmel studio 6.1 fixed the problem with the missing arm toolchain, but now i have to reinstall all my extensions
[02:16:07] <sjokkis> and of course it crashes almost every time when you use the extension manager...
[02:16:40] <megal0maniac_afk> sjokkis: You have a dud install, I've never had those issues (except for some toolchain path issues, which were fixed by reinstalling just the toolchain)
[02:17:12] <sjokkis> megal0maniac_afk: you've never had AS6 freeze when you install something in the extension manager?
[02:17:23] <sjokkis> megal0maniac_afk: i've had that problem pretty much every time, on several machines
[02:18:13] <megal0maniac_afk> Nope, never. It isn't fast, granted, but on both of my machines it works just fine
[02:18:21] <sjokkis> weirdness
[02:22:24] <sjokkis> here it's either responsive and snappy, or it freezes the moment i press "download"
[02:22:32] <sjokkis> unfortunately it's usually the latter
[08:35:17] <megal0maniac_afk> beaky where are you?
[08:35:21] <megal0maniac_afk> It's PWM time
[13:02:13] <jerkey> wheres beaky?
[13:02:28] <MrM0bius> in ##electronics
[13:03:01] <Tom_itx> wonderful channel that is
[13:17:44] <t4nk758> Never been in #electronics. Is it a zoo?
[13:18:00] <Tom_itx> uh huh
[13:18:14] <Tom_itx> at least it used to be
[13:18:16] <Tom_itx> i left
[13:18:50] <t4nk758> I subscribe to enough cest pools as it is. I don't need one more.
[13:35:58] <v0kehc> cess*
[13:47:43] <bss36504> anybody ever used this library? http://www.roland-riegel.de/sd-reader/index.html
[13:48:10] <darwen> abcminiuser: hi dean, i am using the HID bootloader on an atmega32u4 but i'm noticing that the device fails to enumerate after a few power cycles. do you know what might be causing this?
[13:49:29] <abcminiuser> Err
[13:49:32] <abcminiuser> No
[13:49:45] <abcminiuser> Hrm
[13:50:03] <abcminiuser> Actually IIRC there was a silicon bug that could cause incorrect starts on some USB AVRs
[13:50:12] <bss36504> Sometimes my MSC fails to enumerate, yet the computer detects the device. Perhaps there is a common link
[13:50:13] <abcminiuser> Does it always fail after the first time?
[13:50:20] <darwen> no
[13:50:46] <darwen> sometimes it will happen after 3 power cycles, some times the next day it will fail
[13:51:49] <bss36504> very similar to my problem actually
[13:51:56] <darwen> interesting
[13:59:08] <beaky> hello
[13:59:17] <beaky> what kind of low-pass filter should i connect to my adc
[14:03:28] <bss36504> the kind that passes low frequency signals maybe? I don't really understand the question.
[14:04:08] <beaky> any examples of the low-pass filter?
[14:36:17] <kdehl> What does FR2 mean in "Photoresist FR2 PCB"?
[14:38:33] <kdehl> Man, I haven't made my own PBCs since high school.
[14:38:42] <kdehl> (Almost 20 years ago...)
[14:38:53] <beaky> http://en.wikipedia.org/wiki/FR-2
[14:40:12] * kdehl feels slightly embarrassed
[14:40:52] <kdehl> So that's the plastic-like material that has a copper layer on top?
[14:41:07] <bss36504> yup
[14:41:15] <bss36504> FR-4 I think i more common
[14:41:53] <jerkey> are you rural?
[14:42:03] <jerkey> oops
[14:42:23] <kdehl> Huh?
[14:42:27] <kdehl> bss36504: Okay.
[14:54:26] <darwen> abcminiuser, do you have some spare bandwidth to consult on some avr embedded development?
[14:55:47] <abcminiuser> Err
[14:56:09] <abcminiuser> I'm finishing up my Atmel employment soon, then I will most likely be subcontracting for a short while
[14:58:16] <darwen> okay, we would be open to having you consult remotely and also having you in house for a little while. we are a start up based in silicon valley.
[14:58:48] <darwen> when would does you employment finish?
[14:59:53] <darwen> *when does your employment finish?
[15:06:50] <specing> so abcminiuser, so sucessfull, so wanted. Awesome.
[15:07:15] <abcminiuser> Hah I wisj
[15:07:47] <abcminiuser> Well, I leave for home on holidays on the 6th
[15:07:56] <abcminiuser> Then finish my contract 1st Jan
[15:08:05] <abcminiuser> Then hopefully this consult job will go ahead for a month
[15:08:09] <abcminiuser> Then I'm free :P
[15:08:18] <darwen> we need you next monday
[15:08:34] <darwen> in 48 hours we need to make a decision
[15:09:00] <darwen> can we pm?
[15:09:39] <abcminiuser> No chance, can't be done
[15:09:59] <darwen> okay can we talk over email?
[15:09:59] <abcminiuser> If nothing else my current work contract forbids other work until its expiry
[15:10:19] <abcminiuser> Sure, but 1st Jan onwards is my first availability
[15:10:46] <kdehl> darwen: What are you going to do?
[15:12:01] <darwen> i can't discuss in public but we can skype
[15:19:15] <specing> :(
[15:19:24] <specing> but skype is NSA, microsoft, younameit
[15:21:21] <v0kehc> lol
[15:21:37] <darwen> that's fine. we will talk business - it's not a matter of national security.
[15:30:53] <GUEST_______> What's the easiest way to read a bit from a port?
[15:31:39] <GUEST_______> Say I want to read PC6
[15:32:06] <abcminiuser> PINC & (1 << 6)
[15:32:22] <GUEST_______> Thank you abcminiuser
[15:37:16] <abcminiuser> Be aware of JTAG depending on the device
[15:37:33] <abcminiuser> By default it will override some pins of PORTC usually
[15:39:26] <Tom_itx> abcminiuser you back home now?
[15:39:40] <abcminiuser> Not until the 7th
[15:39:44] <Tom_itx> somebody was wantin to hire you here yesterday
[15:40:02] <abcminiuser> And just now apparently
[15:40:06] <Tom_itx> ahh it pays to read the logs
[15:40:08] <Tom_itx> same one
[15:40:08] <abcminiuser> Sadly (?) I can't until Jan
[15:40:21] <abcminiuser> Then I've agreed to quote for a quick contract from a big vendor
[15:40:26] <abcminiuser> Then free and jobless :(
[15:40:42] <darwen> well, we would be open to have you consult remotely
[15:41:07] <darwen> if that does not conflict with your current work
[15:41:12] <abcminiuser> Remote is good, but current contract says no unless I get special dispensation
[15:41:22] <abcminiuser> Which actually may be possible over Dec since I'm on holidays
[15:41:41] <abcminiuser> So I can ask if it's something that is short term
[15:41:45] <darwen> great
[15:42:02] <darwen> i think it is something you can solve
[15:42:36] <darwen> or at the very least point us in the right direction
[15:43:08] <abcminiuser> Hrm, well email me the details and I'll see what I can do
[15:43:15] <darwen> okay great
[15:43:19] <darwen> thanks dean
[15:43:24] <darwen> :D
[15:43:31] <abcminiuser> No promises, since I a) need to ask at work with my managers and b) need to make sure I don't kill myself working before XMas
[15:44:41] <GUEST_______> Ha Ha
[15:45:21] <darwen> well we would be grateful to have a minute of your time
[15:45:45] <abcminiuser> https://upload.wikimedia.org/wikipedia/en/thumb/1/16/Drevil_million_dollars.jpg/200px-Drevil_million_dollars.jpg
[15:48:48] <abcminiuser> Hey neat I'm down to just 21 emails unanswered now
[15:57:24] <GUEST_______> Does it tend to increase or decrease as Xmas approaches?
[15:59:41] <abcminiuser> Tends to go up as I get less inclined to answer due to being buggered from work
[15:59:57] <abcminiuser> But we're over the end-of-year project "HELP ME OH GOD" student email hump
[16:00:13] <abcminiuser> Now everyone's decided to find fun hard issues I need to actually debug :(
[16:00:14] <megal0maniac> GUEST_______: You need a better nickname
[16:00:41] <megal0maniac> First thought as I got here :P
[16:01:01] <abcminiuser> I agree with this rum
[16:01:03] <abcminiuser> Also megal0maniac
[16:01:35] <megal0maniac> Interesting thing happened yesterday
[16:01:54] <abcminiuser> Mmm?
[16:02:16] <megal0maniac> I requested samples (2x xmega e series) and I got a reply saying:
[16:02:47] <abcminiuser> "You first. Sincerely, Atmel."
[16:03:03] * abcminiuser ruuuuuum
[16:03:05] <megal0maniac> "Dear Sir. Please be informed that we need your support to provide us your full University name and website for your sample request. Kindly revert by Nov 23rd 2013, if we did not receive your respond, we will cancel this sample request. If you would like to re-order and provide the required information we.d be happy to provide the products."
[16:03:40] <abcminiuser> Ah well, just re-submit with your uni name
[16:03:47] <abcminiuser> Our datasheet team didn't like my comment today
[16:04:01] <megal0maniac> I just replied to the email, and it worked. I was pleasantly surprised
[16:04:02] <abcminiuser> "Are there any plans to translate the datasheet errata into English?
[16:04:14] <megal0maniac> Hahaha!
[16:04:14] <abcminiuser> "What language do you *think* it's in?"
[16:04:18] <abcminiuser> "...
[16:04:22] <abcminiuser> ....French?"
[16:04:44] <megal0maniac> abcminiuser: I need this rum I think
[16:04:56] <abcminiuser> I wasn't drinking at work :P
[16:05:10] <GUEST_______> abcminiuser: Does Atmel give samples?
[16:05:24] <abcminiuser> GUEST_______, allegedly yes we do now
[16:05:33] <abcminiuser> Used to be tight about it, but apparently it's been relaxed a bit
[16:05:42] <abcminiuser> Find the sample center on the website
[16:05:50] <GUEST_______> ah, very good!
[16:05:55] <GUEST_______> Bravo Atmel
[16:06:03] <w|zzy> and i was about to move to NXP
[16:06:52] <megal0maniac> Well the main reason I was surprised was that they fully acknoledged that I'm a student, and carried right on. Never used to be like that
[16:07:35] <abcminiuser> w|zzy, you're dead to me now
[16:07:51] <abcminiuser> megal0maniac, chips are cheap when it might mean a big future sale down the track
[16:07:59] <w|zzy> Naw.. I even tried to set you up with a job!
[16:07:59] <abcminiuser> One sample now might mean an order for a 100K later on
[16:08:17] * abcminiuser ruuuuuuum
[16:08:28] <w|zzy> 100K is a big batch
[16:08:52] <abcminiuser> Not really
[16:08:53] <megal0maniac> abcminiuser: Shipping aint! But yes. Chances are I'll stick with Atmel. I know it, I like it, the community is good and there's rum
[16:09:02] <abcminiuser> Well yes and no
[16:09:12] <w|zzy> For a student it is.
[16:09:14] <abcminiuser> But I'm working with million quantity customers
[16:09:19] <abcminiuser> Well, yes
[16:09:28] <abcminiuser> megal0maniac, RUM!
[16:09:30] <megal0maniac> But students aren't students forever, is the point
[16:09:32] <abcminiuser> We're a fun bunch
[16:09:45] <abcminiuser> megal0maniac, indeed, they won me over early as a student
[16:09:50] <abcminiuser> Now look where I am
[16:09:54] <abcminiuser> ...about to leave them
[16:10:00] * abcminiuser OH GOD WHY
[16:10:00] <megal0maniac> Drinking rum, at home
[16:10:01] * abcminiuser run
[16:10:02] <w|zzy> Ready to attack the world
[16:10:13] <abcminiuser> I regret nothing
[16:10:40] <w|zzy> Time to start a consulting business
[16:11:36] <abcminiuser> WheeEEeeeEEeeeeeeEeeeeee
[16:12:00] <megal0maniac> Also, GDP?
[16:12:37] <megal0maniac> Do you know _how_ to fixing that framing nonsense?
[16:13:14] <abcminiuser> GDP!
[16:13:17] <abcminiuser> I've heard of that!
[16:13:31] <abcminiuser> I've been pondering it for a bit, still a bit cranky
[16:13:52] <abcminiuser> Right now the best solution I have is that the tool can either receive an expected response length from the protcol layer
[16:14:07] <abcminiuser> Or if the protocol layer doesn't specify, it uses its own internal framing
[16:14:16] <abcminiuser> And if there's no internal framing, it throws an error
[16:14:42] <abcminiuser> Since the tool/protocol combinations are fixed, that should work as long as you don't connect a non-hinting protocol to a non-framed tool
[16:15:16] <abcminiuser> darwen, oh COOL
[16:15:21] <abcminiuser> Hell yes I'll ask at work
[16:16:12] <megal0maniac> I would have suggested you do that ages ago if I hadn't assumed it had already occurred to you
[16:16:34] <abcminiuser> Well it's the first thought I had, it's just messy
[16:16:37] <abcminiuser> I don't like messy ;(
[16:16:52] <megal0maniac> No I mean ask at work
[16:17:03] <abcminiuser> Ah right
[16:17:11] <abcminiuser> Well, generally it's a no
[16:17:21] <abcminiuser> But since I'm leaving for vacation soon, I don't see what they have to lose
[16:17:31] <abcminiuser> And since it's for an Atmel product, they have something to gain in sales
[16:17:57] <megal0maniac> Oh. Would have thought it would have been a bit more relaxed
[16:18:03] <megal0maniac> But I suppose it makes sense
[16:18:38] <abcminiuser> In general they're worred about the usual things
[16:18:46] <abcminiuser> 1) I make trillions of dollars and leave them
[16:18:55] <abcminiuser> 2) I contract and work for competitor chips/companies
[16:19:08] <abcminiuser> 3) I'm so buggered from it, that it affects my paid work
[16:19:19] <abcminiuser> All of which is fair enough
[16:19:35] <darwen> okay great
[16:19:56] <w|zzy> Well you are already going to do 1 and possibly 2
[16:19:57] <darwen> lets close the loop soon
[16:20:09] <GUEST_______> Anyone can help me with CAN?
[16:22:48] <darwen> within 48 hours i need to hear your decision
[16:23:58] <abcminiuser> darwen, excuse the rum, see email
[16:24:07] <abcminiuser> Also it depends on the workload
[16:24:37] <megal0maniac> abcminiuser: Yes it is. The last place I worked for let me sell stuff to them in my private capacity since it was convenient and cheaper than other people.
[16:25:28] <w|zzy> I made a board for work, during my own time, and my manager tried to tell me that it was now my companies intellectual property.
[16:25:31] <w|zzy> I laughed at him.
[16:25:44] <w|zzy> Its not in my work contract...
[16:25:56] <megal0maniac> The place I worked before that actually had that in the contract
[16:26:02] <darwen> okay thanks - we'll continue over email.
[16:26:17] <abcminiuser> Yeah my contract was written in the US
[16:26:27] <abcminiuser> Fairly certain they own a percentage of my soul
[16:26:49] <abcminiuser> Which currently is about 32% rum
[16:27:25] <w|zzy> lol.
[16:27:30] <GUEST_______> Ha Ha
[16:27:43] <w|zzy> Mine is a US based company but im just a sparky under an EBA..
[16:28:04] <megal0maniac> My boss was amused by my turning the front desk into a workstation. I had a mat for soldering and everything, students brough me their broken keyboards and amps and laptops and I fixed them. As long as it didn't take priority over the work that needed to happen, it was fine
[16:28:25] <megal0maniac> RikusW!
[16:28:31] <abcminiuser> We build a temperature sensitive coffee alarm
[16:28:32] <RikusW> hi megal0maniac
[16:28:33] <megal0maniac> Just the man I wanted to see :)
[16:28:34] <abcminiuser> *built
[16:28:37] <abcminiuser> So yay
[16:28:52] <megal0maniac> abcminiuser: What's the threshold?
[16:28:55] * RikusW is back on the farm and using GPRS again.....
[16:29:04] <megal0maniac> Ooh...
[16:29:09] <GUEST_______> How do I enable a fuse?
[16:29:26] <GUEST_______> Is there a setting in the Atmel Studio IDE?
[16:29:30] <abcminiuser> megal0maniac, peltier element connected to a SAM D20
[16:29:36] <abcminiuser> Senses a large delta
[16:29:39] <RikusW> GUEST_______: using a programmer and programming dialog
[16:29:46] <abcminiuser> Triggers the brew timer, then fires a strobe
[16:30:18] <megal0maniac> I was going to ask if you might be able to send me the pins_arduino.h from the arduino patch I sent you. I re-made it but I can't figure out what the hell I did :)
[16:30:23] <GUEST_______> I have the programmer
[16:30:37] <megal0maniac> abcminiuser: I think it's safe to say that this project is deliberately overkill
[16:30:38] <GUEST_______> Where do I find the programming dialog?
[16:30:59] <megal0maniac> GUEST_______: You get no answers with a nick like that
[16:31:13] <w|zzy> Didn't atmel get upset over that, abcminiuser?
[16:31:14] <RikusW> megal0maniac: don't you still have my original patch around somewhere ?
[16:31:16] <GUEST_______> Ha Ha
[16:31:27] <abcminiuser> w|zzy, that was the Mark II
[16:31:28] <megal0maniac> RikusW: Can't find it :/
[16:31:35] <w|zzy> Oh
[16:31:45] <abcminiuser> Mark I: RetroKit, TINY based with LEDs and a micro-piezzo
[16:31:46] <RikusW> ooh, sounds like you have too much files around :-P
[16:32:00] <megal0maniac> Oh god no
[16:32:02] <abcmaxiuser> Now I have a nick
[16:32:05] <abcminiuser> Mark II: My butterfly with amp, speaker, strobe (banned coffee for all of apps)
[16:32:32] <abcminiuser> Mark III: Arduino Leonardo with emergency stop trigger, silent strobe
[16:32:42] <abcminiuser> Mark IV: SAM D20 peltier triggered strobe
[16:33:06] <abcminiuser> Mark V (in developent): test lollipop light to indicate current brewing status, with strobe to finish
[16:33:44] <megal0maniac> abcminiuser: How much is shipping to here?
[16:34:00] <abcminiuser> Aus?
[16:34:10] <megal0maniac> South Africa
[16:34:15] <megal0maniac> I would like all of them please
[16:34:17] <abcminiuser> https://upload.wikimedia.org/wikipedia/en/thumb/1/16/Drevil_million_dollars.jpg/200px-Drevil_million_dollars.jpg ?
[16:34:37] <megal0maniac> An over-the-top figure. Appropriate
[16:35:04] <abcminiuser> Ruuuuuuum
[16:35:06] <megal0maniac> RikusW: Everything works, even the Leonardo (32u4) examples which emulate a keyboard/mouse
[16:35:06] <w|zzy> Does atmel send out samples?
[16:35:11] <abcminiuser> abcmaxiuser, like it
[16:35:13] <w|zzy> of this
[16:35:38] <RikusW> megal0maniac: nice, I'm looking for that patch, haven't found it yet either :-P
[16:36:27] * RikusW got a dump folder from a previous PC, and in there the dump from the other previous one, and another as well.....
[16:36:43] <RikusW> never got around to soerint out all of it
[16:36:48] <megal0maniac> Yeah, that tends to happen. They accumulate quickly
[16:36:51] <RikusW> *sorting
[16:37:05] <RikusW> shift-del ?
[16:37:06] <megal0maniac> And if you start sorting, you HAVE to do it all, otherwise it gets worse
[16:37:20] <RikusW> its the neweset sort algorithm :-D
[16:38:33] <abcmaxiuser> abcminiuser: Where do I change the fuse settings from Atmel Studio?
[16:38:55] <megal0maniac> RikusW: Oh no you don't
[16:39:11] <megal0maniac> abcmaxiuser: Look for "device programming"
[16:39:17] <abcmegauser> Indeed
[16:39:34] <abcmegauser> But be careful, presumably you're going to change the device clock
[16:39:44] <megal0maniac> Dafuq
[16:39:48] <abcmegauser> Ensure you pick the right one, external clock != external crystal
[16:40:46] <GUEST_________> abcmaxiuser, how do I change the lockbits?
[16:40:54] <abcmaxiuser> I found it
[16:41:36] <abcmaxiuser> GUEST_________: I was trying to enable the debugwire
[16:41:41] <megal0maniac> lkj;lkjfdsa;lkj!!!!!!!!!!!
[16:41:57] <GUEST_________> abcmaxiuser, don't do that via the fuses
[16:42:02] <GUEST_________> Never ever manually do that
[16:42:14] <GUEST_________> Start a dW session and it will automatically do it for you
[16:42:24] <GUEST_________> You will need to have ISP connected to enable dW
[16:43:22] <abcmaxiuser> Ok
[16:43:53] <GUEST_________> megal0maniac_afk, head exploded yet?
[16:44:39] <RikusW> GUEST_________: better do /nick abcmegal0user :-P
[16:45:08] <Tom_itx> Madness!
[16:45:14] <RikusW> lol
[16:45:29] <Guest84231> hehe
[16:45:55] <abcminiuser_> Aww
[16:46:01] <abcminiuser_> No fun
[16:46:26] <RikusW> guess you'll have to release your nick
[16:46:34] <abcminiuser__> I should register this
[16:46:56] <Tom_itx> what nick needs released?
[16:47:05] <abcminiuser> Bam
[16:47:05] <RikusW> abc's
[16:47:27] <abcminiuser_> Could be worth millions one day
[16:47:53] <Tom_itx> you didn't authenticate that one
[16:47:55] <abcmaxiuser> Why do I get "Failed to launch program?
[16:48:04] <Guest77450> Nick abcminiuser_ is temporarily unavailable
[16:48:12] <Tom_itx> release it
[16:48:25] <Tom_itx>  /nickserv release abcminiuser_
[16:49:29] <tobbor> Hi Tom_itx! Tell us about the project
[16:49:30] <abcmaxiuser> I get "unable to enter programming mode"
[16:49:43] <abcmaxiuser> Any way to get back to programming mode?
[16:50:03] <RikusW> abcmaxiuser: what programmer do you have ?
[16:50:57] <abcminiuser> Did you start a dW session?
[16:51:05] <abcmaxiuser> Jtagice3
[16:51:06] <abcminiuser> Tools->Disable DebugWire and Close if you did
[16:52:02] <abcmaxiuser> I don't have this option in "Tools"
[16:52:03] <specing> any abcavgusers around?
[16:52:12] <RikusW> abcminiuser: my gui can actually make the dragon disable it automatically when doing ISP
[16:52:35] <RikusW> abcmaxiuser: you first have to start a debug session
[16:52:45] <megal0maniac> But no Windows binaries available :(
[16:52:48] <abcminiuser> RikusW, indeed, I was meaning to ask you yet again for the secret sauce to make my programmer auto-disable it
[16:53:06] <RikusW> the jtice3 ?
[16:53:30] <RikusW> and its built into the U2S, en AS works with that
[16:53:44] <abcmaxiuser> I changed the fuse DWEN
[16:53:59] <abcmaxiuser> Now I cannot disable it
[16:54:02] <abcminiuser> RikusW, jupp want to add it to my firmware
[16:54:13] <abcminiuser> abcmaxiuser, >> "never set manually...."
[16:54:16] <megal0maniac> abcmaxiuser: Well that was silly, wasn't it?
[16:54:27] <RikusW> abcminiuser: in short, pull reset low, wait for 0x55 that will be returned, use it to detect the baud, and send back 0x06
[16:54:41] <abcmaxiuser> abcminiuser: Unfortunately I changed it before you had time to say it :P
[16:54:52] <RikusW> abcminiuser: default dW baud is avr clock / 128
[16:54:56] <abcminiuser> RikusW, nuts, that is actually work
[16:55:08] <abcminiuser> abcmaxiuser, hr,
[16:55:10] <abcminiuser> *hrm
[16:55:16] <abcmaxiuser> Any way to get it back?
[16:55:20] <abcminiuser> Well, you should be able to enter a dW session and close it properly
[16:55:26] <RikusW> *pull reset low and release it...
[16:56:03] <RikusW> and it needs to be open collector so I bitbang using DDR not PORT
[16:56:28] <megal0maniac> Neat trick! :D
[16:57:14] <RikusW> abcminiuser: for 16MHz / 128 -> 125kbits
[16:58:12] * RikusW actually started learning git a while ago :)
[16:58:12] <abcmaxiuser> ah... abcminiuser: It is not in Tools
[16:58:28] <RikusW> put some of my sw into repos
[17:02:33] <abcmaxiuser> I'm now trying to start debugwire without touching the fuse
[17:02:46] <abcmaxiuser> But I get this message: Atmel Studio was unable to start your debug session
[17:03:07] <RikusW> abcmaxiuser: do you have a scope or logic analyzer ?
[17:03:24] <abcmaxiuser> yeah
[17:03:30] <abcmaxiuser> why needed?
[17:03:44] <Tom_itx> it's a good tool to have
[17:03:50] <abcmaxiuser> I can program with ISP alone
[17:04:06] <RikusW> do this, connect a 10k pullup to reset, pull it low and release, 0x55 will be sent back from the AVR if dW is enabled
[17:04:24] <RikusW> rs232 but one wire
[17:04:45] <Tom_itx> what pin?
[17:04:54] <abcmaxiuser> But it worked when I set the fuse manually
[17:04:58] <RikusW> if you do send back 0x06 at the right baud dW will be temporarily disabled, until power cyclke
[17:05:10] <RikusW> Tom_itx: reset pin
[17:05:20] <Tom_itx> dw uses reset i assume
[17:05:24] <RikusW> abcmaxiuser: dW disables ISP...
[17:05:56] <RikusW> Tom_itx: it does, as open collector rs232 one wire
[17:06:00] <Tom_itx> RikusW how did you go about decoding all this?
[17:06:22] <RikusW> I first connected my dragon and a scope
[17:06:30] <RikusW> what I saw looked familiar
[17:07:31] <RikusW> so I built a device to bit sample the line, essentially a on the cheap LA
[17:07:42] <RikusW> then I used an actual serial port on avr
[17:07:54] <RikusW> and eavesdropped on the dragon
[17:08:35] <RikusW> I think a similar approach will work on PDI debugging, I already know the physical part
[17:08:44] <RikusW> and the programming protocol
[17:09:30] <megal0maniac> Night!
[17:11:34] <abcmaxiuser> There is a 10K pullup on my reset line
[17:12:04] <abcmaxiuser> Does this cause problem with debugwire?
[17:15:16] <abcmaxiuser> debugWIRE physical error. Debugger command Activate physical failed.
[17:15:29] <abcmaxiuser> What does this mean?
[17:22:04] <megal0maniac_afk> I vote that your programmer is just a programmer. Not a debugger
[17:22:30] * Tom_itx seconds the motion
[17:22:37] * megal0maniac_afk always does this
[17:23:13] <megal0maniac_afk> Bye for realsies
[17:23:23] <Tom_itx> aww
[17:23:38] <Tom_itx> but the weekend is young
[17:24:17] <megal0maniac_afk> not in my timezone
[17:25:26] <Tom_itx> i need to find a new cool project to work on
[17:26:05] <Tom_itx> i was gonna make a new face for my cnc pendant adding a couple more buttons...
[17:26:17] <abcmaxiuser> Isn't jtagice 3 also a debugger?
[17:26:32] <Tom_itx> sounds like it should be
[17:28:58] <RikusW> abcminiuser: you should tell the tools team to actually add dW OCD support to AVRSIP mkII :-P
[17:29:21] <RikusW> should be entirely possible
[17:29:28] <RikusW> even PDI OCD too
[17:29:31] <abcminiuser> No space
[17:29:45] <RikusW> there is plenty of space last I checked
[17:29:51] <RikusW> iirc
[17:29:59] <abcminiuser> Bad kitty
[17:30:05] <Tom_itx> maybe they're not as efficient as you
[17:30:10] <RikusW> its like half full or something
[17:30:20] <RikusW> the dragon isn't even 40% full
[17:30:37] <Tom_itx> then they'd have trouble selling their high end tools
[17:31:17] <RikusW> probably... business issues, not tech ones..
[17:31:53] <abcmaxiuser> Do I need to power down my target board after changing to debugwire?
[17:32:14] <RikusW> at least once
[17:32:36] <Tom_itx> why is that?
[17:33:24] <RikusW> Atmel docs say so
[17:33:34] <RikusW> to let the dW fuse take effect
[17:33:59] <RikusW> though it seems to immediately disable isp
[17:37:27] <abcmaxiuser> How is the avr programmed when DW is enabled? Through the DW interface?
[17:37:48] <RikusW> yes, its possible
[17:38:18] <abcmaxiuser> But I need ISP to enable DW, right?
[17:38:27] <RikusW> (technically you execute actual instructions like SPM through dW to program the AVR)
[17:38:33] <RikusW> yes
[17:38:44] <RikusW> and to disable the fuse afterwards
[17:39:00] <RikusW> basically temp disable then fuse disable
[17:39:35] <RikusW> jtice3 can do it
[17:39:59] <abcmaxiuser> what is temp?
[17:40:15] <RikusW> temporary disable
[17:40:32] <RikusW> Atmel tools does it by sending 0x06 to the AVR
[17:40:37] <RikusW> at the right baud ofc
[17:40:57] <RikusW> avr clock / 128
[17:41:28] <abcmaxiuser> I see
[17:42:01] <RikusW> there used to be a commandline tool for doing it in AVR studio 4
[17:42:18] <abcmaxiuser> What is the correct procedure to start a DW session when my jtagice3 was first set to ISP mode?
[17:42:19] <RikusW> to bad the programming dialog cannot do it in AS6
[17:42:54] <RikusW> in AS4 probably setup debug platform, then start debug
[17:43:05] <RikusW> I never used it in AS6
[17:43:28] <abcmaxiuser> I'm using AS6
[17:43:47] <RikusW> abcmaxiuser: it seems that you need to be in a debug session to be able to disable dW unfortunately
[17:44:56] <abcmaxiuser> Yeah, I tried setting my tool in ISP mode, but it isn't working
[17:45:04] <RikusW> there are some docs with AS6 that should explain more thoroughly
[17:51:49] <w|zzy> https://blockchain.info/tx/1c12443203a48f42cdf7b1acee5b4b1c1fedc144cb909a3bf5edbffafb0cd204
[17:51:59] <w|zzy> $154 million bitcoin transaction.. Wowser
[17:52:08] <w|zzy> woops wrong room
[17:53:25] <Valen> think somebody made a typo?
[17:56:52] <w|zzy> Who knows. maybe they are pulling out
[19:04:18] <abcminiuser> s/bitcoin/monopoly money/g
[19:05:49] <Tom_itx> you ever been paid in bitcoin?
[19:17:11] <w|zzy> I have.
[19:17:28] <w|zzy> Early on when the price was stable around $8 a coin.
[19:17:32] <Tom_itx> where do you spend it?
[19:17:42] <Tom_itx> walmart?
[19:18:37] <w|zzy> I used some bitcoins to pay for a VPS service.
[19:18:46] <w|zzy> Apart from that i never really bought anything with them
[19:19:01] <w|zzy> there are more places that accept it now but it is still fairly stupid
[19:19:33] <w|zzy> Why would you buy a bitcoin today for $800 then spend it tomorrow when the exchange rate(which most places price based on) is $500/bitcoin
[19:19:44] <w|zzy> Its all speculative rubbish and suspect operations
[19:21:02] <Tom_itx> deal in pure gold
[19:22:04] <w|zzy> If i had bought gold i wouldn't have made anywhere near as much as i did.
[19:22:24] <w|zzy> I made well over 3500% profit.
[19:22:33] <w|zzy> and i sold out before this last crazy jump
[19:22:47] <w|zzy> it would be lik 14000% profit if i had sold now.
[19:23:07] <GuShH> here, have a gun to shoot your balls with
[19:23:17] <w|zzy> Why?
[19:23:34] <w|zzy> It is that volatile that it is just as likely to go the other way and be worthless
[19:23:52] <GuShH> try #stockmidget
[19:24:36] <w|zzy> ill pass
[19:54:23] <v0kehc> w|zzy: eh, with a congressional hearing going on i suspect it'll be flat or go up more
[19:54:32] <v0kehc> the time for btc to fizzle out came and went
[20:00:31] <w|zzy> You're right. Its a sure thing now.