#avr | Logs for 2011-12-09

Back
[02:25:01] <Tugge> I've been wondering that why AVR Studio 4.19 asks always when I start to debug via JTAG 'Please browse to the present...'?
[02:25:51] <Tugge> If I just press cancel I still can debug program without problems.
[02:30:45] <Tugge> Ahh.. Never mind.. I did find the solution.
[02:53:43] <vectory> Tugge: so tell it
[02:54:01] <vectory> for others who ponder the same
[04:13:41] <Tugge> I just needed to browse my project folder and click OK. That was the solution.
[09:24:07] <Neon> Hello, I flashed BitCloud with a custom application that uses HAL_UsbWrite to write a small message to an endpoint and now kubuntu (oo) seems to not be able to recognize the usb device any more. When I plug it in dmesg does not change and lsusb does not display the usb stick. I'm using a avr usb 1287 from the raven kit and built the application with the femtoos avr-gcc, flashed it using avrdude and the avr dragon (jtag). Is there any
[09:24:07] <Neon> thing I need to do in my application to send some signal to the host pc that it's a usb device or something?
[11:25:51] <Bushman> anyone played with bluetooth? i need simultanous two-way audio and a full serial port in one device that show up in windows as audio device and serial port avilable for programs
[11:26:54] <OndraSter> are we talking about 16MHz AVR?
[11:26:58] <OndraSter> or 20MHz AVR?
[11:27:08] <OndraSter> simultanous audio over AVR... what a wish!
[11:27:16] <OndraSter> or is it just raw music from eg SD card to BT?
[11:27:41] <OndraSter> decoding MP3 would be... hmm... well 66MHz 486 DX2 had problems with it
[11:28:32] <karlp> algorithms for doing so have come a long way,
[11:28:41] <OndraSter> still
[11:28:46] <karlp> but yeah, that's what mp3 deocoder chips are for :)
[11:29:02] <Bushman> no, you don't get it...
[11:29:05] <OndraSter> nope
[11:29:06] <OndraSter> explain more :)
[11:29:15] <Bushman> the bt chips have a PCM interface
[11:29:27] <karlp> orly?
[11:29:33] <Bushman> the data is send from and to PC, the AVR does not decode
[11:30:06] <OndraSter> and what does AVR do with it?
[11:30:29] <Bushman> configuration i guess
[11:30:53] <OndraSter> ?? when the music is sent from PC to AVR
[11:30:58] <OndraSter> where does it end up in?
[11:31:03] <karlp> doesn't matter!
[11:31:13] <Bushman> but if you are going to be all "there's no AVR in this project" then i'll better go -_-'
[11:31:14] <karlp> he just wants a two way audio device and a serial port
[11:31:30] <OndraSter> ok then I don't understand him :)
[11:31:49] <karlp> I think it needs more shrubs
[11:31:55] <karlp> or at least robots
[11:32:38] <OndraSter> see, not being native english speaker has one major flaw... I sometimes can not distinguish whether you are making joke or being serious, karlp :D
[11:32:53] <karlp> the joys of irc :)
[11:32:54] <Bushman> ok, i'm guilty! I just came here cause some guy told me to ask one of you. but since the one i was about to ask is not here i just asked general public. who knows. maybe someone already did that. (no matter if AVR were involved or not)
[11:32:59] <karlp> nothing to do with native english or not :)
[11:33:22] <OndraSter> karlp, considering I had to actually look up what "shrug" means... :P
[11:33:32] <OndraSter> which made me even less sure about joke/real
[11:33:51] <Bushman> you mean shrub?
[11:33:54] <karlp> shrubbery!
[11:33:55] <OndraSter> ye
[11:33:57] <OndraSter> shrub*
[11:34:05] <karlp> shrug is a good useful word,
[11:34:09] <karlp> shrub is only useful for jokes.
[11:34:13] <Bushman> cause i shrug when i ses shrubs
[11:34:15] <karlp> (and landscape gardening)
[11:34:15] <Bushman> *see
[11:34:33] <OndraSter> btw, is there something like AVR Studio but for ARM?
[11:34:37] <OndraSter> I am Visual Studio fanatic
[11:34:46] <OndraSter> and I dislike Keil uVision we used at school
[11:34:47] <karlp> there are many, they all cost money
[11:35:00] <Bushman> M$ fan!!! kill him!
[11:35:06] <OndraSter> yea, I am MS fan :D
[11:35:23] <OndraSter> W7 PC, W7 tablet, W7 notebook, WP7 phone, MS SideWinder mouse... lmao
[11:35:25] <Bushman> on the stake with him!
[11:35:33] <Bushman> i mean stack!
[11:36:01] <OndraSter> (meanwhile on Linux) "so I got OCD on AVR working after barely 200 hours spent!" "OOOH DUDE, YOU ARE AWESOME!"
[11:36:11] <Bushman> you know why witches when burned yealed "more wood! more WOOOD!!!" ?
[11:36:18] <OndraSter> nope
[11:36:22] <Bushman> they hoped there would be a stack overflow
[11:36:25] <OndraSter> lol
[11:36:26] <OndraSter> good one
[11:36:53] <Bushman> ;]
[11:37:03] <karlp> OndraSter: if you want to work with windows tools for arm, you're in money and code limited very quickly.
[11:37:16] <OndraSter> VMWare 'tis!
[11:39:08] <landonf> is Eclipse any good in the ARM sphere? (no wise cracks about whether it's any good in *any* sphere ;)
[11:40:35] <karlp> if you want to use gcc, then eclipse for arm is as good as eclipse is for any C code.
[11:40:43] <OndraSter> Eclipse is not good in *any* sphere :D
[11:40:49] <karlp> opinions on that are a different matter
[11:40:59] <OndraSter> I have to use Eclipse at school
[11:41:01] <OndraSter> it drives me mad
[11:41:17] <karlp> OndraSter: the worst thing really is switching _between_ eclipse and visual studio.
[11:41:26] <karlp> if you can stick with _one_ of them, the pain is a lot less.
[11:41:34] <OndraSter> too bad you can't properly do Java in VS :(
[11:41:42] <OndraSter> I don't want to do Java at all
[11:41:57] <karlp> if you're doing java, use intellij. end of story
[11:42:08] <OndraSter> FYI, I am making this cool stuff with AVR
[11:42:17] <OndraSter> 'tis 32x96 LED matrix
[11:42:23] <OndraSter> (32x48 x2 colors)
[11:42:33] <OndraSter> will support "2bit color depth"
[11:42:38] <OndraSter> (or how to call it)
[11:42:59] <OndraSter> and it will be getting image data from PC through USB (UART on AVR side, FT232 rox)
[11:43:46] <OndraSter> I was asked by school to make one for them so they can use it for teaching lol
[11:43:59] <OndraSter> (the original will be mine, I have it as a graduation project)
[13:49:09] <age> Hello.
[13:49:21] <Steffanx> Hi
[13:52:48] <age> I have a question regarding AT32UC3A1512. Max. operating frequency for it is specified as 66 MHz, but the docs say we may only connect 16 MHz. There is no rational number to multiply 16 by, to get 66. Any explanation?
[13:53:04] <age> (16 MHz crystal)
[13:54:16] <RikusW> PLL
[13:54:35] <RikusW> multiplier on the uc3
[13:58:01] <age> RikusW, I see the docs section now, thanks. So, to run at 66 MHz, I'd have to not only connect the crystal, but also configure PLL, right?
[13:58:48] <Steffanx> That's right
[13:59:02] <RikusW> isn't there an internal RC osc too ?
[13:59:56] <age> It's 32 KHz. If it's sufficient to generate 66 MHz clock, what's the point of being able to use external crystal for that?
[14:00:35] <RikusW> crystal is precise, RC isn't
[14:00:52] <Steffanx> So use a xtal :)
[14:00:56] <age> I see.
[14:08:07] <mapee> evening
[14:08:25] <rvsjoen> would asking about running contiki on avr rzravenusb sticks be off topic for this channel, and if so, does anyone know about a better place for it ?
[14:08:55] <landonf> rvsjoen: probably not, and I'm curious about it as well.
[14:09:26] <rvsjoen> well, I managed to flash my usb stick with contiki today, with the jackdaw image to be specific
[14:09:35] <rvsjoen> and I am able to use it as a sniffer for wireshark
[14:09:50] <rvsjoen> however, I can't find a way to send data out on it
[14:10:51] <rvsjoen> http://www.sics.se/~adam/contiki/docs-uipv6/a01108.html
[14:11:10] <rvsjoen> what leads be to believe it should be possible is the line "The overall idea for a network interface is to emulate an ethernet interface. Data is passed to the Jackdaw as if it was an ethernet port, however the Jackdaw passes this data over the air to end nodes."
[14:11:31] <rvsjoen> and the interface is emulated just fine, only nothing happens when I try to send data on it using a raw socket
[14:12:02] <ys0> oi
[19:23:43] <lagagnon> I like to really understand the hardware before I use it.
[19:23:59] <lagagnon> Can anyone recommend to me a good general, but not absolutely basic textbook on microcontrollers ?? - does not have to be AVR related, but that would help.
[19:25:26] <superkuh> Joe Pardue - C Programming For Microcontrollers.
[19:25:34] <superkuh> Check you pm, lagagnon.
[22:20:40] <mouche> hello, I'm looking into communicating with an HID device using an AVR microcontroller. Anybody have any suggestions about how I could do that? I've been looking at FTDI Vinculum USB host chip and then I've seen LUFA. I'm looking for some advice from someone with experience with it.
[22:22:25] <Kevin`> mouche: you are aware that there aew a few avr devices with usb host-mode support, right?
[22:22:55] <mouche> Kevin`: I wasn't aware they did host. Do you know what family off the top of your head?
[22:22:57] <Kevin`> it IS kind of rare though, I can see why you would use an external chip
[22:23:30] <Kevin`> mouche: at90usb1287 has it, not sure what the parts are from other families
[22:25:05] <mouche> ok, I'll look into that one. I had a link to a page that showed that LUFA USB Host for AVR microcontrollers was still in testing. That's why I avoided it at first.
[22:25:55] <mouche> here it is: http://www.fourwalledcubicle.com/files/LUFA/Doc/110528/html/_page__device_support.html
[22:26:30] <mouche> Ah it was just the 32-bit ones. The 1287 that you mentioned is solidly supported. Thanks for the help.
[22:33:01] <Tom_itx> the at90usb1287 is host
[22:33:14] <Tom_itx> woops, didn't see ^^^
[22:34:17] <mouche> Tom_itx: np, do you have any experience with it? I've done serial before but not USB. For example, if you're talking to an HID device, do you just get the reports via an interrupt or something?
[22:35:13] <Tom_itx> nope, abcminiuser's the guy to talk to about that
[22:36:17] <mouche> Tom_itx: ok, thanks
[23:10:27] <TeknoJuce> is there a way to figure out if you have fried pins on the avr?
[23:10:39] <Casper> test it
[23:10:47] <Tom_itx> try a blink program
[23:11:01] <Casper> try a diode test
[23:11:08] <TeknoJuce> diode test?
[23:11:10] <Casper> on an non-powered chip
[23:11:16] <Casper> with your dmm
[23:11:27] <TeknoJuce> dmm?
[23:11:28] <Casper> usually what people do is fry one of the protection diode
[23:11:49] <Casper> so you get a short from gnd to pin or pin to vcc
[23:12:17] <Casper> . . . you don't even know what a digital multi meter is?!?!?
[23:12:59] <TeknoJuce> would there ever be a scenario where the blinky would work but when you try to do something more complex with the ic it gives you obscure results in general? or if blink works then everything is fine
[23:13:27] <TeknoJuce> oh never seen it ref as dmm
[23:14:12] <TeknoJuce> how would you go about testing it with a dmm?
[23:14:48] <TeknoJuce> so like you put it on diode test and if you see 0 on gnd to vcc then you know its toasted?
[23:15:07] <theBear> what what what ?
[23:15:13] <theBear> oh, protection diode
[23:15:43] <theBear> i would usually just check on ohms, watch that it starts somewhere and creeps up to at least a few hundred or more often with most meters and supplies infinity
[23:15:57] <theBear> also remember a lot of diode tests show 0 when nothing is connected
[23:16:38] <TeknoJuce> fair enough. anything else to check besides what you see above that you can think of theBear?
[23:17:20] <TeknoJuce> as in testing a chip to make sure its fully working to spec
[23:17:24] * theBear has a quick read
[23:17:34] <theBear> oh, avr, i shoulda read a few more lines
[23:17:51] <theBear> what i said probably still applies tho
[23:18:08] <Kevin`> TeknoJuce: test the input part too
[23:18:51] <theBear> mmm yeah, if you can get the thing to powerup and take a program/run, just make one that say, would work for a nightrider/kit style led display, and if ya don't have a strip of leds handy, test the pins one by one, just get it running and probe around with your little led-logic-probe (aka led and resistor to gnd or vcc)
[23:19:14] <Kevin`> TeknoJuce: if you want to test EVERYTHING on the device, you'll need a rig built for it. normally you test the entire product instead of all the microcontroller functions though.
[23:19:17] <theBear> and then i suppose what kevin said, the opposite, but with just the resistor, no led, and some way to 'check' the micro is seeing stuff happen (ie. serial output)
[23:19:58] <theBear> and it'd be very UNUSUAL to say, just cook the comparator or part of the a-d inside the mcu needing more detailed testing... which raises the question, why/how do you think it broke ?
[23:20:24] <Kevin`> also, this is part of why you always buy more demo devices than you need :)
[23:21:08] <TeknoJuce> I was doing up a breadboard circuit with a lcd display and serial but I fell asleep on the project and shorted out the regulator which proceed to have a melt down, was just not sure if i damaged anything by doing that on the avr
[23:21:26] <theBear> lol
[23:22:21] <Kevin`> TeknoJuce: which did you do first, break the short on the output, or unplug it?
[23:22:22] <TeknoJuce> im lucky I didnt have a regulator welded to the melting skin on my forehead.
[23:22:23] <theBear> usually if you short a powersupply to death, only the part/thing that caused the short, the psu, and anything on its input side have any potential of being damaged... IF that's exactly what happened while you slept, then from the micro p.o.v all you did was stop providing power, just like unplugging a wallwart or a battery
[23:22:53] <theBear> indeed, those little suckers get HOT ! i can recall a couple times in my younger days foolishly finger-checking them and having a nice to-220 brand for a few weeks
[23:23:25] <TeknoJuce> I pulled the power to the supply Kevin` was that bad?
[23:23:38] <TeknoJuce> it had to be that way for many hours though.
[23:25:16] <Kevin`> TeknoJuce: no, that's not bad
[23:28:12] <TeknoJuce> see so after I got the lcd working and then that happened I then received my serial board in the mail and tried to use that to communicate with the avr but was having no luck with it so was wondering if maybe that stupidity process i did fudged up something in the ic to make it not plausible to us the txrx pins or something like that
[23:28:51] <Kevin`> unlikely
[23:28:57] <Kevin`> do you have a scope?
[23:29:51] <TeknoJuce> in transit bought the 100mhz rigol scope on dealextreme hope it works. how would I go about using that to test it.
[23:30:25] <TeknoJuce> should be here next week or the week after..
[23:30:45] <Tom_itx> you got alot of faith in dx
[23:30:56] <TeknoJuce> haha ok then maybe 2 months :P
[23:31:31] <TeknoJuce> it did take a 2 weeks for them to even say that they shipped it... :S
[23:33:10] <TeknoJuce> sorry its the 50mHz scope that you can hack to 100mHz... http://www.dealextreme.com/p/rigol-ds1052e-5-6-tft-lcd-50mhz-2-channel-digital-color-storage-oscilloscope-30573
[23:33:19] <TeknoJuce> is that an ok price?
[23:37:57] <TeknoJuce> I got someone to gift me the $50 openbench logic analyzer as well from dangerousprototypes but wont be able to grab that until xmas if that helps any
[23:39:49] <Kevin`> TeknoJuce: that's a tool for competely different purposes, but no less useful. both would work for this, actually.
[23:40:30] <TeknoJuce> so how would go about testing the tx rx with one of them?
[23:41:30] <Kevin`> test tx by watching it with your test device. test rx by either connecting tx to it or sending an external signal to it
[23:42:56] <TeknoJuce> can you short those pins together and then make it echo back to itself. like i did with hyperterm and the serial to usb device
[23:43:05] <TeknoJuce> not sure how I would check the results though
[23:43:18] <Kevin`> yes, you can
[23:44:35] <TeknoJuce> what would be your thought process on how to do that with out having testing equipt on hand to see the results
[23:51:21] <Kevin`> use a simple pattern and a speaker