#avr | Logs for 2014-10-30

Back
[07:42:11] <hetii> HI :)
[07:43:10] <hetii> Is there some nice tool to investigate usb descriptors ?
[07:43:27] <Tom_itx> sure
[07:43:30] <Tom_itx> got $$$ ?
[07:43:47] <hetii> no
[07:45:32] <Tom_itx> https://www.wireshark.org/
[07:45:33] <hetii> I mean more about something like online tool that help me understand each values that have on my example descriptors
[07:45:36] <Tom_itx> that might but i doubt it
[07:46:01] <twnqx> Tom_itx: is pcap defined for usb frames?
[07:46:19] <Tom_itx> http://www.usb.org/developers/hidpage/
[08:22:10] <megal0maniac> twnqx: I believe it's a fairly recent addition, yes
[10:07:47] <blathijs> Hey folks. Anyone here know how to reset a board through avarice/avr-gdb?
[10:08:38] <blathijs> I'm debugging something and sometimes want to restart. Restarting avarice and avr-gdb loses my gdb history, so I'd rather not do that
[10:12:04] <blathijs> set $pc = 0x3e000 seems to somewhat work (doesn't really reset, of course)
[10:22:18] <hetii> Hmm If i want to enumerate my usb device as two uart device should I define two interfaces with a 3 endpoints or just more endpoint in existing interface ?
[10:23:31] <hetii> *s/uart/cdc
[10:32:12] <hetii> j #usb
[10:34:51] <nurple> hi
[10:34:57] <antto> one does not simply.. join #usb
[10:36:22] <hetii> antto: there is just one more person :)
[10:36:22] <nurple> I need a 16 MHz clock crystal as mentioned in ---> http://arduino.cc/en/Main/Standalone
[10:36:45] <nurple> Will this work? http://www.digikey.com/product-detail/en/ATS16B/CTX1085-ND/2640031
[10:36:56] <nurple> I'm not sure about the other factors such as tolerance, and frequency, etc.
[11:17:41] <megal0maniac> nurple: The datasheet for the atmega should tell you what the tolerance should be (ppm)
[11:17:51] <megal0maniac> But that will work just fine. Just remember your caps
[11:18:13] <megal0maniac> I use 22nF, the datasheet also tells you what to use
[11:40:52] <cluelessperson> Tom_itx: your website is down
[12:14:40] <megal0maniac> cluelessperson: Up here
[12:28:04] <cluelessperson> megal0maniac: try clicking it.
[13:47:35] <Getty> the age of arm starts tomorrow..... (for us) no xmega anymore.... i am so happy i could cry
[13:50:29] <megal0maniac> cluelessperson: That's what I did
[13:50:50] <megal0maniac> Getty: What's this now?
[13:50:56] <megal0maniac> Oh, just for you?
[13:51:03] <megal0maniac> Thought they were discontinuing xmega
[13:51:25] <Getty> no no, thats why i added the sentence, i just had to tell someone who at least understands what i say ;)
[13:51:44] <megal0maniac> But I like xmega :D
[13:51:50] <Getty> hehehe yeah my dad too
[13:51:55] <Getty> thats the problem
[13:52:18] <megal0maniac> My dad isn't sure what a microcontroller is
[13:52:38] <Getty> yeah my dad is electronic crack, making devices (metal detection and spyware mostly) since 50< years
[13:53:34] <Getty> so convincing him to switch away from atmega to ARM is a milestone
[13:53:50] <Shavik|Work> My dad makes caskets lol
[13:53:56] <Shavik|Work> can't even turn on a pc
[13:58:29] <Getty> trust me, if a dad is an electronic genius its not REALLY that much different
[13:58:51] <Getty> you must see, i am 35 now and _NOW_ is the first year of my life where i work together with my dad (actually we are still in the 2. month)
[13:59:06] <Getty> trust me, my dad could have made caskets and the last 35 years wouldnt be different that much ;)
[13:59:28] <Getty> dads will always be dads ;)
[13:59:42] <Getty> but yeah right now, it gets interesting with him :) we should have started earlier tho
[14:08:33] <hetii> huh usb descriptors are twisted :/
[14:09:12] <LeoNerd> USB was designed by a huge committee
[14:09:25] <Getty> lol ;) that explains everything ;)
[14:10:05] <LeoNerd> The structure of most things that are built tends to somewhat reflect the structure of the group that made them
[14:10:48] <hetii> Here is my descriptor: http://pastebin.com/md1qzfnr
[14:10:52] <Getty> that doesnt explain gabor <insider> ;)
[14:11:12] <hetii> as we can see i get new block device: ttyACM2: USB ACM device
[14:11:38] <hetii> but dmesg show: config 1 has an invalid interface number: 2 but max is 1
[14:12:49] <hetii> what cause i set for interface 3 and 4 USB_CDC_DIF_2_NUM = 3 USB_CDC_CIF_2_NUM = 2
[14:13:42] <hetii> when i don`t define it and use just USB_CDC_CIF_NUM = 0 and USB_CDC_DIF_NUM =0 then get information that have duplicated interfaces
[14:14:26] <hetii> dmesg: Duplicate descriptor for config 1 interface 0 altsetting 0, skipping
[14:22:14] <hetii> ok looks like i forgot to set bNumInterfaces to 4 :/
[15:30:56] <Jartza> hmmh
[15:31:18] <Jartza> anyone have experience on solder paste that just turns into "gray powder-like stuff" when heated?
[15:31:36] <Jartza> bad paste or what am I doing wrong?
[15:31:40] <Jartza> (it's leadfree)
[15:36:00] <megal0maniac> I bought solder and it said "may contain lead" on the label, and I said "I bloody well hope so"
[15:39:21] <Jartza> doesn't help much as these need to be ROHS -compliant :)
[15:39:41] <megal0maniac> Then you shall have to solder with dust!
[15:47:27] <N1njaneer> I don't think I've used leaded solder in six years now :)
[15:47:42] <Jartza> N1njaneer: you have any idea what to do?
[15:47:51] <Jartza> or why this happens
[15:56:04] <Jartza> I did try a lot of different temps and everything, but it just always turns into goo
[15:56:24] <Jartza> I was desperate enough to even try it on our kitchen stove :D
[15:56:25] <Jartza> same thing
[15:58:30] <N1njaneer> Jartza: Get better paste. It should never do anything like that :)
[16:00:34] <Jartza> seems to be hard to get quickly here :(
[16:00:40] <Jartza> took 1.5 weeks to get this one
[16:00:43] <Jartza> this arrived yesterday
[16:03:38] <RikusW> megal0maniac: I just use nasco solder 0.7mm
[16:04:35] <N1njaneer> Yeah. Generally solder paste is shipped in refrigerated cartons.
[16:05:00] <N1njaneer> I locally source it here, but any other shipments only go 2-day at VERY latest unless it's winter.
[16:05:19] <N1njaneer> Most solder paste is okay for a couple weeks at room temperature as long as it's air-tight sealed.
[16:05:52] <Jartza> yes, this supplier also said they don't store it anywhere but order it directly from manufacturer
[16:06:07] <Jartza> http://www.tme.eu/html/EN/easy-print-lead-free-soldering-pastes/ramka_4618_EN_pelny.html
[16:06:08] <N1njaneer> It gets very critical when you go to mass-production printing stencils for very fine pitch parts. Any inconsistency in the paste leads to massive yield problems.
[16:06:32] <Jartza> that's the paste
[16:07:09] <N1njaneer> We'll always use virgin paste stock for production on fine-pitch stuff, then will take the used stuff and keep it for far less critical boards with no fine-pitch. The stuff we use is about $100 USD per 500g jar, so a bit spendy.
[16:07:25] <N1njaneer> Have never heard of them.
[16:08:17] <RikusW> I pay ~~$15 for 500g of 0.7mm solder
[16:08:27] <RikusW> rosin core ofc
[16:08:48] <N1njaneer> RikusW: This is SAC305 no-clean Type 3 solderpaste.
[16:08:56] <RikusW> heh
[16:09:07] <RikusW> paste is expensive over here too...
[16:09:23] <N1njaneer> Lead free tends to be quite expensive from the silver content.
[16:11:14] * RikusW just came across this ds -> http://danyk.cz/ad633.pdf
[16:11:19] <RikusW> interesting chip
[16:12:26] <Jartza> gnnh
[16:12:53] <Jartza> I tried, this paste goes bonkers even when touched with soldering iron
[16:13:03] <Jartza> it's like it doesn't have flux at all or something
[16:14:35] <Jartza> I'm just wondering, can I make a reclamation out of this :)
[16:15:57] <RikusW> add some flux ?
[16:16:22] <Jartza> I only have flux pen
[16:18:01] <vsync1> Does anyone know of a better sd->microsd adapter than the one DX sells?
[16:18:31] <vsync1> now be mindful, that's the opposite adapter than what everyone is used to see
[16:19:18] <vsync1> http://www.dx.com/p/sd-to-microsd-transflash-card-converter-module-27001 this...
[16:19:51] <vsync1> the exposed ends of the flat flex are too short
[16:31:52] <Jartza> oh well
[16:31:55] <Jartza> http://www.digikey.fi/product-detail/en/SMD291SNL10/SMD291SNL10-ND/2057272
[16:32:10] <Jartza> any experience of that chipquik stuff?
[16:32:41] <jacekowski> yeah
[16:32:46] <jacekowski> low melting point solder
[16:33:28] <Jartza> but does it work? ;)
[16:33:45] <jacekowski> yes
[16:34:07] <jacekowski> but it really depends on what are you trying to do
[16:34:36] <jacekowski> i personally just cut the legs off
[16:39:33] <Jartza> I'm trying to get 5 smd parts on board :)
[16:39:40] <Jartza> or to be precise, on 100 boards
[17:04:39] <N1njaneer> Jartza: Sorry, busy day here - trying to get stuff wrapped up so I can get on the road.
[17:30:43] <Jartza> N1njaneer: no prob
[17:30:51] <Jartza> I ordered now that chip quik from digikey
[17:30:56] <Jartza> hope it's better than this polish crap
[17:31:30] <Jartza> I just would've had few evenings time to solder those, but I guess not then :(
[17:32:06] <Jartza> the biggest problem is that digikey delivers with UPS and that's pain in the ass especially where I live
[18:05:49] <jacekowski> Jartza: how big are the parts?
[18:06:15] <jacekowski> Jartza: with mass production you would normally do it with hot air station
[18:06:30] <Jartza> not big, 3 caps, 1 power booster (sot23-5) and one diode
[18:06:41] <Jartza> jacekowski: I do it with hot air station :)
[18:07:00] <twnqx> i thought mass production is always reflow
[18:08:45] <Jartza> (me too)
[19:23:20] <cluelessperson> jacekowski: GALIUM
[19:23:27] <cluelessperson> jacekowski: or Mercury
[21:16:41] <gkwhc> Hey everyone, i know this is an AVR channel, but might anyone happen to know the differences in interfacing a SRAM in byte/word mode? i heard that in byte mode the address pin shifts by 1bit, but im not sure
[21:17:47] <xrlk> m
[21:18:54] <twnqx> that kind of makes sense.
[21:23:02] <gkwhc> im not sure how to exactly interface them so that it supports both byte and word modes
[21:23:43] <Casper> gkwhc: most likelly 8 and 16 bits bus
[21:24:11] <Casper> and most likelly the address in word is 2 bytes per location...
[21:24:21] <Casper> i.e. address per 16 bits....
[21:28:09] <gkwhc> Casper: both should be on the same bus. for example, http://www.cypress.com/?mpn=CY62177EV30LL-55BAXIT there is one extra pin A21
[21:30:03] <Casper> A21 might be for parity maybe?
[21:30:22] <Casper> for the chip that have it
[21:30:54] <gkwhc> does that mean in byte mode, address pins A1-A21 are used? or A0-A21? or A21(instead of A0) to A20
[21:31:26] <Casper> I don'T see A21
[21:33:17] <gkwhc> Casper: oh I meant the package that has A21
[21:33:42] <Casper> possibly not used
[21:33:44] <timemage> gkwhc, it seems you put the word address on the address lines. if you want to treat it as an 8bit data bus, you send A1 of the mcu to A0 of the chip. keep /BYTE active. and send the mcu A0 to BLU and BHE
[21:33:59] <Casper> might be for the 64 Mbits ones
[21:34:05] <timemage> gkwhc, BLE and BHE raher.
[21:34:57] <timemage> gkwhc, you would need a inverter on one it seems.
[21:36:33] <gkwhc> hmm
[21:37:03] <gkwhc> timemage: but it says in byte mode, BLE and BHE arent used
[21:39:59] <timemage> gkwhc, can you point to what you're talking about?
[21:43:56] <gkwhc> timemage: footnote 2, page 3 of the datasheet
[21:44:52] <megal0maniac> Hah! Compiled with the release profile and it's 4 bytes bigger than debug
[21:44:55] <megal0maniac> Sill gcc
[21:45:00] <megal0maniac> Silly
[21:45:28] <timemage> gkwhc, that makes things easier.
[21:46:41] <gkwhc> doesnt make any sense
[21:47:47] <timemage> gkwhc, it seems to. they gave you an extra pin for the A21 (pin45) to account for the fact that you're now byte addressing rather than word addressing.
[21:48:14] <timemage> gkwhc, basically, put it in byte mode and present your address on A0 though A20 and pin 45 as A21.
[21:48:44] <timemage> gkwhc, does that help and if not what part doesn't make sense?
[21:54:00] <gkwhc> timemage: I see. but comparing that datasheet to another similar device (http://www.alliancememory.com/pdf/AS6C3216.pdf) page 2 tells you that the extra pin is used in place of A0 for byte mode?
[22:04:25] <gkwhc> timemage: which seems to be in different operation than the first device, if im not mistaken...srams should be standard devices