#avr | Logs for 2012-10-18

Back
[00:34:11] <jadew> w|zzy_, if you haven't got my last link, yeah
[00:34:39] <jadew> http://dumb.ro/files/lafront/OLSFront.zip
[00:35:28] <jadew> I haven't worked on it this weekend tho, however this one should have several bug fixes over the version I think you have
[00:52:12] <w|zzy_> I got the second link... cheers
[00:58:23] <jadew> let me know if you find any bugs
[00:59:08] <w|zzy_> will do
[00:59:28] <jadew> I actually used it to finish my avrisp burner, that felt pretty rewarding
[01:16:21] <w|zzy_> Nice. Im still loving it. It is so nice to use compared to the java one
[01:17:52] <jadew> thanks :)
[01:19:53] <jadew> btw, if you want to mess with the parsers, in the parser developer, when you hit edit
[01:20:11] <jadew> the open file dialog is for the editor you want to use
[01:20:38] <jadew> you can shit click on the edit button to chose another one after that
[01:23:25] <RikusW> jadew: -s :-P
[01:23:46] <jadew> lol
[01:23:48] <jadew> haha
[01:23:59] <jadew> it's shift :P
[01:24:06] <jadew> shift click
[01:24:09] <RikusW> ah
[01:25:17] <jadew> funny typo
[01:28:59] <RikusW> yeah
[01:29:30] <w|zzy_> i got it :P
[01:29:40] * RikusW installs some buttons in the toilet :-P
[01:29:50] <jadew> haha
[01:35:16] <jadew> w|zzy_, do you have a buffered wing for the top 2 groups?
[01:40:35] <jadew> I don't know if I mentioned it before, but if you have several buses of the same type, you can rename them with f2 (in the protocol window)
[01:40:52] <jadew> they get automatically named like SPI, SPI_2, SPI_3 etc
[01:43:23] <w|zzy_> You have :)
[01:43:31] <w|zzy_> I dont do anything that complex..
[01:43:34] <w|zzy_> yet.
[01:44:21] <jadew> yeah, I think 8 channels is more than enough for most projects
[01:45:09] <w|zzy_> i dont complain that it comes with 16 though
[01:45:22] <jadew> yeah
[01:46:49] <jadew> one cool thing you can do is output debug data on usart
[01:47:39] <jadew> and have that in there as well, it helps a lot debugging complex stuff, cuz you know what's going on at any given time
[01:48:49] <w|zzy_> that is also cool. Havent tried that.
[01:49:10] <jadew> here I was debugging the avrisp thing: http://dumb.ro/files/lafront/avrisp_debug.png
[01:54:30] <w|zzy_> :)
[02:12:59] <AnalogSound> monin'
[03:51:15] <alexn> hi guys, before i put into ebay i will ask here if anybody interesseted to buy an JTAGICE MKII.
[04:06:27] <OndraSterver> alexn_, how much?
[04:11:49] <alexn_> in ebay it cost 135. i think 100 euro is ok.
[04:12:29] <alexn_> it is in original packaging.
[04:17:32] <_abc_> Does anyone know where the gptools project channel moved from freenode?
[04:20:23] <_abc_> Or gputils
[05:06:40] <jadew> w|zzy_, http://dumb.ro/files/lafront/OLSFront.zip another update, some bug fixes + possibility to disable a channel (show it as 0), duty cycle, shortest pulse, longest pulse on channel
[05:35:33] <Steffanx> jadew, what's the idea behind your version jadew? The JAVA version done better?
[05:36:12] <Steffanx> Or Sigrok with JS instead of pyhton?
[05:36:29] <jadew> I wanted one that doesn't give me two sets of data when I parse the same signal
[05:36:52] <jadew> the java one was simply unreliable and hard to use
[05:37:51] <jadew> and IIRC I couldn't get sigrok to work
[05:38:02] <jadew> not sure if it was that or I just didn't like it
[05:38:34] <OndraSterver> plus, Java.
[05:39:33] <Steffanx> Yours is based on.. Qt jadew ?
[05:39:45] <jadew> no, it's windows only
[05:39:49] <Steffanx> Ahr
[05:40:12] <jadew> and to answer your initial question... the idea is that I wanted a client that is not junk
[05:40:12] <Steffanx> The gui only runs in wine quite well :P
[05:40:33] <jadew> Steffanx, it has some redrawing bugs in wine
[05:40:53] <Steffanx> Too bad i don't have my OLS anymore
[05:41:19] <jadew> http://dumb.ro/files/lafront/samples.zip
[05:41:30] <jadew> you can open those samples :P
[05:42:35] <jadew> sorry there's no help file yet
[05:43:23] <Steffanx> What kind of 'redrawing' bugs? I don't see them
[05:43:33] <jadew> resize the window
[05:43:51] <jadew> we're talking about wine, right?
[05:43:54] <Steffanx> Ah, yes
[05:43:57] <Steffanx> Yes we are
[05:44:38] <jadew> I'm gonna take care of those at some point, probably if I manage to access the serial port from within wine
[06:18:29] <OndraSterver> why wine?
[06:18:34] <OndraSterver> why not mono?
[06:18:39] <OndraSterver> I thought you did it in .net
[06:20:19] <OndraSterver> for Saabers: http://clip2net.com/s/2pmU8
[06:30:52] <Steffanx> "Cannot open assembly 'OLSFront.exe': File does not contain a valid CIL image." Too bad, OndraSterver
[06:31:42] <OndraSterver> oh
[06:31:52] * OndraSterver is happy Windows user
[06:32:30] <Steffanx> Congratz
[06:44:58] <jadew> OndraSterver, I didn't want to add any dependency, it's generally a good idea if you think other people are going to use your program
[06:46:50] <OndraSterver> jadew, I thought that Mono runs csc compiled code just fine?
[06:46:55] <OndraSterver> compile on windows, run on anything
[06:47:09] <OndraSterver> dependency only for linux33rs and osx33rs
[06:47:13] <jadew> csc?
[06:47:20] <OndraSterver> csharp compiler
[06:47:24] <jadew> ah
[06:47:35] <jadew> well, it probably does
[06:47:43] <jadew> but it's written in c++
[06:48:04] <OndraSterver> oh
[06:48:16] <jadew> I never managed to get a c# program to look decent tbh
[06:48:24] <OndraSterver> I never managed C++.
[06:48:39] <jadew> heh
[06:49:22] <jadew> the thing about c# is that I wrote a program once, someone liked it and when I tried to share it, it turned out I was using some functions from the full version of .net
[06:49:31] <jadew> that meant a 400 mb download on its part
[06:49:47] <OndraSterver> bs
[06:49:56] <jadew> seriously
[06:50:03] <OndraSterver> since windows vista always the latest .net was included
[06:50:14] <OndraSterver> now on w7 you only download .net 4.5 which is like... 30MB?
[06:50:20] <jadew> not everybody is using vista or 7
[06:50:28] <OndraSterver> XP...
[06:50:43] <jadew> and again, that 30 mb is probably the client profile
[06:51:01] <jadew> the server profile (or whatever is called) it's more like 300-400mb
[06:51:40] <OndraSterver> I've never needed anything more than the client profile
[06:51:46] <jadew> I guess it won't make any difference soon
[06:51:52] <jadew> since it will come preinstalled, but still
[06:51:59] <jadew> it will probably be like MFC back in the day
[06:52:00] <OndraSterver> you need only the server core part if you have server core 2008 (r2) I think
[06:52:10] <jadew> "blahblah70.dll" missing
[06:53:58] <jadew> anyway, I rewrote that app in c++
[06:54:17] <jadew> the interresting part is that it was slower than the c# version at first
[07:00:05] <OndraSterver> "Hello, I am going away for 5 days from which 2 are weekend, do you think you could fix any issues that come up? C'mon - it is only 3 working days, nothing should happen really." "Mkay"
[07:00:18] <OndraSterver> next morning "Hello, I can not use printer and my blabla application can not launch either!"
[07:00:20] <OndraSterver> :(
[07:00:31] <OndraSterver> joys of Dell laptops
[07:00:41] <OndraSterver> I am thinking bad harddrive, this is the second time the user profile has been damaged
[07:00:51] <OndraSterver> will test it tonight
[07:02:55] <jadew> the quality of the hdd's has gone down a lot in the past years
[07:03:13] <jadew> "they don't make them like they used to"
[07:05:11] <OndraSterver> hehe
[07:05:11] <OndraSterver> yep
[07:05:26] <OndraSterver> when my 2TB drive started dying I rushed into PC shop to get a new one so I could back the data that were still readable
[07:05:38] <OndraSterver> the diagnostic tool even said "can not finish diagnostics, the drive is too damaged" lol
[07:05:47] <jadew> heh
[07:06:00] <jadew> I've lost lots of hdds lately
[07:06:22] <jadew> now I keep them ventilated, I think that's very important
[07:06:24] <OndraSterver> I need to buy me some pantyhose
[07:06:28] <OndraSterver> so I can put them on the fans.
[07:06:33] <jadew> me too
[07:06:34] <jadew> lol
[07:06:35] <OndraSterver> so the heatsinks and HDDs and everythign isn't filled with dust
[07:06:44] <OndraSterver> everything*
[07:06:46] <jadew> what case do you have?
[07:07:04] <OndraSterver> some HP branded stuff
[07:07:07] <OndraSterver> 17kg empty..
[07:07:16] <jadew> yeah, mine is pretty heavy as well
[07:07:16] <OndraSterver> but I can't close it because there is opening handle
[07:07:21] <OndraSterver> which collides with CPU heatsink
[07:07:22] <jadew> some cases come with filters already
[07:07:34] <OndraSterver> and I can not rotate the CPU heatsink because 1155 isn't square :(
[07:07:35] <jadew> detachable, so you can easily remove them and wash the dust
[07:09:03] <jadew> get a nibbler and cut a hole in the case
[07:09:25] <OndraSterver> yeah that is not happening
[07:09:33] <OndraSterver> I can't even unmount the opening handle itself
[07:09:36] <OndraSterver> it is welded
[07:09:45] <OndraSterver> it has got fairly heavy (1mm) steel or w/e material it is
[07:09:49] <OndraSterver> and above that is like 5mm of plastic
[07:10:49] <jadew> is it full tower?
[07:11:26] <jadew> at that weight, it sounds like full tower, so it's kinda weird that it can't fit the cooler
[07:11:33] <OndraSterver> no, it is regular
[07:11:38] <OndraSterver> fits board and PSU above it
[07:11:53] <OndraSterver> I paid like $100 for it + 700W delta electronics PSU in it
[07:11:56] <OndraSterver> sold the PSU for $50
[07:12:10] <jadew> heh
[07:12:24] <OndraSterver> DE makes good PSUs
[07:12:26] <OndraSterver> OEM only though
[07:12:30] <OndraSterver> they make PSUs even for Apple
[07:13:36] <jadew> here's a good case if you plan to change it: http://www.coolermaster-usa.com/product.php?product_id=2810
[07:13:45] <OndraSterver> also, http://clip2net.com/s/2pnFT and http://clip2net.com/s/2pnGd
[07:13:51] <OndraSterver> I don't plan to change anything
[07:14:01] <OndraSterver> and I would upgrade to Lian-Li only
[07:14:38] <jadew> http://www.million-dollar-pc.com/gallery-2008/lian-li/a01/lian-li-a01-04.jpg
[07:14:40] <jadew> this? lol
[07:14:51] <jadew> nice board btw
[07:14:58] <OndraSterver> lol
[07:15:03] <OndraSterver> something like that, yes
[07:15:05] <OndraSterver> thanks
[07:15:16] <OndraSterver> I don't want/need watercooling though
[07:15:29] <jadew> looks like a good radiator for the winter
[07:15:33] <OndraSterver> hehe
[07:15:36] <OndraSterver> for anything actually
[07:15:39] <OndraSterver> you can heat your food there :D
[07:15:43] <OndraSterver> even during the summer
[07:15:47] <OndraSterver> just start some 3D game.
[07:15:59] <jadew> some as in several
[07:16:36] <jadew> that case must be really silent tho
[07:16:55] <OndraSterver> notice the power distribution on the board (bottom, second picture) - I make O from it so the current can flow from either way :P
[07:17:03] <OndraSterver> this is silent until I start gaming
[07:17:21] <OndraSterver> also notice the power on the top left - bloody arduino has never heard about screws
[07:17:25] <OndraSterver> so they have got it all pushed too close
[07:17:29] <OndraSterver> so I made some parallel paths :D
[07:18:12] <jadew> heh
[07:18:59] <jadew> it looks great, did you make only 1?
[07:20:17] <jadew> I'm asking because I see you made it in cz which is close to me (I'm looking for a EU based pcb maker)
[07:20:55] <OndraSterver> no, they will be made @ itead (first prototype run for 10 pieces, green soldermask), then I will send them to capnkernel since he can do them cheaper in other colours
[07:21:03] <OndraSterver> but they will be assembled in CZE
[07:21:04] <OndraSterver> by me :D
[07:21:32] <jadew> I see :)
[07:22:17] <OndraSterver> PCB fabs at CZE are ridiculously expensive
[07:22:21] <OndraSterver> compared to china
[07:22:29] <jadew> yeah, same here
[07:22:34] <OndraSterver> I would pay for 1 board the same as I can get 10 boards from china
[07:23:05] <jacekowski> yeah, but you can get it next day
[07:23:22] <OndraSterver> you would pay A LOT for a next day
[07:23:27] <OndraSterver> for anything < week you pay extra
[07:24:24] <dza> hello everyone! I use avrdude and a AVR MK II isp programmer - "avrdude: stk500v2_recv_mk2: error in USB receive" I get on every flash and wait several minutes for it to push this error like some checking of the MCU or other verification is in progress, I tried using "-F" to disable verification, but the error and the large delay is still there .. :/
[07:24:32] <jadew> I vouch for that, I got scammed in cz
[07:25:24] <OndraSterver> heh
[07:25:25] <OndraSterver> how?
[07:26:18] <OndraSterver> dza, what OS?
[07:26:35] <jadew> was looking to exchange some money and some dude warned us that we're looking at the wrong exchange rates (he was right, the rates we were looking at were for over 20k EUR or something silly like that), so he offered to exchange the money himself
[07:27:06] <jadew> he did, we got the money just to realize they were from another country with weird characters
[07:27:41] <OndraSterver> ugh
[07:28:00] <jacekowski> OndraSterver: pcb place i use can do prototype quantities next day
[07:28:08] <OndraSterver> that 20k EUR+ issue DOES exist, some newspaper(s) already talked about it
[07:28:12] <OndraSterver> jacekowski, nice
[07:28:31] <jacekowski> and one off for free
[07:28:36] <jacekowski> for just bare pcb
[07:28:40] <jacekowski> with no soldermask
[07:28:40] <OndraSterver> wow
[07:28:42] <OndraSterver> where?
[07:28:44] <jacekowski> spirit
[07:28:54] <jacekowski> http://www.spiritcircuits.co.uk/gonaked.aspx
[07:28:55] <OndraSterver> which country
[07:28:57] <OndraSterver> oh uk
[07:29:34] <jacekowski> they make some of their stuff in china
[07:29:42] <jacekowski> but all the next day stuff is made locally
[07:29:48] <OndraSterver> LOL the woman
[07:29:56] <OndraSterver> I dare you to meet her with a magnet in your pocket
[07:33:13] <OndraSterver> jacekowski, do they ship int'l? :P
[07:33:21] <jacekowski> dunno
[07:34:21] <dza> OndraSterver: linux :)
[07:35:24] <OndraSterver> I could use (free) prototypes :D
[07:35:35] <OndraSterver> do you have to promise them to use them for final orders then though?
[07:39:47] <jacekowski> no
[07:40:02] <OndraSterver> eh nice
[07:40:02] <jacekowski> but they will probably tell you to fuck off if you don't order from them
[07:40:12] <OndraSterver> :D
[07:40:55] <jacekowski> they've got PCB snap thing
[07:41:15] <jacekowski> http://www.spiritcircuits.co.uk/services/pcb-snap
[07:41:24] <jacekowski> http://www.pcbsnap.com/
[07:42:03] <OndraSterver> yeah I saw that
[07:42:17] <jacekowski> 10 off 50x50mm 4 layer pcbs is £143 with shipping to anywhere in europe
[07:42:27] <jacekowski> with silver finish
[07:42:41] <jacekowski> and that has soldermask and silkscreen and everything on it
[07:43:29] <OndraSterver> http://imall.iteadstudio.com/open-pcb/pcb-prototyping/im120418007.html
[07:43:30] <OndraSterver> yeah.
[07:43:35] <OndraSterver> if you need it quickly though..
[07:43:41] <OndraSterver> itead with DHL is still cheaper
[07:43:47] <OndraSterver> 5 - 7 days work, 3 days delivery
[07:44:02] <OndraSterver> no ENIG on 4layeres though
[07:50:49] <karlp> oshpark does 4 layer too, pretty cheap
[07:51:28] <dza> Isn't 1m41s awfully long time for a small program on 3504 bytes to be written on M168 ?
[07:51:48] <karlp> what programmer and dongle?
[07:51:52] <dza> I even set the bitclock now; avrdude -pm168 -cavrisp2 -Pusb -s -u -D -V -v -q -Uflash:w:avr2.hex -B 1.0
[07:52:11] <karlp> -B is a decimal?
[07:52:18] <karlp> I've only used -B1,
[07:52:30] <karlp> it might be ignoring the .?
[07:53:04] <dza> Trying now with -B1 .. Still looks slow :/ I think I've tried all switches now. How can it be so slow ?
[07:53:29] <dza> Sooo slow untill it says: avrdude: AVR device initialized and ready to accept instructions
[07:54:52] <jadew> dza, could be a sync issue
[07:55:17] <dza> jadew: Can I verify it somehow? Or can I disable it (am I able to run it without it?)
[07:56:07] <jadew> the programmer needs to sync with the device once it pulls reset low
[07:56:14] <jadew> is the device inside a circuit?
[07:56:50] <dza> It's just an Arduino hooked up to the programmer ..
[07:57:34] <dza> I can take a picture with my mobile and show the exact programmer/Freeduino V.1.16
[07:57:49] <jadew> don't know about arduinos, but maybe that's the issue
[07:58:08] <jadew> maybe something is messing up the sck, mosi or miso lines
[07:58:33] <dza> It's weird because it takes 3 secs for everyone else in Windows :S
[07:58:46] <jadew> same setup?
[07:58:54] <dza> yes
[07:58:59] <jadew> interresting
[07:59:06] <jadew> are you sure you made the connections properly?
[07:59:20] <dza> Should I send a picture ?
[07:59:30] <jadew> no
[07:59:30] <karlp> bad usb drivers?
[08:00:09] <jadew> could be that too.. but if it works for everyone else probably not
[08:00:13] <dza> karlp: Linux original drivers I think. I will have to do everything in verbose. Only real error I noticed is:
[08:00:29] <jadew> dza, are you using a ISP socket, or are you connecting the wires by hand?
[08:00:53] <dza> "avrdude: stk500v2_recv_mk2: error in USB receive"
[08:01:11] <karlp> yeah, that's kinda important
[08:01:14] <dza> ISP socket jadew
[08:01:36] <dza> Should I try a different dongle right now ?
[08:01:43] <karlp> try unplugging other usb devices first.
[08:01:55] <jadew> could also try a different wire
[08:02:10] <jadew> the fact that it's syncing means something's working
[08:02:32] <jadew> the fact that it's syncing slow, might mean the target device is screwing up the signal
[08:02:48] <jadew> or your wires are not connected properly, or not at all and it's just working wirelessly
[08:03:43] <dza> Trying exact same programmer now .. My friend also tried programming it in Windows it went fine.
[08:04:08] <jadew> wait, your setup worked fine in windows?
[08:04:13] <dza> yes
[08:04:18] <jadew> now you know
[08:05:00] <dza> So I can blame the mkII ISP?
[08:05:11] <jadew> most likely the driver
[08:05:38] <jadew> you said the mkII is working fine in windows
[08:05:47] <dza> yeah-
[08:06:00] <jadew> well, we know avrdude works as well, cuz we all use it
[08:06:06] <jadew> so it must be the driver
[08:06:28] <dza> avrisp2 is that the driver? or is it the usb drivers in themselves ?
[08:07:03] <dza> Which mailing list is appropriate for this?
[08:07:09] <dza> (I'm new in all this)
[08:07:09] <jadew> well, I think the avrisp2 works over a serial connection
[08:07:36] <jadew> but I suppose usb on your machine points to the proper serial device
[08:08:06] <jadew> avrisp2 is the protocol the programmer is using
[08:08:15] <jadew> basically the protocol avrdude is using to speak to the programmer
[08:08:20] <dza> the programmer is only USB.
[08:08:40] <jadew> yes, but I'm close to 100% sure it's a CDC device that creates a virtual serial port
[08:08:51] <jadew> and avrdude connects to it in order to talk to the programmer
[08:09:21] <jadew> not sure tho, I'm only using getto programmers
[08:09:50] <jadew> *ghetto
[08:10:18] <dza> I'm not sure. I thought I would see it under /dev/ttyUSB* but it's not listed there although avrdude needs -P usb parameter for it to function.
[08:10:42] <jadew> do you see any ttyACM in there?
[08:10:50] <dza> yes
[08:10:54] <dza> And I think it's new
[08:11:06] <jadew> disconnect the programmer, see if it goes away
[08:11:25] <dza> Still there.
[08:12:13] <jadew> I guess it's not serial then
[08:12:27] <LoRez> http://plaintextoffenders.com/post/33760793464
[08:12:47] <Steffanx> :D
[08:13:43] <jadew> nice, they're logging their own internal ip
[08:14:02] <OndraSterver> :D
[08:14:36] <Steffanx> I go for the less likely: the guy is in the same network
[08:14:48] <dza> jadew: I will catch the bus! thanks for answering and helping me :) I will come back here! thanks for the nice introduction :)
[08:14:58] <jadew> dza, np
[08:15:27] <jadew> Steffanx, way less likely :)
[08:16:02] <jadew> that's what happens when you split something between two servers and forget to make the IP address a parameter of the API call
[08:17:12] <jadew> now we have proof that they're trying to make their site better for us
[08:18:09] <Xotix> theos thansk again im gone bye
[08:18:24] <theos> ..
[11:41:04] <dirty_d> does anyone know if its possible to PDI program with avrdude over a raspberry pi's GPIO?
[11:44:42] <r00t|home> "PDI" -> "Performance Diesel Inc"?
[11:45:09] <Richard_Cavell> no
[11:45:13] <Richard_Cavell> program and debug interface
[11:46:22] <r00t|home> somehow mistook this for #rpi
[11:46:48] <r00t|home> anyway, probably possible, but not until somebody implements it
[11:47:11] <dirty_d> is there any reason it should be any harder than ISP?
[11:47:25] <Richard_Cavell> nope
[11:47:28] <dirty_d> you can make the clock signal as slow as you need right?
[11:47:41] <r00t|home> number of I/Os and timing
[11:48:02] <dirty_d> just 2
[11:48:12] <dirty_d> not sure what you mean
[11:48:26] <karlp> dirty_d: does avrdude support gpio bit banging pdi?
[11:48:40] <karlp> I know it does for icsp, you just have to define what pins are connected where,
[11:48:41] <r00t|home> i mean that's the factors it depends on
[11:48:57] <karlp> when avrdude has that support the rpi will work for it automatically.
[11:49:28] <dirty_d> karlp, you mean the linux standard GPIO interface through /sys?
[11:54:40] <karlp> yeah,
[11:54:55] <karlp> avrdude can do isp through that, can it do pdi there?
[11:55:50] <dirty_d> yea im talking to the guy who added that support
[11:56:02] <dirty_d> well im not saying "yes" yet
[11:56:25] <dirty_d> but i dont see why it couldnt do PDI too as log as you configure which pins to use like you said
[11:57:14] <karlp> exactly.
[12:02:03] <dirty_d> karlp, heres the patch that added GPIO ISP support http://project-downloads.drogon.net/gertboard/avrdude-5.10-bb-gpio.patch
[12:02:21] <dirty_d> i dont see anything ISP specific in there, so do you think this will "just work" with pdi?
[12:02:30] <Essobi> ehh..
[12:02:36] <Essobi> I wouldn't bet on it.
[12:03:00] <Essobi> If you were to try.. I'd use a signal analyzer and verify it's working before I plug a chip into it
[12:03:38] <iSaleK> Hi guys, I have a problem with my code and or hardware configuration. I'm using 3 npn transistors to drive seven segment displays. Also I have one LED on PD2 for test signal
[12:04:32] <iSaleK> I've wrote a code that blinks LED 3 times and then turns it off. However, when MCU turns LED off, it is still shining (has around 1.63V between anode and cathode)
[12:05:00] <iSaleK> Could it be that I have faulty MCU or some of my transistors is somehow interfering with led?
[12:05:14] <karlp> dirty_d: looks like it probably won't, seems the "programmer" model bits seem to all assume isp on the backend,
[12:05:26] <dirty_d> ahh
[12:05:35] <karlp> which is why there's separate programmer options for jtag2pdi and jtag2dw and jtag2isp
[12:06:01] <karlp> but I haven't looked at the avrdude guts enough
[12:07:30] <Essobi> RikusW: what's crackin.
[12:07:51] <RikusW> just got the SIM900-EVB working today
[12:07:59] <dirty_d> di id probably have to make a gpio_pdi type?
[12:08:05] <dirty_d> so*
[12:08:19] <RikusW> hyperterm pulled a trick on me, I selected 8N1 but it used 7O2 :S
[12:08:27] <Essobi> ffffff
[12:08:31] <Essobi> Heh.
[12:08:52] <RikusW> and another thing about the SIM900 is the first AT sent must be capitals (probably for autobauding)
[12:09:16] <RikusW> so I guess its better to send all AT commands in capital
[12:09:35] <RikusW> that modem needs some shouting if you want to be heard :-P
[12:10:01] <RikusW> Essobi: I got it from www.otto.co.za
[12:10:09] <RikusW> and a PA6H GPS too
[12:10:15] <Essobi> Haha.
[12:10:16] <karlp> dirty_d: that's what I'd expect, yeah,
[12:10:16] <Essobi> Nice.
[12:10:45] <Essobi> RikusW: What'cha building?
[12:10:56] <RikusW> livestock tracker
[12:11:12] <RikusW> will have to firgure out power management stuff too
[12:11:27] <Essobi> RikusW: Oh I remember what I wanted to ask you... is the SPI frame size on AVRs (328p specifically) fixed? Like it always responds at 8-bits?
[12:11:38] <RikusW> afaik yes
[12:11:44] <Essobi> RikusW: nice.. That'll be neat..
[12:11:53] <RikusW> if you want custom frame size you'll have to bitbang it
[12:11:56] <Essobi> RikusW: Going to post a build anywhere for it?
[12:12:01] <Essobi> RikusW: yea, f'that.
[12:12:18] <Essobi> It's already slow enough since I'm only at 8mhz.
[12:12:23] <RikusW> I'm doing it for a startup company, so probably not :-/
[12:12:30] <Essobi> Ah.. that sucks.
[12:12:36] <Essobi> I like seeing your builds.
[12:12:53] <RikusW> but knowing the parts used is already an advantage
[12:12:57] <Essobi> I think I can go up to 12mhz on 3.3V power thou I'd need a crystal.
[12:13:07] <RikusW> I'll probably post photos if you'd like
[12:13:14] <Essobi> Fair enough. :D
[12:13:27] <RikusW> I clocked my m32u2 at 16MHz on 3v3
[12:13:42] <Essobi> Really?
[12:13:43] <RikusW> to get PDI working with abc's AVRISP
[12:13:48] <RikusW> it worked fine :)
[12:14:05] <RikusW> no guarantees thoug ;)
[12:14:11] <Essobi> I was reading that the avr 328p's had problems running at higher mhz on 3.3V.
[12:14:21] <Essobi> :D
[12:14:40] <dza> jadew: who/where do you think I should invest this AVR mk II isp problem ? USB debug logs ? I've seen more people are writing about the specific usb_recv error on the programmer, but not as many as I could have hoped to come to a conclusion ...
[12:14:49] <dza> jadew: invest == investigate
[12:14:52] <RikusW> Essobi: I'll probably build it modulary with the GPRS and antenna on one pcb
[12:14:56] <RikusW> and the GPS on another
[12:15:11] <Essobi> RikusW: Good idea.
[12:15:27] <Essobi> Makes it easier to troubleshoot hardware into logical blocks.
[12:15:32] <RikusW> I could maybe sell the two seperate pcb's without any fw on the gprs/avr board
[12:15:53] <NexusSeven> hello... how do I set the clock freq in atmel studio 6 ?
[12:16:22] <Xotix> hi trying to read lfuse of an atmega8515. first time ever. i get the error, wrong fiel format. what format should i use for the output file? my command is: avrdude -c usbtiny -patemga8515 -U lfuse:r:lfuse.txt
[12:16:24] <RikusW> dza: are you using avrdude with the mkii ?
[12:16:32] <RikusW> and is it the LUFA one ?
[12:16:53] <RikusW> Essobi: that GPS is like 16x16x4mm
[12:17:01] <RikusW> including antenna
[12:17:01] <Xotix> can i maybe force avrdude to directly display the output in the console? win
[12:17:51] <RikusW> Xotix: add -t for terminal mode
[12:18:05] <RikusW> then type help
[12:18:42] <Essobi> RikusW: sick
[12:18:56] <Essobi> RikusW: 328p is specced as: – 0 - 4 MHz@1.8 - 5.5V, 0 - 10 MHz@2.7 - 5.5.V, 0 - 20 MHz @ 4.5 - 5.5V
[12:19:20] <Essobi> So maybe I can his 15mhz @ 3.3?
[12:19:51] <Essobi> And I think 8mhz is all you can do with the internal clock.
[12:20:00] <Essobi> I'll have to google my yahoo again on that.
[12:20:49] <Xotix> Rikus doesn't rly help me since i don't know these parameters. isn't the a man page or something. i'm on win2k....
[12:21:36] <Xotix> Rikus, i prefer the not console mode since my guides and stuff work in this one. so what fiel format should i use for the output? don't really get why a .hex or .txt should be wrong.
[12:22:00] <Essobi> You probably need the .bin..
[12:23:34] <RikusW> guess the only way is to experiment a bit
[12:23:47] <RikusW> go higher until it breaks ;)
[12:23:56] <Essobi> :D
[12:24:50] <RikusW> Xotix: I once use hex, but forgot the exact format name...
[12:25:26] <dirty_d> does the AVRISP-mkII have another name?
[12:25:30] <dirty_d> i dont see it in the code anymore
[12:25:32] <Xotix> RikusW hex txt bin doesn't work. anyway thanks
[12:25:34] <dirty_d> anywhere*
[12:25:54] <RikusW> Xotix: m' immediate; actual byte values specified on the command line, separated by commas or spaces. This is good for programming fuse bytes without having to create a single-byte file or enter terminal mode.
[12:26:00] <RikusW> google -> man avrdude
[12:26:42] <Xotix> rikus, of course i'll check the manpage. i want to read it not set it. i wouldn't create a fiel for setting it. Thanks :)
[12:28:43] <RikusW> dirty_d: avrisp2 ?
[12:28:59] <dirty_d> its stk500v2
[12:29:04] <dirty_d> thats the "type"
[12:29:28] <RikusW> grep it and you should fine the struct
[12:31:41] <dza> RikusW: yeah :) you also had trouble ?
[12:33:56] <Xotix> can someone tell me why you always have this 0x? e.g. 0xd9?
[12:34:11] <RikusW> it part of C
[12:34:24] <RikusW> in pascal ist $FF and asm FFh
[12:34:40] <RikusW> some assemblers also accept 0xFF
[12:34:55] <RikusW> 077 is octal
[12:35:19] <RikusW> 0b10100011 is bin
[12:36:09] <Xotix> so does 0x indicate it's hex or what? i actualyl can calculate bin/hex etc also have seen 0x a lot but i never had to care. just wondering what's the reason for having it.
[12:37:33] <r00t|home> i still like MOS notation... %1010101010 = &252 = #170 = $AA
[12:38:02] <r00t|home> Xotix: traditionally, default is decimal, leading 0 is octal... so the x is added to the leading 0 to indicate hex
[12:38:42] <Xotix> r00t|home ah, thanks.
[12:45:03] <day> how do i create a makefile if i use linux?
[12:45:13] <r00t|home> with a text editor?
[12:45:26] <r00t|home> the more interesting question is what you put into it
[12:45:35] <day> that would work if would know what im doing
[12:45:37] <day> yea
[12:45:48] <r00t|home> that depends on what you want to achieve
[12:46:49] <day> r00t|home: compiling sourcecode for an atmega8
[12:46:51] <r00t|home> personally i don't use makefiles for uC stuff... it's not worth it really, as the programs are trivia and you can just gcc -o lala.elf *.c
[12:47:05] <r00t|home> and i have a script to do that for me, and flash the result
[12:47:13] <r00t|home> *trivial
[12:47:59] <day> r00t|home: but how does the compiler know for which uC hes compiling it?
[12:48:25] <r00t|home> avr-gcc -o "/tmp/$N.elf" -Wl,-Map="/tmp/$N.map",--cref -mmcu="$MCU" -Werror -DF_CPU=$CLK -g -Os -funsigned-char -f unsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns="/tmp/$N.lst" -I. "$@"
[12:48:43] <r00t|home> (add above:) MCU=atmega8
[12:49:04] <r00t|home> avr-objcopy -O ihex -R .eeprom "/tmp/$N.elf" "/tmp/$N.hex"
[12:49:12] <day> r00t|home: hm ok i thought the compiler needs more properties
[12:49:14] <r00t|home> avrdude -c usbasp -p "m8" -U flash:w:"/tmp/$N.hex"
[12:49:21] <r00t|home> all you need, no magic involved
[12:49:54] <r00t|home> that is quite a lot of options... probably not all needed, just copied that from somewher and works for me
[12:50:29] <Xotix> thanks and bye. seems to work :)
[12:51:50] <day> r00t|home: thanks a lot!
[12:52:15] <r00t|home> want the whole script?
[12:55:06] <karlp> r00t|home: maybe he wants the makefile you ripped it from? ;)
[12:55:21] <r00t|home> hell if i knew which those were
[13:27:06] <creep> h
[13:29:47] <RikusW> creep: nice ip address :-P
[13:29:54] <creep> thanks
[13:30:00] <creep> whats up?
[13:30:48] <RikusW> nothing much
[13:30:56] <RikusW> how did you manage to gat the ip6 ?
[13:30:59] <RikusW> *get
[13:31:18] <specing> RikusW: easy, you get a /64 alloc
[13:32:11] <RikusW> /48 would do
[13:32:34] <specing> No, that would be /80, lol
[13:33:00] <specing> /48 are large businesses
[13:33:27] <specing> and datacenters
[13:33:29] <specing> and ISPs
[13:35:56] <r00t|home> with ipv6, everybody gets a few internets of their own...
[13:37:17] <dirty_d> a few?
[13:37:32] <dirty_d> isnt it more like 4 billion internets? lol
[13:37:57] <RikusW> even your pets can have one :-P
[13:38:09] <dirty_d> and your pets pets pets
[13:38:10] <RikusW> and all the ants living nearby too :-D
[13:38:46] <creep> ofc, totally cool to assign ips to the fridge, cooker, window opener, lighting
[13:39:53] <r00t|home> and each of the hairs on your head
[13:41:22] <dirty_d> why is it taking so long to switch to ipv6?
[13:41:28] <tld> my IPv6 addresses include …84c1::deaf:babe, …84c1::dead:babe and …84c1::dead:beef. This stuff is quite common now.
[13:41:43] <creep> dirty_d<< because it needs new routers and setup
[13:42:04] <tld> dirty_d: because everybody worries about something… some are scared of doing work, some are scared of downtime, some are scared of expences, some are scared of everything new…
[13:42:42] <dirty_d> im a little scared
[13:44:04] <r00t|home> it's the typical hen and egg thing... why get v6 when so few others have it... you get nothing out of it initially
[13:44:28] <r00t|home> somebody should start an ipv6-only free porn site
[13:45:47] <dirty_d> lol
[13:46:06] <RikusW> free movies and series sites too :)
[13:46:23] <tld> http://www.prujem.cz/ <--
[13:46:29] <OndraSterver> did you just
[13:46:32] <OndraSterver> link czech
[13:46:34] <OndraSterver> "website"?
[13:46:38] <OndraSterver> I don't even have to click :)
[13:46:52] <r00t|home> he linked a porn site on #avr ?!
[13:47:01] <OndraSterver> haha
[13:47:17] <tld> r00t|home asked for IPv6-only porn site.
[13:47:19] <r00t|home> $ host -t a prujem.cz
[13:47:19] <r00t|home> prujem.cz has no A record
[13:47:29] <tld> prujem.cz. 3600 IN AAAA 2a01:490:11:7523:d1d1:f331:abad:1dea
[13:47:32] <OndraSterver> heeh
[13:47:34] <tld> it's IPv6 only
[13:47:39] <r00t|home> $ host -t aaaa prujem.cz
[13:47:39] <r00t|home> prujem.cz has IPv6 address 2a01:490:11:7523:d1d1:f331:abad:1dea
[13:47:48] <OndraSterver> just fyi, "prujem" means "diarrhea"
[13:47:52] <tld> auch!
[13:47:55] <OndraSterver> I don't have IPv6 so I can't check the content
[13:47:55] <r00t|home> a bad idea indeed
[13:47:58] <tld> I have't actually seen the site, to be honest.
[13:48:01] <r00t|home> lol
[13:48:29] <tld> "Prujem, IPv6 only server full of porn and movies" <<-->> http://www.sixxs.net/wiki/IPv6_Enabled_Websites
[13:48:41] <tld> I just remembered hearing about it, and google gave me the rest.
[13:49:09] <r00t|home> ok, i'll be back with ipv6 connectivity in 5mins... ;)
[13:51:05] <dirty_d> lol
[14:58:55] <JyZyXEL> how do if n'th bit would be true or false with a certain decimal value?
[15:00:24] <dirty_d> float?
[15:08:29] <vectory_> i dont the question
[15:11:31] <Tom_itx> JyZyXEL, 'and' it in a compare
[15:12:06] <JyZyXEL> vectory_: yeah i may have forgotten some word
[15:13:40] <JyZyXEL> Tom_itx: apparently the answer is !!(decimal_value & 1), !!(decimal_value & 2), !!(decimal_value & 4)... and so on
[15:13:47] <Tom_itx> if(portx & bitmask){}
[15:14:49] <JyZyXEL> bitmask being the bit you wanna check for
[15:15:02] <Tom_itx> uh huh
[15:15:36] <Tom_itx> if ( !(PINB & (1<<UP_Button)) ) // UP switch pressed ? (active low)
[15:15:39] <Tom_itx> for example
[15:16:08] <JyZyXEL> why is it so hard to come up with cool bit tricks like that
[15:16:21] <Tom_itx> it's not
[15:16:28] <dirty_d> its easy when you fully understand what the operators do
[15:17:14] <Tom_itx> in the above case the switch is active when grounded
[15:17:18] <Tom_itx> the ! checks for that
[15:18:30] <Roklobsta> it turns it into one neat instruction too ont he avr
[15:19:15] <Roklobsta> you can also use the bit_is_set() or bit_is_clear() defines
[15:19:36] <Roklobsta> much easier to read than having to do the mental gymnatics
[15:19:40] <Tom_itx> #define SetBit(reg, bit) reg |= BIT(bit)
[15:19:40] <Tom_itx> #define SETBITS(reg, bits) reg |= (bits)
[15:19:40] <Tom_itx> #define ClearBit(reg, bit) reg &= ~(BIT(bit))
[15:19:40] <Tom_itx> #define CLRBITS(reg, bits) reg &= ~(bits)
[15:19:51] <Tom_itx> #define IsLow(BIT, PORT) (((PORT) & (1 << (BIT))) ? 0 : 1)
[15:19:51] <Tom_itx> #define IsHigh(BIT, PORT) (((PORT) & (1 << (BIT))) ? 1 : 0)
[15:20:09] <Amadiro> Roklobsta, I definitely prefer bit_is_set/bit_is_clear etc to _BV(), which just looks weird...
[15:20:19] <Amadiro> (and I forget every time how _BV works)
[15:20:25] <Roklobsta> http://www.nongnu.org/avr-libc/user-manual/group__avr__sfr.html
[15:20:40] <Roklobsta> the loop_until...() is good too
[15:20:53] <Tom_itx> unless () never happens
[15:21:02] <Roklobsta> yeah well make a new one with a timer condition
[15:30:29] <zuloyd> hi
[15:32:33] <zuloyd> I have a problem with AVR studio simulating an atmega 644. at some point in the code, it just stops with a yellow arrow next to it
[15:33:36] <zuloyd> here is my code: http://pastebin.com/9a0AENbZ
[15:33:49] <zuloyd> the yellow arrow appears at line 38
[15:37:23] <zuloyd> here is the build log. http://pastebin.com/z7ACcAZV
[15:37:49] <zuloyd> and here is the "Message" log: http://pastebin.com/MQ7yx9Np
[15:43:32] <Roklobsta> wait for SP2
[15:43:41] <Roklobsta> or write a workaround
[15:46:48] <zuloyd> what is even the problem here?
[15:54:17] <Roklobsta> oh yeah. avr-gcc expects all function names and comments to be in english
[15:56:14] <Roklobsta> where does it get stuck in the assembly? can you drill down to the disassembly?
[15:56:48] <Roklobsta> also, try it with -O0 optimisation and also get rid of all the warnings and fix the code
[15:58:05] <Roklobsta> unfortunately project compile with -O1 by default and can make things a bit tricky to debug
[15:58:20] <Roklobsta> i also think something like AVRDRagon is worth investing in
[15:58:26] <Roklobsta> instead of simulating
[16:03:03] <Roklobsta> i have an avrdragon and the chinese made JTAG mkii-CN and both are very good
[16:04:43] <zuloyd> okay i'll try those thigns
[16:05:17] <zuloyd> i'm using avr studio 4 btw. because that's the version they use at our university and I want it to be fully compatible
[16:05:55] <Roklobsta> ok that'sa fine. just make sure it's the latest
[16:06:03] <Roklobsta> i was joking about the language
[16:06:07] <Roklobsta> german is fine
[16:06:18] <zuloyd> i know :D
[16:06:56] <zuloyd> okay now it stops in line 34, the opening bracket of the main method
[16:07:23] <Roklobsta> hmm, not happy
[16:08:29] <zuloyd> this is the first time I am using avr studio, so I'm not quite familiar with it. How can I see where exactly it gets stuck in the assembly?
[16:23:57] <Roklobsta> when debugging in the menus there should be a show disassembly
[16:24:11] <creep> so you don't only do avr ;)
[16:24:34] <creep> i saw guys here knowing about programming, networking, and other stuff too
[16:29:19] <zuloyd> weird... if I just keep pressing F10, it goes over the program as it should, piece by piece
[16:29:33] <zuloyd> and all works out fine in the end... the registers are set accordingly
[20:20:36] <JyZyXEL> how do i read the status of PB2 if its configured as output?
[20:22:12] <JyZyXEL> state += (PORTB.2 * 128); gave me error: expected ‘)’ before numeric constant
[21:26:52] <Tom_itx> JyZyXEL if it's output you should know the state
[21:27:01] <Tom_itx> however i believe you can read PINB
[21:27:45] <Tom_itx> PORTB.2 is a defined constant i believe
[21:27:51] <Tom_itx> that's the error
[21:27:59] <JyZyXEL> i think its: PORTB & (1 << PB2)
[21:28:11] <Tom_itx> why were you trying to multiply?
[21:28:52] <JyZyXEL> i multiply 8 of them with different numbers to get a decimal representation of 8 bits
[21:29:33] <JyZyXEL> http://pastebin.com/qpnZ4pai like that
[21:31:30] <Tom_itx> i'm not entirely sure about that
[21:31:44] <JyZyXEL> well the compiler lets me do it but i have no idea if its gonna work
[21:32:24] <Tom_itx> it just doesn't look right
[21:33:25] <Tom_itx> the (PORTD & (1<<PD2)) will either be 0 or 1
[21:34:16] <Tom_itx> i'm not sure of the order of precidence either, you may wanna add () around the compare
[21:34:42] <Tom_itx> it might be redundant but won't hurt anything
[21:34:44] <JyZyXEL> i guess to be safe yeah
[21:35:27] <Tom_itx> so state could be 129 if PD2 and PB1 were set
[21:36:13] <JyZyXEL> yeah, first and last bit are high then
[21:36:33] <Tom_itx> there's likely an easier way..
[21:36:45] <Tom_itx> why is the port split up?
[21:37:14] <JyZyXEL> thats how the 8 bit parallel bus happens to be wired
[21:38:10] <Tom_itx> state could be char
[21:38:20] <Tom_itx> unsigned int is 16 iirc
[21:38:29] <JyZyXEL> oh
[21:38:31] <Tom_itx> you only need 8 bits
[21:38:50] <Tom_itx> then you could shift the result right into state
[21:38:58] <Tom_itx> instead of all the mult
[21:39:02] <Tom_itx> i think
[21:39:30] <Tom_itx> lemme see..
[21:40:13] <JyZyXEL> ill change to char
[21:40:30] <JyZyXEL> actually a unsigned char
[21:42:19] <Tom_itx> there's a way you can bit shift the result without the mult
[21:42:28] <Tom_itx> i'd have to sit and think
[21:42:30] <Tom_itx> and i'm tired
[21:44:40] <JyZyXEL> have some red bull
[21:46:44] <Tom_itx> state = (PORTD & (1 << PD2)) << 1
[21:46:51] <Tom_itx> something about that doesn't look right though
[21:47:21] <Tom_itx> state = (PORTD & (1 << PD2)) << 0
[21:47:27] <Tom_itx> state = (PORTD & (1 << PD3)) << 1
[21:47:38] <Tom_itx> state = (PORTD & (1 << PD4)) << 2
[21:47:48] <Tom_itx> but i'm not sure that's right
[21:48:10] <JyZyXEL> well its pretty much the same but with better performance?
[21:48:20] <Tom_itx> the idea is that it will evaluate the parenthesis as an 0 or 1 then shift the result into the selected bit position
[21:48:32] <Tom_itx> mult is costly
[21:48:34] <Tom_itx> i think
[21:48:40] <JyZyXEL> yeah i've heard so
[21:48:59] <Tom_itx> my syntax may not be right
[21:49:26] <Tom_itx> you could try it though
[21:50:24] <JyZyXEL> its certainly worth a try
[21:50:40] <JyZyXEL> ill still have to figure out how to do set_state()
[21:50:45] <Tom_itx> state = (PORTD & (1 << PD2)) << 0 | (PORTD & (1 << PD3)) << 1 | (PORTD & (1 << PD4)) << 2 .....
[21:50:52] <JyZyXEL> actually set_state(unsigned char state)
[21:51:19] <Tom_itx> you can or them together on one line
[21:51:33] <JyZyXEL> oh yeah thats cool
[21:51:42] <Tom_itx> DDRA = (INPUT << PA0 | INPUT << PA1 |INPUT << PA2 |INPUT << PA3 |INPUT << PA4 |INPUT << PA5 |INPUT << PA6 |INPUT << PA7);
[21:51:45] <Tom_itx> for example
[21:52:02] <Tom_itx> input and output are defines
[21:54:48] <Tom_itx> you tend to get rusty when you don't code all the time and i haven't for quite a while
[21:56:56] <JyZyXEL> for set_state(state) i tried: PORTD.2 = !!(state & 0x01);
[21:57:24] <JyZyXEL> the compiler says: error: expected ‘;’ before numeric constant
[21:58:31] <Tom_itx> PORTD.2 is a bit constant
[21:59:08] <JyZyXEL> yeah i don't really know what it is, i just saw someone use it when googln for answers
[21:59:45] <JyZyXEL> i guess i could use the shift trick on PORTD
[23:40:21] <miguel_> whats better vmware workstation or virutlabox to run windows from linux??