#avr | Logs for 2012-11-14

Back
[01:10:13] <megal0maniac> jadew: v-usb :P
[01:10:46] <megal0maniac> Cheap and nasty, but works. Or at least it should. I haven't tried myself
[01:21:53] <hackvana> v-usb: As long as you can accept its limitation, it works well
[01:24:33] <megal0maniac> jadew: Looks as though the mega8u2 is the cheapest one. There's also the AT90USB82, but I don'tknow if that's still in production
[01:24:36] <megal0maniac> http://www.atmel.com/PFResults.aspx#%28data:%28area:%27%27,category:%2734864[33180]%27,mature:!f,pm:!%28%28i:8238,v:!%280,18%29%29,%28i:8394,v:!%280,17%29%29,%28i:8362,v:!%281,28%29%29,%28i:8282,v:!%281%29%29,%28i:8466,v:!%281,2,3%29%29%29,view:list%29,sc:1%29
[01:24:54] <megal0maniac> hackvana: What have you used it for?
[01:27:40] <hackvana> http://capnstech.blogspot.com/2011/05/usb-doodad-7-playpause-and-bed-of-nails.html http://capnstech.blogspot.com/2011/06/playpause-3-assembly-and-programming.html
[01:28:19] <megal0maniac> CapnKernel?..
[01:38:43] <hackvana> Yeah it's me, but don't tell anyone. I don't think they've caught on yet...
[01:38:49] <hackvana> http://www.hackvana.com/
[01:41:04] <megal0maniac> I confirmed through blogspot :P
[01:43:14] <hackvana> :-)
[01:50:32] * amee2woof grabs the soldering iron and grins manically.... "a circuit is fine too..:" }:]
[01:51:13] * megal0maniac needs to figure out how to load the necessary kernel modules for CDC serial to work on Android kernel...
[01:51:27] <megal0maniac> Also probably need to compile them myself :/
[02:16:49] <megal0maniac> I give up, for now. I can compile for AVR on my phone, but not upload
[02:17:38] <megal0maniac> Quick question to the Linux people, if I'm chrooted into another Linux install, am I restricted to the host kernel?
[03:33:13] <jacekowski> megal0maniac_afk: yes
[06:24:45] <OndraSter_> damnit
[06:24:52] <OndraSter_> my ID card expires in a month
[06:24:56] <OndraSter_> but I need to make few orders
[06:25:01] <OndraSter_> and without my ID card they won't give me anything on the post :(
[06:25:10] <OndraSter_> getting new ID = 14 days or so
[06:26:30] <OndraSter_> wait
[06:26:32] <OndraSter_> 30 DAYS ?!
[06:26:34] <OndraSter_> ARE THEY SHITTING ME
[06:27:55] <Steffanx> OndraSter_ YOUR FAULT
[06:28:13] <Steffanx> procastination
[06:28:36] <OndraSter_> wait what?
[06:28:47] <OndraSter_> if I come to there BEFORE I am 20, the next ID would be valid for 5 years
[06:28:54] <OndraSter_> if I come there AFTER I am 20 it will be valid for 10 years
[06:29:01] <OndraSter_> and I will be 20 two days from now
[06:29:30] <OndraSter_> I will be given "temporal" ID card. But it can not be used on post etc
[06:29:33] <OndraSter_> idiots
[06:29:45] <OndraSter_> it is not like I have got 3 months old driving license... oh wait, I DO!
[06:29:49] <Steffanx> Why on earth you need an ID to post things anyway?
[06:29:55] <OndraSter_> not post
[06:29:56] <OndraSter_> receive
[06:30:04] <OndraSter_> if they bring it to your house - okay
[06:30:09] <OndraSter_> you don't have to usually show them your ID
[06:30:15] <OndraSter_> (mostly becuse everybody here knows me :D)
[06:30:37] <OndraSter_> but when you go pick it up on the post you have to prove that you are the person
[06:30:41] <Steffanx> Here the just give it to the one who opens the door :)
[06:30:45] <OndraSter_> sure
[06:30:47] <Steffanx> *they
[06:30:54] <OndraSter_> but not when you go pick it up on the post office
[06:30:57] <OndraSter_> because nobody was at home
[06:31:12] <jadew> megal0maniac_afk, I've used v-usb, it's ok for some stuff, but I kinda want my device to register itself as a cdc device, so I won't have to install any drivers
[06:31:18] <Steffanx> So you can do two things now OndraSter_
[06:31:21] <Steffanx> Get a new ID
[06:31:26] <Steffanx> or don't leave the house
[06:31:29] <OndraSter_> ;D
[06:31:36] <OndraSter_> I could always ask them to deliver it while I am at home
[06:31:44] <OndraSter_> since I am at home 2 or 3 days a week (working days)
[06:31:47] <OndraSter_> ;D
[06:31:49] <OndraSter_> screw school
[06:34:31] <OndraSter_> WHY does it take FU.KING MONTH to create the new ID?
[06:34:39] <OndraSter_> the driver's license took 10 days or so
[06:34:43] <OndraSter_> and it is done ON THE SAME PLACE
[06:37:12] <Steffanx> I know how you feel, but no one can help you with it
[07:24:10] <crazy_imp> heyho
[07:25:00] <GuShH> who the ho?
[07:25:26] <crazy_imp> is there somewhere a table out there, with the information how many complete banks (8 pins) are left on an atmega if you want to use the uart and twi interface?
[07:25:49] <Tom_itx> the data sheet
[07:26:20] <crazy_imp> Tom_itx: yeah, but i don't want to read them all
[07:26:40] <Tom_itx> i'm not gonna read em for you
[07:27:03] <Tom_itx> possibly the parametric table
[07:27:30] <crazy_imp> the parametric table does not include this information
[08:32:26] <Malinuss> so I'm making my own delay function, to play around with interrupts... I couldn't make it work for quiet a while, but then I thought about the fact that I read somewhere to disable interrupts while accessing global variables that are manipulated by the interrupt function
[08:32:38] <Malinuss> this is my code: http://pastebin.com/EcL94kZV
[08:33:00] <Malinuss> why doesn't the normal loop, where I just check the variable, work?
[08:37:38] <OndraSter_> count_copy exists only in the main
[08:38:02] <OndraSter_> wait
[08:38:03] <OndraSter_> what?
[08:38:17] <OndraSter_> define "does not work"
[08:41:39] <Malinuss> OndraSter_, when I simply check the overflow count, it never changes state. If I copy the overflow_count to a other int, while the interrupts are disabled, and check that copy instead, it works as intended
[08:43:20] <Malinuss> the loop where the count_copy is, is the loop inside the ms_delay function. not the main loop. OndraSter_
[08:44:02] <crazy_imp> Malinuss: where and how do you define the overflow_count?
[08:44:25] <OndraSter_> just as count_copy does not exist in the ms_delay
[08:45:10] <crazy_imp> OndraSter_: indeed, that would have been my next question
[08:45:47] <Horologium> crazy_imp, to get the info you wanted you will need to look at individual pinouts.
[08:46:23] <crazy_imp> Horologium: yes
[08:46:49] <crazy_imp> Horologium: guess i'll write an mail to atmel one day, requesting this feature for the parametric table :)
[08:46:54] <Malinuss> OndraSter_, crazy_imp. I think you are misunderstanding me. to clear this up - this *works*: http://pastebin.com/KZU0Me29 this *doesn't* work: http://pastebin.com/ajGVySHf
[08:47:01] <Malinuss> the changes are in the ms_delay loop
[08:47:27] <Malinuss> my question is, why does the not working version, actually not work..
[08:47:40] <Horologium> Malinuss, where are you declaring overflowcount?
[08:47:48] <OndraSter_> 4th line
[08:48:08] <Horologium> in the pastebin?
[08:48:12] <Malinuss> yes
[08:48:16] <OndraSter_> but I have got no idea how it is supposed to be working. While the overflow count is bigger than the wait time?!
[08:48:19] <Horologium> 4th line in that shows it incrementing.
[08:48:22] <Horologium> not being declared.
[08:48:26] <Malinuss> wut
[08:48:27] <OndraSter_> Horologium, new pastebin links
[08:48:30] <Horologium> are you declaring the variable as volatile?
[08:48:33] <OndraSter_> the old one was incomplete
[08:48:37] <Malinuss> oh sorry
[08:48:40] <Horologium> ok.
[08:48:41] <Malinuss> didn't realise that
[08:48:43] <Malinuss> this *works*: http://pastebin.com/KZU0Me29 this *doesn't* work: http://pastebin.com/ajGVySHf
[08:48:44] <Horologium> sorry, half dead today.
[08:48:53] <Malinuss> nah. I should have checked
[08:49:05] <OndraSter_> shouldn't it be something like
[08:49:09] <OndraSter_> int actual_wait = ms/16;
[08:49:17] <OndraSter_> int last_count = overflow_count;
[08:49:31] <OndraSter_> while(overflow_count - last_count < actual_wait);
[08:49:39] <OndraSter_> err, the other way
[08:49:45] <OndraSter_> no, this way :D
[08:49:56] <Malinuss> OndraSter_, but that would do the exact same thing....
[08:50:17] <OndraSter_> not really
[08:50:37] <Malinuss> well it will count down, instead of checking the value each loop... ?
[08:50:50] <OndraSter_> /stop the interrupt
[08:50:50] <OndraSter_> TIMSK0 &= ~(1<<TOIE0);
[08:50:50] <Malinuss> not really answering my question though
[08:50:54] <OndraSter_> what about stopping the timer itself too?
[08:51:07] <OndraSter_> and resetting its TCNT value?
[08:51:23] <OndraSter_> oh I see how it works
[08:51:23] <OndraSter_> nvm
[08:51:31] <OndraSter_> quite weird way
[08:52:01] <Malinuss> TIMSK0 &= ~(1<<TOIE0); this stops the timer?. but yeah I should porpably reset the TCnT values
[08:52:16] <OndraSter_> that stops the interrupt from firing only
[08:52:53] <Malinuss> as far as I read in the datasheet, the hardware clock will go no matter what...
[08:53:47] <Malinuss> so no idea how I would stop it, actually
[08:53:52] <Malinuss> I never really start it?
[08:55:47] <Horologium> if you get rid of the cli/sei lines in the one that works, does it break?
[08:56:34] <OndraSter_> Malinuss,
[08:56:35] <OndraSter_> where is
[08:56:36] <OndraSter_> sei();
[08:56:38] <OndraSter_> in the other code? :D
[08:56:46] <Malinuss> OndraSter_, there are no
[08:56:53] <Horologium> hehe.
[08:56:54] <OndraSter_> then how is it supposed to work?
[08:56:56] <OndraSter_> :P
[08:56:56] <Horologium> that's why it's not working.
[08:57:02] <Malinuss> Horologium, yes if I remove the cli/sei it does break
[08:57:04] <Horologium> you never start the interrupts.
[08:57:15] <Malinuss> ?
[08:57:17] <OndraSter_> you never enable* the interrupts
[08:57:23] <OndraSter_> SEI = SEt I flag
[08:57:24] <Horologium> put sei in the main
[08:57:29] <OndraSter_> which ENABLES interrupts in the first place
[08:57:31] <Malinuss> lol
[08:57:34] <Horologium> sei() turns on interrupts.
[08:57:41] <Horologium> without that on the timer will never interrupt.
[08:57:44] <OndraSter_> ;D
[08:57:44] <Malinuss> of course *faceplm*
[08:57:45] <OndraSter_> aye
[08:57:49] <Malinuss> lol
[08:57:50] <Horologium> that's global interrupts.
[08:57:51] <Malinuss> oh god
[08:58:27] <Horologium> elsewhere in the code you are telling the timer to generate interrupts...but without global on the timer won't generate squat.
[08:58:28] <OndraSter_> oh god alright - for some reason the kettle started to smoke like cigar party and whole house is filled with smoke from it.
[08:58:31] <OndraSter_> afk
[08:59:18] <Horologium> reason it works in that one is that after one pass the global interrupts are on.
[08:59:22] <Malinuss> Horologium, thanks for the help. and OndraSter_ too.
[08:59:27] <Horologium> welcome.
[08:59:34] <Malinuss> yeah I get that now Horologium ;)
[09:00:41] <Horologium> now if I could just debug my wetware as easily things would be good.
[09:01:00] <Malinuss> so how do you guys debug your code? without a programmer...
[09:02:11] * RikusW just soldered a PA6H GPS to a plain pcb ! http://ctrlv.in/135825
[09:02:54] <Malinuss> what is that?
[09:03:18] <OndraSter_> RikusW, how long did it take for you to upload that photo? :D
[09:03:19] <OndraSter_> and nice
[09:03:28] <OndraSter_> that big cap :D
[09:03:39] <RikusW> its only 30kb :-P
[09:03:40] <Malinuss> what will it do?
[09:03:46] <RikusW> http://ctrlv.in/135826
[09:03:51] <RikusW> connected to the U2S
[09:04:03] <OndraSter_> and does it work? :P
[09:04:07] <RikusW> OndraSter_: how do you know its a cap ? ;)
[09:04:13] <RikusW> it DOES :)
[09:04:19] <OndraSter_> because these looks like the mains ones
[09:04:21] <OndraSter_> :P
[09:04:24] <OndraSter_> filtering mains
[09:04:25] <Horologium> Malinuss, wetware = brain
[09:04:34] <RikusW> I'll replace that cap later, its for VBackup
[09:04:43] <OndraSter_> :D
[09:04:44] <RikusW> maybe even put a 3v battery there
[09:04:46] <OndraSter_> supercap?
[09:04:48] <Malinuss> okay I'm lost ;)
[09:04:54] <RikusW> its 4u7... high V
[09:05:06] <RikusW> just grabbed it out of my scrap pile
[09:05:09] <OndraSter_> I know, but are you going to use supercap?
[09:05:13] <RikusW> probably low leakage then..
[09:05:25] <RikusW> I do have one around, just have to find it....
[09:05:31] <OndraSter_> I know that feeling :D
[09:05:39] <OndraSter_> I have got A LOT of stuff I "just have to find it"
[09:05:48] <RikusW> its somewhere in 1 of a hundred tuna tins....
[09:05:55] <RikusW> if it is there...
[09:06:02] <Horologium> Malinuss, as far as debugging code, I do it the old fashioned way, I read my code, look at what it does or doesn't do, and make changes.
[09:06:17] <Malinuss> lol Horologium
[09:06:29] <Malinuss> well one should do that no matter what :P
[09:06:33] <Horologium> same way I did on the vic-20
[09:06:37] <RikusW> Malinuss: its a GlobalTOP PA6H GPS
[09:06:43] <RikusW> it only takes 20mA to run
[09:06:45] <RikusW> 3v3
[09:06:48] <RikusW> 2v8 IO
[09:07:14] <Malinuss> RikusW, so what? You will be abel to get a gps-position to your MU?
[09:07:14] <Horologium> also, put debugging code in there..like to flash LED when things happen or send data out on serial port or whatnot.
[09:07:43] <Malinuss> Horologium, so you guys don't use simulators+debugger?
[09:08:28] <Horologium> nope.
[09:08:30] <RikusW> Malinuss: yes
[09:08:38] <Horologium> some do, I don't.
[09:08:38] * OndraSter_ uses JTAG/PDI debugging
[09:08:39] <RikusW> its simple uart
[09:08:40] <OndraSter_> if I can
[09:08:50] <OndraSter_> if I can not (time) I use UART to dump relevant data
[09:09:09] <Horologium> UART/serial port is a great debugging tool.
[09:09:15] <Horologium> along with printf()
[09:09:22] <RikusW> Malinuss: I connected it to http://sites.google.com/site/megau2s/home and then to a laptop for testing
[09:09:41] <RikusW> I built the U2S myself, have 100 in stock...
[09:10:17] <Horologium> https://www.olimex.com/Products/OLinuXino/ totally off topic but,,,rasberry PI competitor...
[09:10:21] <Malinuss> also about the serial monitor. So until now I just used the arduino IDE, what do you use for the serial monitor?
[09:10:24] <RikusW> I put a piece of transparency underneat to prevent the other pads shorting
[09:10:35] <RikusW> and cut holes for Gnd only
[09:10:46] <OndraSter_> Malinuss, Putty
[09:10:46] <Malinuss> RikusW, isn't that very expensive? I've got my teensy 2, which has a "better" chip, for the same money
[09:10:54] <OndraSter_> if I want to mix binary and ascii I use my own superterm
[09:11:05] <RikusW> Malinuss: its a full STK500 too
[09:11:18] <Horologium> Malinuss, gtkterm or minicom...but, I don't use windows...in windows I would use teraterm pro.
[09:11:25] <RikusW> and an onboard USB-UART and jtagice mki debugger too
[09:11:42] <RikusW> and bootloader for custom app
[09:12:01] <Malinuss> RikusW, not sure what all those are, but it sounds like it has a lot more then the teensy on the board..
[09:12:08] <RikusW> the STK500 is loaded high in flash, so the app don't interfere with it
[09:12:14] <RikusW> it is :)
[09:12:27] <RikusW> the STK500 is the official atmel programmer
[09:12:36] <Malinuss> ah
[09:12:40] <RikusW> well its old now, replaced by stk600
[09:12:44] <RikusW> I cloned it
[09:12:52] <Malinuss> why not just buy the programmer + chip + crystal?
[09:13:06] <Malinuss> sounds easier + cheaper on the long go
[09:13:27] <RikusW> mine can program any other AVR
[09:13:43] <RikusW> and actually do on chip debug on older megas
[09:13:57] <RikusW> and with the right PC sw newer megas too
[09:15:50] <RikusW> I used red and blue markers to draw the right position, applying flux mixed it....
[09:18:11] <RikusW> OndraSter_: I connected the dragon to the coco using both PDI and JTAG, works fine
[09:18:33] <RikusW> though the AS5 only supports xm256A3 no U
[09:18:45] <RikusW> but seems the signature is the same....
[09:18:52] <RikusW> only revision differs ?
[09:19:47] <OndraSter_> RikusW, as6 is out for some time, you should upgrade that
[09:19:50] <OndraSter_> so XBoard CAME
[09:19:52] <OndraSter_> when? :D
[09:20:09] <OndraSter_> a3 and a3u are very similar chips... a3u = newer revision with USB module
[09:20:16] <OndraSter_> but they fixed all the bugs from previous silicon from a3
[09:20:23] <OndraSter_> so ADC works properly etc
[09:20:36] <OndraSter_> (that's why I am targetting only -U chips - they have got most of the errata fixed)
[09:22:38] <OndraSter_> Rikus1, did you get all of the messages?
[09:24:11] <Rikus1> GPRS troubles...
[09:24:32] <OndraSter_> that means yes or no?
[09:57:02] <OndraSter_> duh wtf
[09:57:17] <OndraSter_> why is the nvm_asm.s file requiring me to place it into bootloader section :P
[09:57:28] <OndraSter_> why does it have SPM stuff while I did not ask for it?
[10:06:55] <Horologium> I didn't do it!
[10:13:57] <OndraSter_> http://pastebin.com/EK6pAnrj
[10:14:02] <OndraSter_> gcc says that this is the -Os optimalization.
[10:14:12] <OndraSter_> USE Z+k DUDE
[10:15:32] <OndraSter_> or is that 4 bytes too? :(
[10:15:53] <OndraSter_> damnit
[10:16:28] <OndraSter_> nope it is 2 bytes
[10:26:21] <OndraSter_> crap, I am not saving logs
[10:26:38] <OndraSter_> what is the asm(...) stuff to force it to use disposition for addressing?
[10:28:30] <OndraSter_> displacement*
[10:32:19] <OndraSter_> jadew, was it you who told me it the last time?
[10:33:45] <OndraSter_> __asm__ __volatile__ ("" : "=b" (uid_cdc_state_msg[PORT]) : "0" (uid_cdc_state_msg[PORT]));
[10:33:47] <OndraSter_> this does not work :(
[10:37:47] <Lt_Lemming> well shit >_<
[10:37:58] <OndraSter_> eh?
[10:37:58] <Lt_Lemming> forgot to route a VCC pin on my board
[10:38:19] <Lt_Lemming> like I have the decoupling cap there, but it's not connected to the power rail
[10:38:26] <OndraSter_> ..
[10:38:40] <Lt_Lemming> there is another Vcc pin that is, but this one isn't >_<
[10:40:43] <Lt_Lemming> eh, all good, can correct it in the next version of the board, and greenwire it on the current one
[10:41:18] <OndraSter_> I should start looking for white wires ;D
[10:42:06] <Lt_Lemming> I got a bunch of dell 1ru server motherboards recently that had about 20 green wire fixes each
[10:42:09] <Lt_Lemming> was quite amusing
[10:43:30] <Horologium> you should have seen some of the tyan dual processor boards early on.
[10:44:14] <Lt_Lemming> heh, I can imagine
[10:44:20] <Lt_Lemming> these were dual p3 boxes
[10:44:35] <Lt_Lemming> so fairly early in the realm of dual server in 1u
[10:47:19] <OndraSter_> :D
[10:47:25] <OndraSter_> I ran ibm x330 server
[10:47:29] <OndraSter_> 1u, dual tualatin
[10:47:39] <OndraSter_> I have some memories about that :D
[10:48:52] <Lt_Lemming> yeah I had one of those at one stage
[10:48:59] <Lt_Lemming> these were Poweredge 1650;s
[10:54:39] <jadew> OndraSter_, don't think so, what are you trying to do?
[10:59:34] <Horologium> yup. dual p-3 boards, early on they changed a lot of things to make them stable.
[11:00:01] <Horologium> saw some where they even cut traces on the board.
[11:00:39] <OndraSter_> jadew, well http://pastebin.com/EK6pAnrj
[11:00:59] <OndraSter_> I want to tell it to put the "base" of one struct into Y or Z
[11:01:03] <OndraSter_> so it uses those
[11:01:05] <OndraSter_> with displacement
[11:01:08] <OndraSter_> aka 2 bytes instead of 4
[11:01:27] <Horologium> heck, have a copier with stability problems...the solution,,,wiggle one of the capacitors on the board until it breaks loose...problem solved.
[11:01:35] <OndraSter_> :D
[11:02:40] <Horologium> apparently the cap is part of the power supply and puts it into some nasty oscillations under certain load conditions.
[11:03:39] <Lt_Lemming> Horologium, the hackerspace here just got donated a $30'000 toshiba laser MFC with 5000 sheet feeder
[11:03:42] <Lt_Lemming> it's awesome
[11:03:56] <OndraSter_> hehe
[11:04:04] <Horologium> older machine?
[11:04:20] <Lt_Lemming> 3 years old
[11:04:35] <Horologium> odd that someone would donate such a device like that.
[11:04:47] <Horologium> without there being something wrong with it.
[11:04:55] <Horologium> do you know the model?
[11:05:04] <Lt_Lemming> E-studio 520
[11:05:13] <Lt_Lemming> perfect working order
[11:06:24] <jadew> OndraSter_, and what's not working?
[11:06:36] <jadew> what's that? uid_cdc_state_msg[PORT]
[11:06:47] <jadew> it should probably resolve to a pointer
[11:07:00] <Malinuss> So I can't get the terminal window (atmel studio) to work. I wan't it to listen to COM3, but when I add COM3 in the options I get an error...
[11:07:01] <jadew> if uid_cdc_state_msg is a *, it will resolve to a value
[11:08:08] <Malinuss> I made my own function to send trough the USART, but I think they should work. I just can't change the COM, the terminal is listening to..
[11:09:14] <OndraSter_> jadew, it won't compile
[11:09:17] <OndraSter_> no idea what it is :D
[11:09:20] <OndraSter_> I didn't write the code
[11:09:21] <OndraSter_> atmel did
[11:09:23] <OndraSter_> it is struct
[11:09:25] <jadew> ah
[11:09:34] <OndraSter_> and it actually has got only 1 field
[11:09:37] <OndraSter_> so I can use directly [0]
[11:09:51] <jadew> yeah, but if you have char * asdf;
[11:09:54] <jadew> asdf is a pointer
[11:09:57] <jadew> asdf[0] is a char
[11:10:05] <OndraSter_> it is a struct..
[11:10:07] <jadew> "=b" will probably expect a pointer
[11:10:11] <OndraSter_> I tried =&b
[11:10:21] <jadew> if you're feeding it a value (struct or whatever) it won't work
[11:10:23] <jadew> yeah, I don'
[11:10:28] <OndraSter_> __asm__ __volatile__ ("" : "=&r" (uid_cdc_state_msg) : "b" (uid_cdc_state_msg));
[11:10:31] <OndraSter_> nothing either
[11:10:36] <OndraSter_> "impossible constraint in 'asm'"
[11:10:43] <jadew> don't know all the modifiers __asm__ takes
[11:10:49] <jadew> ah ha
[11:10:52] <jadew> yeah, that's what it means
[11:11:07] <jadew> where is uid_cdc_state_msg defined?
[11:11:28] <OndraSter_> COMPILER_WORD_ALIGNED static usb_cdc_notify_serial_state_t uid_cdc_state_msg[UDI_CDC_PORT_NB];
[11:11:30] <OndraSter_> yeah.
[11:11:44] <jadew> alright
[11:12:07] <jadew> so try "b" (&uid_cdc_state_msg[PORT])
[11:12:14] <OndraSter_> I tried that
[11:12:19] <OndraSter_> just as another 1000 options :(
[11:13:16] <jadew> you said it only has 1 property?
[11:13:27] <OndraSter_> only one [PORT]
[11:13:35] <OndraSter_> PORT is forced to be 0 actually
[11:13:40] <jadew> wait
[11:13:45] <jadew> asdf[PORT]
[11:13:52] <jadew> that's not a property
[11:14:00] <OndraSter_> I never said it is property
[11:14:10] <jadew> and it actually has got only 1 field
[11:14:14] <jadew> you mean 1 element?
[11:14:32] <jadew> "[18:57.31] <OndraSter_> and it actually has got only 1 field"
[11:14:49] <jadew> if it only has one element
[11:14:50] <OndraSter_> 1 element
[11:14:52] <OndraSter_> yes
[11:14:52] <OndraSter_> that
[11:15:04] <jadew> then "e" (uid_cdc_state_msg) should work
[11:15:06] <jadew> or "b"
[11:16:38] <OndraSter_> exactly how?
[11:16:41] <OndraSter_> __asm__ __volatile__ ("" : "=e" (uid_cdc_state_msg) : "r" (uid_cdc_state_msg));
[11:16:42] <OndraSter_> not happening
[11:17:01] <jadew> well, "r" means one register
[11:17:06] <OndraSter_> tried b
[11:17:19] <OndraSter_> tried e
[11:17:28] <OndraSter_> on both, mixed ...
[11:18:02] <jadew> btw
[11:18:15] <jadew> you shouldn't set it as output as well
[11:18:28] <jadew> unless you want to change the location where it points to
[11:18:37] <OndraSter_> oh
[11:19:13] <jadew> you can change the contents of whatever it points to just fine, with out declaring it
[11:19:22] <OndraSter_> hah that works
[11:19:23] <OndraSter_> thanks
[11:19:26] <OndraSter_> __asm__ __volatile__ ("" : : "b" (uid_cdc_state_msg));
[11:19:28] <OndraSter_> let's see disassembly
[11:19:29] <jadew> np
[11:19:51] <OndraSter_> ARRGH
[11:19:54] <OndraSter_> and it still did not use it!
[11:20:03] <jadew> what?
[11:20:27] <OndraSter_> http://pastebin.com/FDhnjUvZ
[11:21:33] <jadew> what do you mean? it did just that
[11:21:44] <jadew> line 9 and 10
[11:21:53] <jadew> it loaded the address into r30 and 31
[11:22:14] <jadew> now you can use instructions that use Z
[11:43:54] <OndraSter> <jadew> what?
[11:43:54] <OndraSter> <OndraSter_> http://pastebin.com/FDhnjUvZ
[11:43:57] <OndraSter> bloody internet
[11:44:50] <OndraSter> text data bss dec hex filename
[11:44:51] <OndraSter> 5686 136 718 6540 198c XISP.elf
[11:44:53] <OndraSter> damn
[11:44:58] <OndraSter> with no serial code
[11:52:07] <OndraSter> WTF, how can rikusw's code work? I see no code that works with the endpoint data :o
[11:57:08] <OndraSter> oh I see
[11:57:14] <OndraSter> mega's USB is MUCH more different than xmega's
[12:03:06] <OndraSter> oh
[12:03:11] <OndraSter> I don't have the BOOTLOADER code :D
[12:13:21] <jadew> [19:08.00] <jadew> what?
[12:13:22] <jadew> [19:08.24] <OndraSter_> http://pastebin.com/FDhnjUvZ
[12:13:22] <jadew> [19:09.30] <jadew> what do you mean? it did just that
[12:13:22] <jadew> [19:09.41] <jadew> line 9 and 10
[12:13:22] <jadew> [19:09.50] <jadew> it loaded the address into r30 and 31
[12:13:22] <jadew> [19:10.11] <jadew> now you can use instructions that use Z
[12:13:29] <OndraSter> ah
[12:13:34] <OndraSter> RikusW just came home
[12:13:48] <OndraSter> RikusW, that + on your website I found only the "usb_lib.c"
[12:13:54] <OndraSter> not the bootloader itself?
[12:15:30] <OndraSter> jadew, no
[12:15:38] <RikusW> the bootloader itself is not on there
[12:15:47] <OndraSter> jadew, I want to FORCE it to use the Y pointer + displacement for all the std
[12:15:48] <OndraSter> instead sts
[12:15:53] <OndraSter> std = 2 bytes, sts = 4 bytes
[12:16:45] <jadew> then specify y
[12:17:19] <jadew> and I'm not sure what that displacement is, but if it's a known value, you can add/substract it from the pointer before passing it to asm
[12:17:36] <OndraSter> jadew, I want to make it to do this:
[12:17:49] <OndraSter> sts 0x1100, r1; sts 0x1101, r1 .... and so on
[12:17:49] <OndraSter> into
[12:18:13] <OndraSter> ldi yl, low(0x1100); ldi yh, high(0x1100); std y+0, r1; std y+1, r1
[12:18:15] <OndraSter> etc
[12:21:44] <jadew> see the list of constrains there: http://www.nongnu.org/avr-libc/user-manual/inline_asm.html
[12:22:08] <jadew> looks to me like you want to have access to the address as a number, so you probably need to pass it as such
[12:22:36] <jadew> so maybe... "O" ?
[12:23:30] <OndraSter> more like Q
[12:29:20] <RikusW> OndraSter: I think gcc use Y as stack pointer
[12:29:37] <RikusW> there is still X and Z
[12:29:59] <OndraSter> X can not be used for displacement
[12:30:00] <OndraSter> not sure about z
[12:30:08] <RikusW> Z can
[12:30:14] <OndraSter> Z can
[12:30:47] <RikusW> so now I have to do some coding for geofencing
[12:30:58] <RikusW> already have the basic polygon working
[12:31:20] <RikusW> and then that must go onto an AVR
[13:30:58] <Malinuss> So I have this problem: when compiling a sketch in arduino IDE, and uploading it using the teensy uploader, my uC pops up under COM3. When I compile some code using the AVRS, and upload it using the same teensy uploader, my uC disspaers from the device manager..
[13:31:11] <Malinuss> I can still upload new AVRS compiled files etc. with no problem
[13:31:32] <specing> And the problem is...?
[13:31:34] <Malinuss> when I after that upload a arduino-IDE compiled source, it's back at COM3 again...
[13:31:52] <Malinuss> specing, yeah well the problem is 1: WTF?! 2: can't communicate with it?
[13:32:21] <Malinuss> haha you are saying it like it's perfectly normal that I am abel to upload things to a device that even the OS can't detect
[13:32:34] <specing> well since you are using windoze you'll have to wait until other windows-users have mercy upon you
[13:32:41] <OndraSter> wat
[13:32:50] <OndraSter> windows AND teensy users
[13:33:07] <Malinuss> ?
[13:33:09] <Malinuss> so
[13:33:13] <specing> sucks to be you :D
[13:33:18] <Malinuss> lol
[13:33:32] <Malinuss> but you've gotta admit - it's pretty magical ;D
[13:33:48] <specing> not really
[13:34:24] <OndraSter> nope
[13:34:28] <OndraSter> XBoard + XIDE is much better
[13:34:35] <specing> :)
[13:34:48] <OndraSter> Malinuss, http://www.youtube.com/watch?v=jGRlGT1iK_U
[13:35:43] <specing> WTF OndraSter
[13:35:50] <Malinuss> OndraSter, whats going on? lol
[13:35:56] <specing> can't you put it up onto your server with HTML5?
[13:36:09] <OndraSter> I don't have HTML5 player
[13:36:17] <specing> oh yeez
[13:36:19] <OndraSter> Malinuss, XIDE early sample
[13:36:33] <OndraSter> http://myxboard.net
[13:36:38] <specing> <video src="file.avi"/>
[13:36:41] <specing> done
[13:36:42] <OndraSter> ;D
[13:36:55] <Malinuss> and why wouldn't I just buy a programmer and a chip?
[13:37:09] <OndraSter> because this chip does not fit breadboard
[13:37:14] <OndraSter> and programmer for it costs >$25?
[13:37:30] <OndraSter> you can still buy programmer
[13:37:31] <OndraSter> but tell me
[13:37:38] <Malinuss> well I can use the programmer the rest of my life. for unlimted amount of chips :)
[13:37:38] <OndraSter> how does it differ from teensy?
[13:37:45] <OndraSter> so you can with teensy
[13:37:54] <OndraSter> yet you seem to be enjoying arduno crappy IDE and USB bootloader
[13:38:05] <OndraSter> arduino*
[13:38:41] <Malinuss> OndraSter, haha do I look like I'm enjoying it?! if I've had a programmer first thing I would do was to get that bootlader burned away
[13:39:03] <OndraSter> haha
[13:39:09] <Malinuss> also, there is a reason that I'm trying to use AVRS and not arduino IDE
[13:39:18] <Malinuss> just not going so well, haha
[13:39:24] <OndraSter> What is AVRS?
[13:39:36] <OndraSter> I thought it was some arduino crap
[13:39:38] <Malinuss> atmel studio
[13:39:43] <OndraSter> that is AS
[13:39:45] <OndraSter> not AVRS :P
[13:39:54] <OndraSter> what is your programmer?
[13:39:55] <Malinuss> heard someone refering to it as AVRS ;D
[13:39:59] <Malinuss> I have no programmer
[13:40:14] <OndraSter> so how are you trying to upload the code there - using arduino?
[13:40:23] <yunta_> go for: atxmegaAxU + cheapest programmer (pdi - avrdragon?) + gcc
[13:40:24] <Malinuss> just a usb bootlader on the teensy. and the teensy uploader to upload them
[13:40:24] <OndraSter> AVRS = Atmel Studio <6 which was named AVR Studio...
[13:40:38] <OndraSter> yunta_, yeah, xboard ;D
[13:40:54] <OndraSter> cheapest programmer = Tom_itx 's
[13:40:59] <OndraSter> or RikusW 's U2S can do it too
[13:41:12] <Malinuss> so yeah. im using the porgram called "teensy uploader" to upload the compiled .hex
[13:41:19] <yunta_> OndraSter: looks cool
[13:41:21] <RikusW> Malinuss: it might move to COM4... that happens if COM3 is still open in an app and the AVR resets
[13:41:24] <OndraSter> teensy has ft232rl I presume?
[13:41:40] <RikusW> s/resets/power cycles
[13:42:00] <yunta_> OndraSter: I just solder dragon to xmega in air for experiments
[13:42:07] <OndraSter> hehe
[13:42:14] <OndraSter> yunta_, I am thinking about doing soft-debugging
[13:42:17] <Malinuss> RikusW, I have the device manager open the whole time. never seen any COM4..
[13:42:23] * RikusW don't ever solder the dragon pcb
[13:42:26] <OndraSter> the code would run on the PC and would transmit to the xboard just the IO stuff
[13:42:31] <RikusW> apart from the HVPP headers
[13:42:45] <Malinuss> only COM1 and LPT1, which obviously just are there...
[13:43:10] <Malinuss> and when I upload a arudiono-compiled sketch. I get the COM3 there
[13:43:22] <Horologium> OndraSter, teensy has a usbAVR onboard.
[13:43:43] <Malinuss> if I upload a AS compiled sketch - the COM3 disspaers nothing else comes in it place
[13:44:08] <yunta_> OndraSter: what's soft-debugging?
[13:44:15] <OndraSter> <OndraSter> the code would run on the PC and would transmit to the xboard just the IO stuff
[13:44:25] <OndraSter> it would have of course timing issues
[13:44:31] <OndraSter> but you would be able to set up breakpoints etc
[13:44:34] <OndraSter> but that is far future
[13:44:42] <Horologium> Malinuss, sounds like something is wrong with the program you are uploading.
[13:44:59] <Malinuss> Horologium, nope, works just fine.
[13:45:29] <Horologium> thought you said it didn't...that the virtual com port went away.
[13:45:54] <yunta_> Malinuss: try it on real os
[13:46:16] <Malinuss> no I've said the virtual port went away. The program works just fine. and the funny thing is that I can upload to it, even though there are no device in the device manager Horologium
[13:46:22] <RikusW> I got my microscope here -> http://www.elmulab.co.za/microscopes.htm#biological
[13:46:22] <RikusW> SEAL 700 Biological Microscope
[13:47:29] <OndraSter> RikusW, fail, I forgot to call something in the main() and now the code has grown to 6.2kB! after optimizing :(
[13:47:31] <Malinuss> RikusW, nice. Looks like it has all the standard things needed
[13:48:16] <OndraSter> (I forgot to call udc_start :D)
[13:48:20] <RikusW> OndraSter: look at my U2S_Debug code, it does what you propose
[13:48:26] <OndraSter> oh
[13:48:26] <OndraSter> nice
[13:48:27] <RikusW> <OndraSter> the code would run on the PC and would transmit to the xboard just the IO stuff
[13:48:34] <RikusW> very very simple too
[13:48:46] <OndraSter> I actually did something similar for manual operation like almost a year ago
[13:49:00] <OndraSter> when I was debugging something which I could not debug from atmel studio because any pause = burning LEDs
[13:49:06] <RikusW> I used XSLT to generate most of the header...
[13:49:36] <RikusW> but as you said, timing issues will prevent high speed apps
[13:49:58] <RikusW> actual app runs in VS
[13:50:08] <OndraSter> yay nice
[13:50:15] <OndraSter> it emulates jtag ice?
[13:50:30] <Malinuss> before I get forgotten - any tips to what I could do?
[13:51:06] <Horologium> does the code you are uploading actually have the usb code in it for setting up and running a virtual com port?
[13:51:06] <RikusW> OndraSter: no, but it appears that way
[13:51:15] <RikusW> you can access any register from VS
[13:51:18] <RikusW> via USB
[13:51:21] <OndraSter> nice
[13:51:30] <OndraSter> will look into it after I drop the USB code below 3.5kB :D
[13:51:36] <RikusW> SEAL 300C Stereo Microscope would be nice for smd work :)
[13:51:44] <Malinuss> Horologium, no. I assumed all that was automatic?
[13:51:46] <OndraSter> I found the difference between mega and xmega btw - mega does a lot of handling in hardware
[13:51:54] <Horologium> Malinuss, nope...
[13:52:13] <OndraSter> I will need to adjust the startup code though so it does not overwrite the USB descripts and all of that
[13:52:16] <Horologium> Malinuss, it's probably included in the ardweeny code, but if you built something in atmel studio and didn't add the usb code then it's not there.
[13:52:39] <Horologium> this is a problem with ardweeny....it abstracts too much and you just start assuming what it does behind the scenes is done everywhere.
[13:52:55] <Malinuss> I see. thanks, now I have something to go by
[13:53:27] <yunta_> OndraSter: cdc in 3.5k?
[13:53:37] <OndraSter> yes
[13:53:45] <yunta_> nice
[13:53:55] <OndraSter> I can drop the atmel's clock stuff and replace it with my own
[13:53:56] <yunta_> interrupt driven? fifo?
[13:53:57] <OndraSter> which is smaller
[13:54:00] <OndraSter> of course
[13:54:04] <OndraSter> mega has got it much simpler
[13:54:13] <OndraSter> no fifo I think, extra memory just for USB module etc
[13:54:20] <OndraSter> stock code = 6.2kB or thereabouts
[13:54:24] <OndraSter> will be pain really
[13:54:31] <OndraSter> I will strip as most as possible in C
[13:54:33] <OndraSter> then move to ASM
[13:54:34] <Malinuss> what would the normal 2 bit stop code be?
[13:54:39] <RikusW> yunta_: I did it in 800 bytes
[13:54:46] <Malinuss> for usart
[13:54:47] <yunta_> asm?
[13:54:48] <RikusW> on mega32u2
[13:54:51] <RikusW> yes
[13:54:54] <yunta_> uh
[13:54:59] <yunta_> 2 months of coding? :)
[13:55:13] <RikusW> a bit less I hope ;)
[13:55:20] <RikusW> was a long time ago
[13:55:54] <yunta_> my first attempt at usb gave me 2.1k usb (custom class), aes encrypting, checksumming bootloader
[13:55:57] <OndraSter> http://pastebin.com/qvYSyHEb
[13:55:57] <OndraSter> so
[13:55:58] <OndraSter> much
[13:55:59] <OndraSter> crap!
[13:56:19] <OndraSter> http://pastebin.com/a6BNva0i
[13:56:21] <OndraSter> does the same job.
[13:56:41] <yunta_> lol, cool
[13:56:43] <OndraSter> (+ few registers for USB clock enabling)
[13:57:04] <RikusW> yunta_ my stk500 bootloader + CDC = 2k
[13:57:15] <yunta_> nice
[13:58:29] <yunta_> RikusW: but that's on mega, not xmega?
[13:58:37] <RikusW> yunta_ try cracking the AES on the AVRDragon fw files :)
[13:58:42] <RikusW> mega32u2
[13:58:58] <RikusW> http://sites.google.com/site/megau2s/home
[13:59:24] <yunta_> honestly, I didn't even know there are megas with usb
[13:59:48] <OndraSter> there are/were many
[13:59:52] <Horologium> there are several.
[13:59:55] <OndraSter> at90usb.. AVR core too
[14:00:02] <OndraSter> then mega *u*
[14:00:07] <yunta_> looks like I wasted my time on learning xmega
[14:00:14] <OndraSter> not really
[14:00:19] <OndraSter> xmega is cheaper and more powerful :P
[14:00:33] <yunta_> oh, it is powerful all right
[14:00:55] <OndraSter> Offtopic: http://sphotos-h.ak.fbcdn.net/hphotos-ak-snc6/178479_10151184208784823_244979164_o.jpg
[14:01:19] * yunta_ votes for more offtopics
[14:01:26] <OndraSter> hmm?
[14:01:43] <yunta_> I like it
[14:09:03] <Horologium> Malinuss, when the teeny is in programming mode it shows up as a hid device I believe...
[14:30:36] <Malinuss> Horologium, no, no hid devices appear to come/go when I connect/disconnect it
[14:44:37] <OndraSter> IT WORKSSS!
[14:45:14] <OndraSter> hot glue ftw
[14:45:17] <OndraSter> for securing things
[14:45:30] <prpplague> hehe
[14:54:45] <OndraSter> btw megal0maniac_afk I will be going from yellow + red to green + red LEDs
[14:55:03] <OndraSter> switching manufacturer..
[14:58:35] <OndraSter> arrgh
[14:58:41] <OndraSter> I think I know why my code didn't enumerate
[14:58:52] <OndraSter> because vmware broke my USB
[14:58:53] <OndraSter> AGAIN
[15:00:02] <OndraSter> it broke the NEC USB3
[15:03:04] <OndraSter> no wait
[15:03:05] <OndraSter> those work.
[15:03:11] <OndraSter> USB2 port does not work
[15:07:17] <yunta_> why would you use vmware?
[15:07:24] <OndraSter> what else?
[15:07:27] <OndraSter> hyperv does not run on w7
[15:07:39] <yunta_> w7?
[15:07:44] <yunta_> ah, windows
[15:07:44] <OndraSter> w7 x64 even
[15:07:45] <yunta_> I'm sorry
[15:16:37] <topi`> hi. anyone developing on windows with avrstudio?
[15:17:39] <topi`> when I'm adding my .ihex files from my unix machine to a zip file, will Windows automatically convert the linefeeds (LF -> CR/LF) correctly so that Notepad will show the text correctly under windows?
[15:17:49] <topi`> I'm only asking because currently I can't test on windows
[15:18:31] <topi`> and I know my work mate is developing on AVR studio on windows.
[15:18:31] <OndraSter> ugh
[15:18:39] <OndraSter> AFAIK AS6 can work with regular lf
[15:18:48] <Casper> topi`: should work
[15:19:13] <topi`> well, that's good news then :) I'm going to sleep now, will send the stuff to him and hope it'll work right out of the box in the morning
[15:19:50] <topi`> thanks for help :) he rises up early, I start very late, so we're out of sync ;)
[15:21:31] <yunta_> just fire him
[15:21:44] <yunta_> ;)
[15:23:31] * Casper tries to understand how this gate drive transformer work.... and it's drive circuit
[15:36:35] <OndraSter> well this is awkward
[15:36:39] <OndraSter> even the basic sample does not work :P
[15:36:45] <OndraSter> it enumerates
[16:34:08] <OndraSter> after having a good clean of my hair I can say: "So where did I left off with my own USB stack."
[17:05:24] <OndraSter> megal0maniac_afk, http://pastebin.com/JBaVfJqz
[17:05:28] <OndraSter> what is gcc doing ?!
[17:05:29] <OndraSter> it is on -Os
[17:06:56] <specing> could rewrite that in 20 bytes
[17:07:53] <yunta_> did it unroll your loop with -Os ???
[17:08:21] <specing> no it didn't
[17:08:33] <OndraSter> yunta_, that is not unrolled.
[17:08:41] <OndraSter> Rolled the code has 2080 bytes
[17:08:49] <OndraSter> unrolled with -O3 it is 3100 bytes
[17:10:02] <yunta_> XBOOT_ENDPOINTS == 3?
[17:10:11] <specing> first four instructions are so fucking retarded I cannot even begin explaining...
[17:10:31] <OndraSter> yunta_, yes
[17:10:39] <OndraSter> or is it unrolled..
[17:10:41] <OndraSter> if yes, then it is stupid
[17:11:51] <specing> Oh wait
[17:11:55] <specing> it actually is unrolled
[17:12:09] <OndraSter> it is
[17:12:19] <OndraSter> -fno-unroll-loops and -fno-peel-loops does not help either
[17:12:36] <specing> stupid gcc
[17:12:45] <yunta_> did you..... make clean after changing opts? :)
[17:12:52] <specing> I told you to write a high level assembler long ago
[17:13:00] <OndraSter> yunta_, AS6 does all of that automatically.. yes
[17:15:01] <Malinuss> AVRS xD?
[17:15:25] <OndraSter> AS6*
[17:42:49] <Malinuss> static uint8_t PROGMEM device_descriptor[] = {xxxx}; Error 1 variable 'device_descriptor' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
[17:42:59] <Malinuss> what is dis. I don't even...
[17:43:18] <Malinuss> OndraSter, you used AS6, right?
[17:51:57] <Horologium> it means you can't put a variable in program memory.
[17:52:16] <Horologium> PROGMEM is flash...not changeable at runtime(mostly)
[17:52:40] <Horologium> so you can't assign a variable to a flash location...it must be a constant.
[17:54:57] <Malinuss> ah yeah
[17:54:57] <Malinuss> doh
[17:57:36] <specing> mind boggling
[17:58:17] <Horologium> hmm.
[17:58:35] <Horologium> fill skull with dice covered in letters rather than numbers....
[17:58:40] <Horologium> interesting concept.
[17:58:46] <Horologium> :}
[18:02:39] <specing> I cannot remember where I put the toolchain build script...
[18:13:55] <Malinuss> any idea how to get your device from HID -> serial port ;/. I can listen to the HID and send bits to it. Does it require a lot of wrok to make it serial?
[18:18:01] <e2580> we have launched our open source hardware encrypted storage device on indiegogo who wants to see it
[18:18:02] <Horologium> you need CDC
[18:18:06] <Horologium> not HID.
[18:18:18] <Horologium> no thanks e2580
[18:18:54] <e2580> http://www.indiegogo.com/CryptX2 its based on the at32uc3a3256s
[18:24:12] <Casper> that sound like unlawfull spam
[18:24:47] <Horologium> boil em in oil!
[18:25:04] <Horologium> but, he has been in here a time or three advertising it and looking for help programming it.
[18:26:10] <w|zzy> if he is part of the community, or least idles here I am happy.
[18:43:27] <e2580> its an open source project, based on the at32uc3a3256s mcu (avr), hardly what i would call spam for this chan
[18:45:13] <Casper> e2580: self promotion of a product without any reason to promote it fall in the spam category
[18:47:46] <w|zzy> ooo.. its a kickstarter.
[18:49:14] <e2580> yes, indiegogo is like kickstarter
[18:49:38] <e2580> actually larger than kickstarter
[18:49:47] <w|zzy> Fair.
[18:50:20] <w|zzy> I dont see you linking this as spam provided you are a community member.. Just dont link it more than once a week or so unless directly asked about it.
[18:51:21] <w|zzy> Thats just my opinion. Dunno who is in charge :P
[18:51:24] <e2580> i ask before posting the link, and we will only be promoting while the indiegogo campain is running
[18:51:56] <e2580> and we are somewhat active here, not just spamming
[18:52:49] <w|zzy> :)
[18:53:02] * Casper wants a data storage place, that is free, with like 20G of storage...
[18:53:06] <Casper> ... I have yet to find one
[18:56:38] <w|zzy> Skydrive?
[18:58:05] <w|zzy> hmmm.. thats $10/year
[18:58:18] <w|zzy> Is it just for offsite backup/
[18:58:19] <w|zzy> ?
[18:58:38] <Casper> yeah
[18:58:53] <Casper> basically I have lots of pics that I don't want to lose in case of a fire
[18:59:33] <w|zzy> Do you have a friend you trust with a server?
[18:59:45] <w|zzy> at their home?
[18:59:51] <Casper> that's plan b
[18:59:52] <w|zzy> You could always rsync from your server to theirs
[19:00:40] <w|zzy> i personally just have a hdd sitting at the inlaws
[19:00:51] <w|zzy> which i update occasiobally.
[19:05:08] <Casper> that could be actually extremelly easy to do, I'm considering to share the net with my cousin, which live behind our house
[19:05:26] <Casper> so all what could have to do is put an hd somewhere there
[19:06:43] <w|zzy> yeah..
[19:06:50] <w|zzy> A baby nas system or whatnot. and if its over wifi even better
[19:07:02] <w|zzy> That will protect you from a house fire, maybe not a town fire though
[19:11:28] <Horologium> gmail
[19:11:32] <Horologium> just email them to yourself.
[19:11:37] <Horologium> setup a couple of gmail accounts.
[19:13:37] <Casper> Horologium: I have too much for gmail
[19:13:45] <Casper> but yeah, I'm considering that
[19:13:50] <Casper> maybe a few google drive account
[19:14:05] <Casper> now, movie time, I wonder what I'll watch
[19:15:07] <Horologium> you said 20 gigs..that's about 5 gmail accounts.
[19:15:45] <Horologium> or 3.
[19:15:51] <Horologium> I got 10GB per gmail account right now.
[19:21:35] <Malinuss> So my chip is set up with COM3, still I get no messages from it, even though I set up the USART as I should (example in datasheet)... http://pastebin.com/vNJSt1uV
[19:22:49] <Malinuss> So I can see the device in COM3, so I guess the error is somewhere in the USART code, no idea where though. I went trough it multiple times.
[19:26:52] <Tom_itx> what chip?
[19:29:34] <Horologium> Malinuss, you are seeing that COM3 via the USB connection?
[19:30:22] <Malinuss> Horologium, yes
[19:30:26] <Horologium> that is NOT the USART...that is a virtual USB based com port...totally not the same thing as using the USART...with that it must be physically connected, through a level converter like the max232, to a physical com port.
[19:30:36] <Malinuss> ah
[19:30:43] <Malinuss> so what would I do instead? ;D
[19:31:06] <Horologium> well, having no clue what you have there other than a teensy with some kind of ardweeny code, I have no clue what you need to do next.
[19:31:14] <Horologium> I avoid the whole ardweeny thing like the plague.
[19:31:37] <Horologium> I do believe there is an arduino channel around here somewhere, however.
[19:31:40] <Malinuss> Horologium, I have no ardweent code at all
[19:31:51] <Malinuss> this all all pure C
[19:31:54] <Malinuss> avr-C
[19:32:09] <Tom_itx> we will let you stay then
[19:32:12] <Horologium> then you need to send the data via the USB connection.
[19:32:13] <Malinuss> lol the arduino channel kick me in here because I have nothing arduino ;D
[19:32:29] <Horologium> you were talking about how the arduino code worked earlier.
[19:32:40] <Malinuss> Horologium, so I forget about the USART? Or can I tie it with USB somehow?
[19:32:54] <Horologium> the USART doesn't work through the USB connection.
[19:33:09] <Horologium> without knowing what USB software you are using I have no way of knowing how to use it.
[19:33:30] <Malinuss> okay. so I need to do it purely with the USB
[19:33:47] <Malinuss> I'm not really using any "software" for the usb
[19:34:03] <Horologium> has to be some kind of software or it wouldn't enumerate as a usb com port.
[19:34:37] <Tom_itx> #define baud_prescale (F_CPU / 16 / baud-1)
[19:34:39] <Horologium> there has to be some kind of USB stack on the AVR for it to do that.
[19:34:44] <Tom_itx> is what i use
[19:35:01] <Tom_itx> did you define F_CPU?
[19:35:03] <Malinuss> Tom_itx, don't think it matters, since I'm not using the USART....
[19:35:12] <Malinuss> yeah I did
[19:35:18] <Horologium> Tom_itx, he has some USB CDC stack.
[19:35:24] <Tom_itx> ok
[19:36:19] <Malinuss> Horologium, but I'm not using any software like in: im not using any external library (other then standard avr-c libraries), or have any program running or anythign like that. To emulate the COM3
[19:36:54] <Horologium> Malinuss, so, you have a new AVR with built in USB CDC stack?
[19:37:33] <Malinuss> idk. http://www.pjrc.com/teensy/schematic.html
[19:37:35] <Horologium> trying to find out what you have.
[19:37:52] <Malinuss> http://www.pjrc.com/teensy/schematic2.gif
[19:38:07] <Malinuss> and the chips datasheet: http://www.pjrc.com/teensy/atmega32u4.pdf
[19:38:08] <Horologium> which teensy do you have?
[19:38:17] <Malinuss> teensy 2
[19:38:27] <Malinuss> the two link I send should explain it
[19:39:14] <Horologium> and what software are you using?
[19:39:21] <Horologium> on the chip.
[19:39:22] <Tom_itx> 1287 chip?
[19:39:31] <Malinuss> software? on the chip?
[19:39:37] <Malinuss> you mean bootlader?
[19:39:39] <Tom_itx> he's got a proprietary bootloader on that
[19:39:42] <Horologium> because the teensy has a usb bootloader on it.
[19:40:19] <Horologium> and that uses a CDC stack.
[19:41:00] <Malinuss> okay. so the bootlader can emulate the CDC stack, or whatever you call it ;D
[19:41:06] <Malinuss> r-right?
[19:41:09] <Horologium> yes.
[19:41:31] <Horologium> are you compiling against the usb_serial library?
[19:42:22] <Malinuss> Horologium, I am using some of the code from the teensy usb_serial library, yes
[19:42:31] <Horologium> OK THEN!
[19:42:32] <Horologium> sheesh.
[19:42:51] <Horologium> that is the USB stack for CDC that you are using.
[19:43:00] <Malinuss> okay ;D
[19:43:01] <Horologium> that is NOT part of standard avr-C
[19:43:13] <Malinuss> s-sorry
[19:43:14] <Horologium> that is an external library.
[19:43:31] <Horologium> now that we have that cleared up, you might want to read the docs that come with that library.
[19:43:34] <Horologium> and I'm off to bed.
[19:43:42] <Malinuss> okay, thanks.
[19:43:43] <Malinuss> night
[19:43:45] <Malinuss> >docs
[19:43:45] <Tom_itx> or ask paul
[19:43:47] <Malinuss> haha
[19:43:54] <Malinuss> docs that come with that library?
[19:43:56] <Malinuss> haha, good one
[19:45:05] <Malinuss> Tom_itx, yeah, he seems like a nice guy. Maybe I'll write him a mail
[19:45:26] <Tom_itx> dean didn't seem to feel that way