#avr | Logs for 2012-12-22

Back
[03:50:40] <qartis> has anybody worked with a static LCD before?
[03:50:56] <qartis> the kind of LCD with specific segments that can be darkened, like a calculator or a digital scale
[04:15:50] <rue_bed> I think I did
[04:15:54] <rue_bed> qartis,
[04:16:17] <rue_bed> you have to toggle them back and forth to stay dark
[04:16:31] <rue_bed> I cant remmeber the good duties/freq's
[04:29:42] <qartis> rue_bed: yeah, but actually I'm trying to do the opposite
[04:30:00] <qartis> hook the driving signals into an AVR to decode the original LCD message
[05:06:13] <qartis> I know that it's possible to run DC through the display for a short time, so I've been doing that to try to get different segments to light up
[05:06:31] <qartis> I've found 3 ground planes, and running power between them lights up entire clusters of segments
[05:06:50] <qartis> but the rest of the pins don't seem to react at all, and I can't get any single segment to light up using this method
[05:07:05] <qartis> and I've reconnected the display to the unit and it still works perfectly fine, so I don't think I've broken it yet
[07:23:10] <Bustamove> Anyone have experience with unlocking old phones? got a sgh c260 and found pinouts:http://pinouts.ru/CellularPhones-P-W/smasung_c140_pinout.shtml Now, do i need to have a "unlocking box"?
[07:24:11] <Bustamove> Im think im gonna try "Infinity-box" software which have COM as option
[07:26:39] <Bustamove> aww man seems like i need one of thoose unlock boxes :p what is it? high speed flashers?
[07:40:20] <darknite> those old samsung handsets are usually unlockable by just using a key generator
[07:41:21] <darknite> normally one enters the phone's imei and recieve a service code that looks like *#xx#xxxxxx# or similar
[10:18:06] <RikusW> lightning exploded the power co transformer last night :(
[10:18:17] <RikusW> oil everywhere beneath it..
[10:18:46] <OndraSter> huh
[10:18:48] <OndraSter> hey there RikusW
[10:19:01] <OndraSter> you'd be surprised to hear that the thing that died on the main logic board was SMPS :D
[10:19:10] <OndraSter> but it made no sense to me how it was wired up
[10:19:16] <OndraSter> panel was wired as 12V yet it is 5V panel
[10:19:34] <OndraSter> actually it was wired as 5V panel
[10:19:37] <RikusW> hi OndraSter
[10:19:49] <OndraSter> but there was no connection between 12V SMPS and the 5V input :D
[10:20:01] * RikusW is using a petrol generator now, to power the fridges... and pc :)
[10:20:24] <RikusW> which board was that again ?
[10:20:58] <RikusW> (the transformer got like 5mm iron around it, its all bulged and teared open...)
[10:21:07] <RikusW> it was one LOUD bang
[10:21:19] <RikusW> and then I could hear the arcing
[10:21:29] <RikusW> immediately knew what happened
[10:21:34] <OndraSter> logic board with cpu
[10:21:52] <RikusW> brand ? or your own ?
[10:22:01] <OndraSter> original
[10:22:17] <RikusW> hmm
[10:22:20] <OndraSter> I desoldered 5V LDO (connected into my own 5V supply) and SMPS chip itself (connected to my own 12V)
[10:22:27] <RikusW> smps is nice till something goes sideways ;)
[10:23:02] <OndraSter> hehe
[10:23:07] <RikusW> when repairing PC smps there is the occasional bang... :-D
[10:23:08] <OndraSter> I found it randomly by probing random elytes
[10:23:09] <OndraSter> caps
[10:23:58] <RikusW> seems the powerco lorry arrived to replace the transformer :)
[10:24:03] * RikusW goes to have a look
[11:00:51] <iSaleK> Is there AVR LCD library for Nokia 5510 display?
[11:01:40] <Tom_itx> not that i know of
[11:03:01] <iSaleK> How about 3210_
[11:03:03] <iSaleK> ?
[11:03:04] <soul-d> 20 holes 1 0.8 drill :) will be though
[11:03:17] <iSaleK> I have 3210 and 5510 with working displays ?
[11:03:24] <philfine> Just wondering, checking if I am wasting my time now. Is there any MVC (Model-View-Controller) library for AVR?
[11:03:28] <Tom_itx> you can write one then there will be
[11:03:48] <iSaleK> Well I was hoping that someone already did that :)
[11:03:49] <Tom_itx> not sure what that is
[11:04:12] <iSaleK> And I dont have logic analyzer or osciloscope so it would be very hard :)
[11:04:13] <philfine> iPhone SDK like library, but very reduced version of course
[11:06:50] <philfine> MVC is like a paradigm for programming user interfaces.
[11:07:17] <philfine> splitting the application logic from the interfacing and visualisation one
[11:07:37] <Horologium> an abstraction layer
[11:07:40] <philfine> H
[11:07:43] <philfine> oups
[11:07:58] <Horologium> mickysoft loves abstraction layers.
[11:08:13] <philfine> Horologium: Thats what they like to call it
[11:08:22] <philfine> It is not necessarily an abstraction layer :D
[11:08:23] <Horologium> they even have layers to abstract the layers that abstract the operations of the core of windows itself.
[11:08:58] <philfine> If you consider stdio an abstraction layer then it is :D
[11:09:24] <Horologium> although, C is an abstraction layer really.
[11:09:39] <philfine> //if you see it that ways the transistors are an abstraction layer :D
[11:10:43] <philfine> There are many abstraction and adaptation layers in computer science :D
[11:18:33] <tzanger> philfine: haven't tested the dump yet, had to put it on hold for some other craziness
[11:18:47] <philfine> :)
[11:19:02] <philfine> As you mentioned it was a problem of code generation … :)
[11:19:27] <philfine> If you could confirm it we could correct it :D
[11:20:01] <tzanger> I understand, and I'm not dropping the ball on it, I *by far* prefer gcc-avr over using PICs and their compilers
[11:20:29] <tzanger> although maybe you could tell me what the known limitations of avr-gdb are with avarice
[11:20:45] <tzanger> I can't seem to get register dumps other than PC (everything else is 0) and stepping tends to break the connection
[11:21:36] <philfine> Can't really help you with that :) I am not even very experienced with AVRs. :D
[11:22:18] <philfine> Are you using a good debugger hardware or just a crappy DIY MkI ?
[11:22:57] <philfine> I am and that also happens to me.
[11:23:51] <philfine> I guess it is because of crappy hardware on my side :)
[11:23:58] <philfine> tzanger: ...
[11:32:10] <tzanger> I'm using an Olimex AVR-JTAG-USB, I've used a LOT of JTAGs over the years and would consider this on the crappier side
[11:32:24] <tzanger> it's just an FT232 (not 2232).
[11:33:22] <philfine> Maybe thats the reason, but I cannot really be sure about it.
[11:33:22] <inkjetunito> designing a good abstraction layer isn't that easy
[11:34:05] <philfine> I also need to get a good one to get serious with AVR.
[11:34:22] <inkjetunito> start writing one :p
[11:35:00] <philfine> This is getting confusing … are abstractions libraries or languages ?
[11:37:46] <philfine> Nothing is very easy to code. The most difficult thing is making useful abstractions. It really depends of what the community is expecting and how much effort it is will to take to understand the new paradigm of programming.
[11:38:46] <theBear> abstraction is abstraction :) like what we are talking about, quite an abstraction from programming related abstraction layers :)
[11:39:13] <philfine> I am sure many of you a couple of years ago would prefer ASM instead of C, but now for the majority of things would not go back.
[11:47:08] <inkjetunito> i hate the arduino framework, but as an abstraction it's not bad at all
[11:49:09] <DagoRed> I'm with you.
[11:49:34] <DagoRed> However I do have say.... the Arduino has 2 fantastic things that come from it.
[11:49:49] <DagoRed> 1) You can get more people interested in the those damn little things.
[11:50:29] <DagoRed> 2) Once you mess around with AVR dude a bit, they make for great development boards on the cheap that work with AVR Studio.
[11:54:53] <foo303> arduino's are sexy on the outside, avr's on the inside. sure. avr is avr. but meh, nothing got so many clueless people interested in embedded systems programming as dat -ass- board!
[11:55:16] <DagoRed> True.
[11:55:38] <foo303> Wait a god damn minute. ##robotics dagored!?
[11:55:39] <DagoRed> I do really like these arduino nano's though.... drops right in a bread board.
[11:55:46] * DagoRed bows
[11:55:47] <DagoRed> what's up?
[11:56:16] <foo303> You probably forgot, but I remember talking to you before I touched my first wire, let alone microcontrollers haha
[11:56:25] <DagoRed> Oh cool!
[11:56:26] <foo303> Well. Good to see you again! How goes?
[11:56:41] <DagoRed> Interesting.... I am getting back into microcontrollers again...
[11:56:42] * foo303 still has the servos you recommended :p
[11:56:47] <DagoRed> Sweet!
[11:57:28] <foo303> Since then, I did a plotter program with a freescale chip, but eff' that class, I tried all concepts on avr using avr-dude
[11:57:39] <DagoRed> Well... I lost my job I hated and now I will be starting a new job in 2 weeks working on AVR32's and Windows CE embedded systems for a company that sells gasses (toxic, fllammable, etc..). I get to build the distribution and safety systems.
[11:57:49] <foo303> I didn't believe it when the instructor said "Sorry folks, you need windows to program those chips"
[11:57:50] <DagoRed> nice!
[11:58:23] <foo303> my final project was a somewhat-portable-to-other-microcontrollers plotter using two steppers and a solenoid
[11:58:31] <DagoRed> Well... I am struggling with some AVR stuff on linux right now. Granted... I haven't given it the proper time investment yet but that will change :)
[11:58:39] <DagoRed> that is awesome!
[11:58:45] <foo303> avr-dude, dude :p
[11:59:12] <DagoRed> It's the compiling part and getting my AVR programmers working.
[11:59:15] <foo303> I have a project coming up with a split-flap display(140 of them) that we want to use for, you guessed it, displaying tweets
[11:59:28] <foo303> so, I'm trying to think of a way to not use 140 motors
[11:59:29] <DagoRed> I bought one from Tom_itx that works.... but fights with me in Windows.
[11:59:45] <foo303> a split-flap display?
[11:59:47] <DagoRed> The one I bought from AVR sadly is a pain in the ass and can't power the chip from the programmer.
[11:59:50] <foo303> or are you talking about avrs?
[11:59:54] <DagoRed> avrs
[12:00:06] <DagoRed> what is a split-flap display?
[12:00:07] <foo303> sweet.
[12:00:22] <foo303> Actually, most people who give me avrs just get a mega or an uno, it's the way things are here haha
[12:00:43] <foo303> it's those old things that flip a wheel to give you a character
[12:00:52] <foo303> and something holding the card at the top
[12:00:58] <DagoRed> I have those lying around, but I want to get my programmer up and running so I can load the boot loader on it at a minimum.
[12:01:06] <foo303> vintage. It's for an artist anyway
[12:01:11] <DagoRed> Oh that is a cool display!
[12:01:17] <DagoRed> I would just build a clock but that is me.
[12:01:29] <foo303> :p
[12:01:39] <foo303> the biggest problem right now is which motor I should get, and how many
[12:01:46] <foo303> the artist said: lets get 140 steppers
[12:01:52] <DagoRed> holy fuck
[12:01:54] <foo303> I said: are you fucking rich?
[12:02:00] <foo303> he said: no :(
[12:02:02] <foo303> haha
[12:02:06] <DagoRed> Well... there is a way to pull that off.
[12:02:10] <tzanger> I've done avrs, pics, lpcs and bigger things (at90sam, i.mx, blackfin, you name it) but I have to say the at90can is a decent little chip at a decent price. it's got damn near every peripheral I want, avr-libc is pretty complete and it uses standard tools.
[12:02:18] <DagoRed> Recylcing bin. That is what rue_mohr would do.
[12:02:35] <DagoRed> tzanger: cool!
[12:02:58] <foo303> I've not used CAN, ever, tzanger. I heard it's nice, but have yet to figure out what's nice about it. I was contemplating its use for my plotter functionality, but I didn't even know how to wire up to CAN
[12:03:04] <tzanger> here's a LOT to say for having gcc
[12:03:13] <tzanger> I hate and I mean HATE proprietary compilers and build systems
[12:03:30] <tzanger> I used CAN in automotive (naturally) as well as industrial communciations networks (DeviceNet)
[12:03:35] <foo303> codewarrior for freescale. propriatary as it could get!
[12:03:38] <foo303> ...and faulty too.
[12:03:52] <foo303> So, what would you say is a good use for CAN?
[12:04:04] <foo303> using a microcontroller as a stream?
[12:04:42] <tzanger> DagoRed: it's nice int he sense that it's more built around a producer/consumer architecture
[12:04:50] <foo303> i.e., in the plotter case: keep sending commands and be sure you got little to no errors in the process?
[12:04:57] <tzanger> you send messages and tag the message by an ID rather than a destination node
[12:05:05] <tzanger> and anyone interested in it "subscribes" to those message IDs
[12:05:16] <tzanger> think of it a little like multicast
[12:05:34] <DagoRed> tzanger: Are you messing around with CAN I take it?
[12:05:36] <tzanger> it's also nice int he sense that higher priority messages automatically overrule lower-priority one
[12:05:39] <tzanger> ones
[12:05:42] <tzanger> DagoRed: not for years, no
[12:05:43] * DagoRed just got back
[12:06:05] <tzanger> for a two-point network CAN is not really all that useful over something like RS232 or 485
[12:06:40] <DagoRed> so true
[12:06:47] <foo303> RS232 is what I ended up using for plotting
[12:06:58] <foo303> I ended up also throwing the buffering on the client side
[12:07:25] <foo303> no DTR or anything, just send command, send another once the plotter says "ok"
[12:09:39] <tzanger> RS485 (or 422) is nice for noisier environments, or for long runs
[12:12:25] <DagoRed> I thought CAN would be good for long runs.
[12:12:33] <DagoRed> I mean noise environments.
[12:14:52] <tzanger> sure, but grokking CAN becomes a requirement, as does having CAN controllers
[12:15:43] <tzanger> a max485 is dirt cheap and works with practically any UART
[12:16:08] <specing> it is dirt cheap?
[12:16:15] <specing> exactly how cheap is dirt?
[12:16:24] <soul-d> pretty expensive actualy :P
[12:16:29] <specing> because last time I checked, that dirt wasn't so cheap afterall
[12:16:34] <soul-d> 8 eur 50 liters
[12:17:18] <tzanger> $0.66 in onsie-twosie
[12:19:12] <tzanger> gotta go, ttyl
[12:19:39] <DagoRed> later
[14:00:28] <specing> Does anyone remember the webpage URL of rikusW's projects? (ISP mkii)?
[14:01:34] <Steffanx> Yes
[14:02:03] <Steffanx> Should i help yuo remember specing ?
[14:02:52] <Steffanx> https://sites.google.com/site/megau2s/ there you go specing
[14:04:49] <specing> :)
[14:05:51] <RikusW> so the exploded transformer contained 115L of oil....
[14:06:04] <RikusW> and weighs 360kg
[14:06:11] <Horologium> and it is toxic, yes?
[14:06:19] <Horologium> used to be anyhow.
[14:06:23] <Horologium> not sure what they use these days.
[14:06:33] <RikusW> don't know
[14:06:52] <RikusW> seems the new oil is specified to be free of pcbs
[14:07:13] <RikusW> Horologium: it was a 22kV 25kVA transformer
[14:07:14] <Horologium> aahh yes...gotta save the birdies..no more pcbs
[14:07:50] <RikusW> the iron shell is like 3 or 4mm thick
[14:08:12] <Horologium> yup. have seen similar burst open around here.
[14:08:18] <Horologium> lightning does nasty things to them.
[14:08:38] <RikusW> and the surge arrestors wasn't earthed, except one...
[14:08:52] <RikusW> its 3 phase
[14:08:58] <Horologium> oops
[14:09:12] <RikusW> it was one LOUD bang
[14:09:21] <RikusW> and then a lot of arcing
[14:09:54] <Horologium> yupperinos.
[14:09:58] <RikusW> at least the power is back on now :)
[14:10:11] <RikusW> imagine life without it...
[14:10:20] <Horologium> should have seen the one down the street from me when I lived in kansas city. tractor trailer slid sideways through a substation.
[14:10:40] <Horologium> wife and I were watching from our bedroom window when it happened.
[14:10:42] <RikusW> OOPS
[14:10:44] <Horologium> now THAT was a light show.
[14:11:00] <RikusW> can think
[14:11:32] <RikusW> probably $$$$$$ worth of damages...
[14:12:43] <Horologium> yeah.
[14:12:54] <Horologium> we were without power for 4 days while they rebuilt the substation.
[14:14:00] <RikusW> google -> tridelta varisil s3d2
[14:14:07] <RikusW> its the new surge arrestors used
[14:17:29] <RikusW> seems it can handle 10kA
[14:18:26] <Horologium> looks like a surge arrestor designed by uncle Nicky.
[14:36:37] <specing> RikusW: Im just looking at U2Sfw/usb_lib.c
[14:36:49] <specing> Have you ever thought about declaring functions static?
[14:37:34] <RikusW> not really
[14:37:56] <philfine> Hi
[14:37:57] <specing> otherwise it is highly likely that the compiler won't inline them
[14:38:00] <philfine> again
[14:38:02] <RikusW> that would make it private to that file right ?
[14:38:05] <specing> yes
[14:38:23] <RikusW> hi
[14:38:24] <tobbor> hi RikusW.
[14:38:28] <philfine> RikusW: Remember me
[14:38:43] <philfine> you helped me out with getting a debugger on a at90usb162 :D
[14:38:48] <RikusW> you built my jtagmki for the remote right ?
[14:38:58] <philfine> Wow
[14:38:59] <specing> RikusW: avr-size: invalid option -- 'C'
[14:39:02] <philfine> I am impressed :D
[14:39:09] <specing> GNU size (GNU Binutils) 2.23.51.20121115
[14:39:26] <philfine> I have one question
[14:39:37] <philfine> Is it suppose for it to work with avrdude as well ?
[14:39:42] <philfine> RikusW: ?
[14:39:48] <RikusW> it should
[14:39:56] <philfine> I cannot :D
[14:40:19] <philfine> For long time I wondered if the code of your mkI was available
[14:40:30] <RikusW> it is on the site
[14:40:40] <philfine> I don't know the site :D
[14:40:51] <philfine> Can you point me to it ?
[14:41:07] <RikusW> I updated it a bit to support new avrs too, though avrdude will need a bit of convincing ;)
[14:41:24] <RikusW> https://sites.google.com/site/megau2s/home
[14:41:52] <RikusW> as will avarice...
[14:42:14] <RikusW> basically its only the flashing code that needed to change a bit
[14:42:30] <RikusW> afaik the OCD stuff is the same on old and new avrs
[14:42:48] <RikusW> philfine: you'll also find the disasm of the original mki on there
[14:43:02] <specing> Hmm Im not sure how the mega8u2 would cope with 16 MHz at 3v3...
[14:43:07] <RikusW> but beware its not pretty...
[14:43:21] <RikusW> specing: I did it, it worked
[14:43:38] <RikusW> actually megal0maniac did first
[14:43:41] <philfine> Well I have to flash the new version to try it out
[14:43:50] <RikusW> to get abc's avrisp working in pdi mode
[14:43:53] <philfine> If I remember well you patched it to work on the at90usb162
[14:43:59] <specing> RikusW: ok
[14:44:17] <RikusW> philfine: only for the correct crystal speed
[14:44:18] <philfine> Is it directly portable or should I change something in code
[14:44:20] <specing> RikusW: What would I need to get to get ISP and CDC serial on my mega8u2 board?
[14:44:24] <RikusW> you're using 8MHz ?
[14:44:34] <RikusW> or 16 ?
[14:44:35] <philfine> Wow
[14:44:45] <philfine> 8Mhz
[14:46:17] <RikusW> philfine: do you even have avr studio ?
[14:46:25] <philfine> Nope
[14:46:33] <philfine> Why ?
[14:46:49] <RikusW> you need that to compile it...
[14:47:02] <philfine> Ok :S
[14:47:09] <RikusW> or I can compile the new one for you, again ;)
[14:47:13] <philfine> Then I must request for you to provide me an update version
[14:47:26] <RikusW> ok
[14:47:31] <philfine> Do you still have my email
[14:47:52] <philfine> The device is the same so the ave ports should be the same as well
[14:48:26] <philfine> I can send you a mail quickly for you to find me
[14:48:53] <RikusW> im me the email
[14:49:17] <RikusW> so for at90usb162 again ?
[14:49:36] <philfine> Yes
[14:51:58] <specing> Im wondering whether I should pursue the AVR thing
[14:52:11] <specing> I could very well use my stellaris launchpad for this...
[14:52:23] <specing> has like 16 USB endpoints ;P
[14:52:41] <specing> produces a whole page of dmesg ;D
[14:52:54] <RikusW> heh
[14:53:44] <RikusW> philfine: seems the patch is as simple as -> #include <usb162def.inc> #define _8MHZ
[14:53:57] <philfine> :D
[14:54:58] <RikusW> and it seems I had to move the include down
[14:55:11] <RikusW> otherwise there is a out of range error
[14:55:18] <RikusW> (the jtagice.asm include...)
[14:55:40] <RikusW> I included the asm because it can be compiled for three different applications
[14:55:43] <RikusW> uart avr
[14:55:48] <RikusW> cdc avr
[14:56:02] <RikusW> and my builtin cdc on u2s
[14:56:17] <RikusW> so 3 wrapper files including the actual code
[14:56:33] <RikusW> philfine: I need an email..
[14:57:13] <philfine> I have replied to our previous emails so you should have it by now in your inboxx :)
[14:57:20] <RikusW> ok
[14:57:41] <RikusW> I blew my motherboard, so I'm on a different pc now...
[14:58:45] <OndraSter> didn't the motherboard also blow up the transformer? :D
[14:58:47] <RikusW> sent
[14:58:48] <OndraSter> (jk)
[14:59:12] <RikusW> OndraSter: there was quite a time delay involved :-P
[15:00:13] <philfine> Seems like this device is much more then the jtagmkI
[15:00:33] <philfine> RikusW: ?
[15:00:39] <RikusW> you'll have to hack avarice to ignore the lockout on new avr's
[15:00:49] <RikusW> same for avrdude....
[15:01:09] <RikusW> or I could sometime, but the new pc only have XP on it...
[15:01:17] <RikusW> and my avrdude source was on Linux..
[15:01:38] <RikusW> philfine: my U2S is more yes
[15:01:45] <RikusW> its a STK500 too
[15:02:09] <RikusW> and usb-uart
[15:02:23] <philfine> What should I do to adapt this small board of mine to make full use of it
[15:02:32] <philfine> I got a little confused in the site
[15:02:48] <RikusW> that site is for my board
[15:03:03] <RikusW> the hex you have is for jtagice
[15:04:17] <philfine> I fought you could change modes with the buttons
[15:04:21] <philfine> thought
[15:04:33] <RikusW> I made the jtag available for free because the is already many free clones out there
[15:04:44] <philfine> Oh I see
[15:04:44] <RikusW> on the U2S yes
[15:05:11] <RikusW> but my jtag is a bit better than the clones ;)
[15:05:24] <RikusW> although I don't support daisy chaining...
[15:05:28] <philfine> Sorry for the idiot question, but what are the benefits from STK500 ?
[15:06:01] <RikusW> it can do HVPP
[15:06:08] <RikusW> and HVSP for attiny
[15:06:13] <RikusW> and ISP
[15:06:34] <RikusW> only the STK500/STK600 can do HVPP
[15:07:14] <philfine> HV = High voltage ?
[15:07:22] <RikusW> yes, 12V
[15:07:29] <philfine> Ok
[15:08:00] <RikusW> HVSP = 5 wires
[15:08:05] <RikusW> HVPP = 21 wires
[15:08:12] <philfine> The board is not showing a serial device now
[15:08:58] <RikusW> ugh
[15:10:01] <philfine> My bad
[15:10:14] <philfine> It was not flashed correctly somehow
[15:10:25] <RikusW> forgot to erase ?
[15:10:36] <philfine> No, forgot to reset
[15:10:41] <philfine> in the end
[15:10:52] <philfine> don't know what it makes but it did not work
[15:11:11] <RikusW> and now ?
[15:11:12] <philfine> Does your firmware as state ?
[15:11:15] <vectory> specing: do you develope for stellaris on linux?
[15:11:32] <philfine> I mean, sometimes I need to erase and reflash to make it work again
[15:11:46] <RikusW> no state
[15:11:51] <philfine> Strange
[15:11:52] <vectory> got the stellaris launchpad last week, only to read on HaD that linux isnt well supported >_<
[15:12:36] <philfine> Will try to use avrdude to see if it works programming it
[15:13:01] <rue_mohr> DagoRed, with what?
[15:13:08] <RikusW> its ttyACM0 on linux right ?
[15:13:15] <RikusW> on my debian box it was
[15:13:29] <vectory> on ubuntu, it was, too
[15:14:04] <RikusW> philfine: avrdude and avarice contains checks to see if its an mki supported avr or not, you can rip that code out
[15:14:26] <RikusW> I tested my mki on mega324a and it works perfectly
[15:14:34] <RikusW> well programming anyways
[15:14:42] <RikusW> I expect debugging to work too
[15:14:59] <philfine> Do you have the patches for avarice or avrdude ?
[15:15:03] <RikusW> since some other guys hacked jtag on m644 and its the same as m16
[15:15:13] <RikusW> unfortunately not
[15:15:17] <philfine> If not I can struggle through the code
[15:15:19] <philfine> Ok
[15:15:23] <RikusW> haven't tried hacking it yet
[15:15:25] <philfine> One question
[15:15:36] <RikusW> but it should be fairly simple
[15:15:37] <philfine> If your previous version was working this one should work too ?
[15:15:45] <RikusW> yes
[15:15:58] <RikusW> I only changed the flashing code to support new avrs
[15:16:00] <philfine> Avarice was not complaining programming it at least
[15:16:18] <philfine> Ok, what about the pinout for the at90usb
[15:16:20] <RikusW> the old one did not work on m324
[15:16:25] <philfine> Is it the same as before
[15:16:46] <DagoRed> rue_mohr: I was commenting to foo303 about talking to you as a resource for some project he is working on. The artist he is working on wants to mess with 140 stepper motors and doesn't have the cash. So I was telling him to talk to you for tips on how to pull stepper motors out of recycling.
[15:16:46] <RikusW> #define JRST 0 #define JTCK 1 #define JTDI 2 #define JTDO 3 #define JTMS 7 on port B
[15:17:25] <RikusW> probably the same
[15:18:07] <philfine> I guess so
[15:18:07] <RikusW> 140 ?! what the heck for ?
[15:18:34] <philfine> How can I test connectivity with the AVR ?
[15:19:02] <RikusW> try reading the signature with avrdude ?
[15:20:53] <RikusW> philfine: to test connectivity PC-> mki connect a terminal app and type -space-, it should echo A
[15:21:01] <RikusW> eg use minicom
[15:22:11] <philfine> always had trouble using mini com :D
[15:22:17] <philfine> we'll see :d
[15:22:17] <RikusW> heh
[15:22:31] <RikusW> ^a q to quite ;)
[15:22:40] <OndraSter> RikusW, are you still on GPRS?
[15:22:43] <RikusW> ^a z for options
[15:22:45] <OndraSter> or have you upgraded to 56k modem?
[15:22:49] <RikusW> yes
[15:22:56] <RikusW> you mean downgraded ?
[15:22:59] <OndraSter> then I won't send you photos of the rebuilt TV :D
[15:23:00] <RikusW> gprs is faster
[15:23:05] <OndraSter> .. supposedly
[15:23:16] <RikusW> its is, almost double
[15:23:23] <OndraSter> by specifications
[15:23:26] <OndraSter> in reality .. no
[15:23:40] <RikusW> seems EDGE is available by now, but my modem only supports GPRS
[15:23:46] <philfine> I know what is my problems
[15:23:56] <philfine> This thing is sometimes entering DFU mode :S
[15:24:18] <RikusW> then add a pullup to the dfu pin
[15:24:22] <RikusW> 10k or so
[15:25:07] <RikusW> philfine: another thing, connect the jtag before usb,
[15:25:19] <RikusW> I usually use usb to power the target avr
[15:25:36] <philfine> It is safer ?
[15:26:03] <RikusW> my code don't quite detect a new jtag connection iirc
[15:26:06] <RikusW> only on powerup
[15:27:34] <specing> vectory: yes
[15:28:41] <RikusW> it does jtag sync at powerup
[15:30:03] <RikusW> (rcall JTDoReset //reset the TAP)
[15:30:20] <philfine> Does anyone knows by heart what is the pin for DFU mode in at90usb162 ?
[15:30:46] * RikusW goes checking the ds
[15:30:54] <RikusW> its d7 maybe ?
[15:31:35] <RikusW> ah, lucky guess, /HWB on d7
[15:33:20] <RikusW> philfine: sending x__ (_ = space)
[15:33:27] <RikusW> will sync the tap too
[15:33:38] <RikusW> it should reply AA
[15:33:49] <RikusW> its the mki reset command
[15:34:23] <RikusW> so if the mki is powered before the target, send x__ into ttyACM0
[15:35:35] <RikusW> avarice might actually do it, not sure
[15:37:22] <RikusW> specing: so don't you have any jtag AVRs around ?
[15:41:16] <specing> none
[15:41:35] <RikusW> only got attiny ?
[15:41:44] <RikusW> or dW mega ?
[15:51:03] <Tom_itx> philfine what do you wanna know about the at90usb162?
[15:51:39] <RikusW> HWB pin
[15:51:47] <RikusW> already told him its D7
[15:52:58] <Tom_itx> how's your jtag thing working?
[15:55:22] <RikusW> for me fine
[15:55:49] <Tom_itx> what was the purpose behind that?
[15:56:23] <philfine> How should I wire HWB to avoid jumping into DFU
[15:56:24] <Tom_itx> is it linux only?
[15:56:35] <Tom_itx> philfine what do you wanna do?
[15:56:43] <Tom_itx> i tie mine to gnd with a 10k r
[15:56:57] <Tom_itx> but then reset is a programmer button
[15:56:58] <philfine> boot without it jumping into DFu and still work :D
[15:57:07] <philfine> Don't care about the state of that pin :D
[15:57:17] <Tom_itx> tie it to 5v with a 10k then
[15:58:04] <RikusW> Tom_itx: its a jtagice mki with mods to allow new avrs too
[15:58:19] <RikusW> basically only flash writing code needed an update
[15:58:23] <philfine> Can it be 5k :D
[15:58:35] <rue_mohr> gee even I'd be hard pressed for 140 steppers
[15:58:43] <rue_mohr> unless they were floppy steppers
[15:58:48] <RikusW> but avarice/avrdude will need patching to ignore the mki limitation
[15:58:56] <Tom_itx> hmm
[15:59:09] <RikusW> it does work with AS4
[15:59:19] <RikusW> and on my AS4 even allows programming new avrs
[15:59:31] <RikusW> unfortunately blocks debugging them :(
[15:59:35] <Tom_itx> philfine, basically just don't ground it and it will stay out of program mode
[15:59:43] * RikusW should hack that...
[15:59:48] <Tom_itx> you ground it then pulse reset low and it enters DFU mode
[16:00:06] <philfine> It should be fine now
[16:00:10] <philfine> Thanks
[16:00:23] <Tom_itx> what are you doing with that chip?
[16:01:17] <Tom_itx> i leave a resistor on mine since it's just for program updates
[16:01:58] <philfine> I have the RikusW jtagmki
[16:01:59] <philfine> :D
[16:02:27] <RikusW> so the new fw is working now ?
[16:02:33] <philfine> I have a a bunch of those from former PS3 hacks :D
[16:02:41] <philfine> bunch = 2
[16:02:50] <philfine> Not yet
[16:02:52] <philfine> Testing
[16:03:40] <RikusW> does its CDC part work at least ?
[16:03:59] <RikusW> I mean is it properly detected by the pc ?
[16:04:12] <philfine> need help with minicom
[16:04:21] <philfine> How do I send the -space- command :s
[16:04:39] <RikusW> just type space
[16:04:40] <philfine> Connected at |115200 8N1
[16:04:57] <RikusW> baud is irrelevant for cdc
[16:05:19] <philfine> it says something like press meta-z for special keys and cannot do anything :D
[16:05:26] <philfine> Thats why I don't like it
[16:05:45] <philfine> Cannot even kill it :D
[16:05:55] <RikusW> type ^z then a
[16:06:01] <RikusW> ctrl z
[16:06:10] <RikusW> ^z q to quit
[16:06:29] <philfine> Not even that :S
[16:07:37] <RikusW> control-a q ?
[16:07:48] <RikusW> don't hold control when pressing q
[16:08:14] <RikusW> ^a q
[16:08:25] <RikusW> ^a z should give a menu
[16:09:17] <Tom_itx> philfine, were you making ps3 hack devices too?
[16:09:42] <philfine> no
[16:09:44] <Tom_itx> that was short lived
[16:09:47] <philfine> bunch = 2
[16:09:59] <philfine> yeap
[16:10:49] <RikusW> why, did ms fix the hole ?
[16:12:33] <philfine> Rikus sometimes I connect this thing and the U2S does not get into stack
[16:12:38] <philfine> Is not detected
[16:12:58] <Tom_itx> philfine, i had a couple too: http://tom-itx.dyndns.org:81/~webpage/boards/new_batch/USB_chips.jpg
[16:13:03] <philfine> I guess the at90usb162 is not initialising correctly
[16:13:20] <philfine> Wow :D
[16:13:44] <philfine> They should make an arduino with those so you can clear your stock :D
[16:14:27] <RikusW> well you only have mki, not U2S
[16:15:12] <philfine> Tom_itx: 5v with 5k resistor to HWB should be fine to make the at90usb162 execute correctly right ?
[16:15:24] <Tom_itx> should be fine
[16:15:39] <Tom_itx> or set the internal pullup
[16:15:44] <philfine> The serial device does not comes up
[16:15:54] <philfine> it shows at USB stack as U2S
[16:17:16] <RikusW> ah yes
[16:17:24] <RikusW> it would
[16:17:39] <RikusW> is there no /dev/ttyACM0 ?
[16:18:19] <philfine> it is still unstable
[16:18:25] <philfine> nope
[16:18:30] <philfine> Sorry
[16:18:43] <philfine> My problem is the voltage on startup I guess
[16:19:00] <philfine> I'm confusing you all :D
[16:19:22] <philfine> I mean, the HWB when connected to 5v still is entering to DFU sometimes
[16:19:41] <philfine> I guess that is the problem
[16:19:50] <Tom_itx> do you have a pullup on reset?
[16:20:27] <philfine> No
[16:20:30] <philfine> I should ?
[16:20:38] <Tom_itx> yes
[16:20:43] <Tom_itx> 10-100k
[16:23:45] <RikusW> philfine: I just tested the PC->mki connection using one of my 16U2's
[16:23:49] <RikusW> seems ok
[16:24:04] <RikusW> I just changed the #define to be 16MHz not 8
[16:24:22] <philfine> This is definitely my fault
[16:25:13] <RikusW> do you have proper caps on the board
[16:25:37] <RikusW> ucap needs 1uF
[16:25:44] <RikusW> prefarably tantalum
[16:25:51] <RikusW> and uvcc needs 10uF
[16:26:14] <RikusW> and 22 Ohm in series on both usb data lines
[16:26:28] <RikusW> and 22pF caps on both crystal pins
[16:26:36] <Tom_itx> i used 27 but it depends on the length of the traces
[16:26:47] <Tom_itx> and i used ceramic on both caps
[16:27:16] <philfine> One iditot question: Pull up resitor is connected to ground right ? :D
[16:27:23] <Tom_itx> and preferrably a esd device on the data lines
[16:27:26] <Tom_itx> nope
[16:27:31] <philfine> to VCC
[16:27:33] <Tom_itx> UP is 5v
[16:27:37] <Tom_itx> down is GND
[16:27:37] <philfine> Ok
[16:27:49] <philfine> The device is claimed to be drawing to much owed now
[16:27:53] <philfine> Computer claims :D
[16:28:00] <philfine> power
[16:28:04] <Tom_itx> you got something shorted then
[16:28:13] <RikusW> is it connected to the target avr too ?
[16:28:45] <RikusW> if there is too many caps connected it can draw too much current when connecting...
[16:29:17] <RikusW> I've had that problem before, or maybe it was the dragon psu
[16:29:27] <philfine> Single cap only
[16:29:38] <RikusW> how many uF ?
[16:30:23] <RikusW> and do you have a 1uF on the UCAP pin ?
[16:30:30] <philfine> I don't know the SMD designations, but it was there before
[16:30:47] <RikusW> ok
[16:31:15] <philfine> Thats the one
[16:31:51] <philfine> I don't have a cap between VCC and GND should I ?
[16:32:00] <philfine> That would just make it worst
[16:32:01] <philfine> :D
[16:34:29] <RikusW> I have 10uF vcc-gnd
[16:34:40] <RikusW> and 1uF ucap-gnd
[16:34:55] <RikusW> both tantalum
[16:37:20] <philfine> What about the connection of HWB
[16:38:17] <RikusW> pullup should be ok
[16:38:24] <RikusW> 5k or 10k
[16:39:50] <RikusW> I disabled my HWBE fuse, but then again I have a custom bootloader
[16:41:14] <RikusW> 0:29 here...
[16:41:24] <Tom_itx> weekend
[16:41:46] <RikusW> weekend or not, I'm getting sleepy ;)
[16:41:52] <Tom_itx> aww
[16:42:01] <Tom_itx> the channel will be dead though
[16:42:58] <Tom_itx> we should kick everybody from the channel and only let them in if they can show us an avr project they've done or are currently doing
[16:43:14] <Tom_itx> and be prepared to talk about it
[16:43:40] * RikusW wonders how many will be left...
[16:43:46] <Horologium> 4
[16:44:09] <Tom_itx> there are too many lurkers in channels
[16:44:35] <Tom_itx> i'm gonna wire up my new lcds tonight
[16:44:56] * RikusW got some nokia 1208 lcds
[16:45:04] <RikusW> just have to figure out how to use it
[16:45:11] <Tom_itx> these aren't special
[16:45:15] <Tom_itx> just 20 x 4
[16:46:11] <philfine> Starting to consider hardware fault as the reason
[16:46:33] <philfine> Pretty sure everything is connected right now and still have the unexpected DFU jumps
[16:46:42] <Horologium> you need 12 of those setup in a 40x12 display!
[16:46:57] <RikusW> philfine: did the old hex work fine ?
[16:47:01] <Tom_itx> i got 6 or so
[16:47:06] <Horologium> err...40x24
[16:47:13] <Tom_itx> also got a couple big ones
[16:47:46] <Horologium> I have several displays from sharp copiers but haven't been able to figure out the interface.
[16:47:47] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/temp/lcd/lcd_txt.jpg
[16:47:49] <Tom_itx> one of em
[16:47:59] <Tom_itx> the other is about the same size but graphic
[16:48:37] <Horologium> these are graphic with resistive touchscreens.
[17:38:04] <yunta> OndraSter: ping
[17:46:36] <yunta> come on man, sleeping is overrated
[17:49:24] <vectory> its a poor substitute for coffee x)
[18:00:28] <OndraSter> yunta, pong
[18:00:35] <OndraSter> sorry I wasn't looking into xchat window
[18:00:48] <OndraSter> I am sipping here whiskey
[18:00:50] <OndraSter> because I ran out of beer
[18:01:00] <Tom_itx> well, i found a whole board order i forgot i had
[18:01:04] <OndraSter> lol
[18:01:06] <OndraSter> nice
[18:01:08] <Tom_itx> glad i bumped into them :)
[18:01:15] <OndraSter> I prefer finding money I never knew I had
[18:02:22] <Tom_itx> i don't use alot of em but i'm glad i found em anyway
[18:17:16] <soul-d> http://i.imgur.com/jrSH2.jpg meh probably just 1 time lucky :P never get results with iron on although this doesn't look to bad
[18:22:21] <yunta> oops
[18:23:41] <yunta> OndraSter: cool. do you have some reference implementation for xmega usb enumeration with interrupts ?
[18:23:43] <yunta> or do you work your way with docs only?
[18:28:55] <OndraSter> yunta,
[18:29:00] <OndraSter> I use interrupts
[18:29:05] <OndraSter> and it does not work 100% :)
[18:29:10] <OndraSter> I have got error somewhere :(
[18:29:17] <OndraSter> I worked my way through docs
[18:29:18] <OndraSter> and thinking
[18:29:21] <OndraSter> and a lot of debugging
[18:30:45] <Tom_itx> i wonder what sort of voltage divider i need on the contrast on this lcd
[18:31:27] <yunta> OndraSter: I have some stupid problem with transferring device descriptor. On one of my computers apparently only 2 bytes of this descriptor arrive to pc. Interrupt-less version works fine, so less chance it's hw problem :(
[18:31:32] <yunta> any clue what it might be?
[18:32:28] <R0b0t1> Tom_itx: Look at newhaven displays with a backlight/contrast, they should be the same across models (for the most part).
[18:32:44] <R0b0t1> If you can't get a schematic based on the part you currently have, might be your best bet
[18:34:35] <Tom_itx> i've got one for the control and display
[18:34:43] <Tom_itx> i'm just guestimating
[18:34:57] <OndraSter> yunta, not a slightest
[18:35:09] <OndraSter> what happens after those 2B?
[18:35:13] <OndraSter> and how do you know that it is 2B?
[18:36:42] <devcoder> anyone use an enc28j60 lately
[18:37:06] <devcoder> been trying to breadboard one up and looks like i get a link but no data seems to pass, can't ping the device
[18:37:47] <devcoder> i have a znc28j60 circuit thing with a pre-wired chip and mag jack on it. I try using that and it works fine
[18:37:54] <devcoder> so i know the firmware is working
[18:38:17] <devcoder> i am wondering if i need a certain magjack but that would seem kinda dumb
[18:42:32] <Tom_itx> mmm looks like a 2.5k to gnd would do
[18:43:21] <OndraSter> devcoder, from what I know there are 2 possible connections
[18:43:23] <OndraSter> for the magnetics
[18:43:32] <OndraSter> for enc28j60
[18:43:35] <OndraSter> or is there just one?
[18:43:36] <OndraSter> check datasheet
[18:45:22] <Tom_itx> mmm 4.7k looks better
[18:45:54] <yunta> OndraSter: I have no clue. I don't own proper usb analyser. Those 2 bytes are what wireshark reports on pc. It says "malformed packet" and shows only 2 bytes sent, and btw. those bytes look ok to me (18 and 1).
[18:46:45] <OndraSter> hmm
[18:46:49] <OndraSter> wireshark can do USB?
[18:46:55] <OndraSter> what systems are supported
[18:51:07] <yunta> yes, it can
[18:51:09] <specing> OndraSter: usbmon :)
[18:51:14] <devcoder> OndraSter: looked at the datahseet, just talks about the magnetics not what specific to use. I have tried the spark fun one and ordered some pulsejack j00-0065nl' s. However wondering if breadboarding is just to noisy
[18:51:52] <yunta> OndraSter: but you can see too deeply. you don't see all the tokens and stuff, just whole transactions
[18:53:11] <yunta> OndraSter: as for the system I'm pretty sure it supports all > 2.6.35
[18:55:10] <OndraSter> oh linux thingy
[18:55:11] <OndraSter> lol
[18:55:36] <OndraSter> I have got some usb stuff but it does not report the data itself during enumeration and/or failed enumerations... at least from what I found :(
[18:56:05] <Tom_itx> yay!
[18:56:08] <Tom_itx> works good
[18:56:42] <Tom_itx> no need for contrast pin, just soldered a 4.7k across contrast and gnd
[19:13:51] <soul-d> anyone used that uv iron one stuff before i thought glad to be rid of iron on t
[19:14:03] <soul-d> stuff but i din't get it to work realy
[19:14:14] <yunta> uv iron?
[19:14:35] <soul-d> yeah blue plastic like stuff you laminate on blank pcb
[19:14:38] <yunta> I'm using uv but with pre-coated pcb and normal printer....
[19:15:09] <soul-d> probably old had it in drawer for year +
[19:17:05] <soul-d> oh it has 2 sides to :P
[19:17:11] <soul-d> http://www.instructables.com/id/Dry-Film-Solder-Mask/step2/Laminating/
[19:17:13] <soul-d> somthing like that but blue
[19:18:33] <yunta> hm
[19:18:41] <yunta> is that like a solder mask?
[19:19:49] <soul-d> no just normal pcb resist although somepeople try to abuse it as such
[19:20:57] <yunta> interesting
[19:22:04] <yunta> looks really good
[19:22:08] <yunta> I have to try it someday
[19:22:10] <soul-d> havent had any luck yet though currently just trying an iron on proto
[19:23:18] <soul-d> http://i.imgur.com/jrSH2.jpg <hoping iron on is aligned well enough
[19:23:30] <soul-d> not that i can drill it :P
[19:25:01] <OndraSter> I print my stuff on transparent plastic paper
[19:25:03] <OndraSter> and then UV it
[19:25:18] <OndraSter> if I had better printer I could do 8/8, now I can do only down to 10/10
[19:25:38] <OndraSter> for 0.8mm pitch I do 0.3mm pad/0.5mm spacing (it should be the other way)
[19:25:51] <OndraSter> otherwise the pads do not print properly
[19:25:53] <OndraSter> not enough separation
[19:27:57] <soul-d> the pic is 0.5 mm pads 0.3 spacing
[19:28:00] <soul-d> ~
[19:28:51] <theBear> i think that's about the size of this chip i wanna salvage off this little scrap board here.... no matter how much i squint at it, it just looks impractical to handwire/deadbug on something bigger :)
[19:28:53] <soul-d> if it looks ok and able to drill it with out destroying it could harbor a cmos cam :P otherwise need to retry or redesign again with bigger drill sizer
[19:29:09] <theBear> plus, i use a 1mm or so tip :)
[19:29:27] <soul-d> do havbe hot air thingy on solder station
[19:29:33] <soul-d> to that should work nice
[19:30:13] <theBear> yeah, hot air would be easier <grin>
[19:30:18] <yunta> I personally don't use transparencies. With high quality white paper 0.2mm tracks look fine..
[19:33:22] <yunta> gn
[19:33:43] <theBear> hmm, wonder what the printer at work is like... haven't had a laser, or anything for years, but this chip and a few things recently have been making me think of getting out the gear
[19:35:46] <soul-d> :) it's nice if your able to whip up some board
[19:42:38] <theBear> does make things nicer, and these days, well, it's getting harder to find 'fullsize' parts :)
[19:46:49] <soul-d> true and since it's prototype and never need many i rarely use board service although shounld't be to expensive
[20:18:45] <soul-d> http://i.imgur.com/5ZAdE.jpg?1 don't think it's that bad since it was my first printout and iron on test since ages but now drilling hell :P well or not at all since smallest drill doesn't fit in anything :(
[20:31:07] <tzanger> philfine: ok, I've condensed the problem down to a single file, plus Fleury's uart routines
[20:31:57] <philfine> Hi
[20:32:15] <tzanger> let me paste the source file, perhaps I'm doing something unbelievably stupid
[20:32:55] <philfine> I never used printf suff in ave but i can take a look :D
[20:33:04] <tzanger> http://pastebin.com/8rHeLnA6
[20:33:15] <tzanger> the printf() does not print, but the uart_puts() does
[20:33:17] <philfine> Focking auto spell checking :S
[20:35:46] <philfine> One question the problem as nothing to do with the if right ? :D
[20:36:20] <tzanger> I don't understand?
[20:36:59] <philfine> c will definitely be a multiple to % 10 so there the printf executes
[20:37:00] <philfine> :D
[20:37:49] <philfine> It does not print or it does crash
[20:37:59] <philfine> ?
[20:38:15] <philfine> It makes sense to do flush right after the printf
[20:38:23] <tzanger> this code does not print, it also does not crash
[20:38:34] <philfine> Linux flushes at every \n
[20:38:36] <tzanger> I shouldn't have to flush unless I want to make sure the output is out before continuing
[20:39:03] <philfine> Did you try to flush it ?
[20:39:18] <tzanger> I'm doing it right now
[20:39:25] <tzanger> same result
[20:39:26] <tzanger> no print
[20:39:33] <philfine> Ok
[20:40:15] <tzanger> just for fun I added puts("puts()\n"); to see if the printf was the issue or stdout, it appears stdout is the issue
[20:41:07] <philfine> puts also does not work ?
[20:42:31] <tzanger> now I'm looking back up at how I am connecting the uart to stdio
[20:46:51] <tzanger> looks correct
[20:47:00] <philfine> Cannot really help you here
[20:48:18] <tzanger> ahh, turn off optimization and it reboots (or at least restarts) endlessly
[20:48:52] <tzanger> what was that gcc command to get the dump that you asked me about earlier?
[20:50:15] <philfine> -fdump-tree-final will give you the last dump
[20:50:24] <philfine> creates the file with the dump
[20:51:01] <philfine> -fdump-tree-all the dumps of all GCC steps
[20:55:31] <tzanger> so the dump file is the .lst?
[21:01:13] <philfine> no
[21:01:48] <philfine> if you are compiling main.c the dump should be main.c.1xx.final
[21:04:53] <philfine> Somehow it is not generating in avr-gcc :S
[21:05:14] <philfine> Well too tired now to keep staying around
[21:05:18] <philfine> See you tomorrow