#avr | Logs for 2015-08-20

Back
[09:36:31] <kobboi> what obvious compilation mistake am i making again? :/ https://bpaste.net/show/1101886ec576
[09:36:46] <kobboi> lcd.o objdump shows that lcd_init is in there
[10:00:03] <kobboi> i shouldnt have wanted to turn it into a library, compiling all c files in one go works fine
[10:51:56] <twnqx> kobboi: you didn't generate a library, but an object file
[10:52:30] <twnqx> so instead of trying to pull it in with -llcd, you just put the .o on the gcc command line without a parameter
[10:52:52] <twnqx> or wait, i am blind
[10:52:53] <twnqx> >_>
[10:53:29] <twnqx> still, tried to pull in the .o directly?
[10:54:01] <twnqx> i am not used to static libraries any more :X
[14:27:47] <phinxy> i have this super awesome program loaded on my atmega but i dont have the source left. i guess ill have to learn asm
[14:28:35] <phinxy> i guess ill just save the binary so i can show it off to people
[14:43:07] <antto> real h4x0rz will understand..
[14:43:30] <antto> all the fake ones will ask for source code
[16:59:55] <fobboyandy> anyone here working on vusb stuff?
[18:20:06] <Jartza> oh
[18:20:10] <Jartza> 2am again
[18:20:23] <fobboyandy> bed time?
[18:20:34] <Jartza> soonish
[18:21:00] <fobboyandy> do you do vusb stuff again? i forgot
[18:21:27] <Lambda_Aurigae> I've used vusb in the past.
[18:21:29] <Lambda_Aurigae> nifty toy.
[18:21:32] <Jartza> not currently, tried it few times with attiny
[18:21:32] <fobboyandy> i've been trying to understand how to use vusb for like a whole week now
[18:21:35] <Jartza> https://www.dropbox.com/s/wjr7k4ip8j3r82x/MOV_2897.mp4?dl=0
[18:21:35] <Lambda_Aurigae> not something I would use for a production environment.
[18:21:43] <fobboyandy> my head hurts and i still can't write my own code from scratch
[18:21:49] <Jartza> I'm currently up with that :)
[18:22:00] <Lambda_Aurigae> Jartza, nice.
[18:22:07] <Lambda_Aurigae> fobboyandy, I always modded existing projects.
[18:22:09] <Jartza> writing blog, making pcb
[18:22:24] <fobboyandy> lambda_aurigae: how did you start learning it? not enough tutorials online
[18:22:32] <Lambda_Aurigae> I read the code.
[18:22:40] <Jartza> http://pastie.org/private/lfjwtrsxmt7qfquxocbwq
[18:22:51] <Lambda_Aurigae> for multiple example projects.
[18:22:53] <Jartza> that's the test-code that runs on video
[18:23:02] <Lambda_Aurigae> Jartza, sweet.
[18:23:17] <Lambda_Aurigae> now, put that on another attiny and use it to feed the display!
[18:23:18] <fobboyandy> jartza: dude you've gotten pretty far. last time you posted, it was printing messed up words from a text
[18:23:41] <Lambda_Aurigae> fobboyandy, actually, last time he posted it was very sweet and only a day or two ago.
[18:24:06] <fobboyandy> lambda_aurigae: i've been doing that for a week now. but there's stuff that i can't figure out and i can't find the answer online
[18:24:22] <fobboyandy> oh haha well last time I saw him post it
[18:24:25] <Lambda_Aurigae> like what stuff?
[18:24:41] <fobboyandy> okay so i've been reading some code
[18:24:42] <Lambda_Aurigae> to get real support you have to pay obdev
[18:24:54] <fobboyandy> and i notice usbFunctionSetup()
[18:25:21] <fobboyandy> the definition is defined in main.c but it isn't called by any other function
[18:25:24] <fobboyandy> where does it actually get used?
[18:25:39] <Lambda_Aurigae> let me grab a vusb project.
[18:25:39] <Jartza> Lambda_Aurigae: yeah, already used that with nucleo :)
[18:25:41] <fobboyandy> it's defined but nothing invokes it. i don't see the reason of defining a function not used
[18:25:45] <Lambda_Aurigae> I haven't touched it in two years.
[18:26:38] <Jartza> https://drive.google.com/file/d/0B2dTzW9TMeBxUUJkV1FJNUJxdkU/view?usp=docslist_api
[18:26:48] <Jartza> that's the setup :)
[18:27:29] <fobboyandy> Jartza: it controls your monitor through the usb? i thought it was hooked up through vga or hdmi o.O
[18:27:45] <Jartza> no
[18:28:00] <Jartza> well, that's usb-ttl-serial adapter
[18:28:13] <Lambda_Aurigae> usbdrv.c
[18:28:16] <Jartza> but the attinys draw the vga pic
[18:28:26] <Lambda_Aurigae> replyLen = usbFunctionSetup(data);
[18:28:48] <Lambda_Aurigae> grep is a wonderful toy.
[18:28:49] <fobboyandy> lamba_aurigae: but usbdrv.c doesn't include main.c
[18:28:56] <fobboyandy> does linking work that way?
[18:29:05] <Jartza> and in that demo my pc is sending data to uart (that python code)
[18:29:15] <Lambda_Aurigae> main.c does link or include or reference usbdrv.c though...
[18:29:22] <Lambda_Aurigae> it's all linked together.
[18:30:10] <fobboyandy> if main.c includes usbdrv.c in some way but usbdrv.c doesn't include main.c, can a function defined in main.c still be accessed by usbdrv.c?
[18:30:25] <Lambda_Aurigae> it's being used as a prototype...or something like that.
[18:31:02] <Lambda_Aurigae> I can't say as I know how it's fully implemented by any means.
[18:31:04] <fobboyandy> is it because if the prototype of a function is supplied, it doesn't matter where the function is defined?
[18:31:30] <Jartza> linker takes care of that in the end
[18:31:36] <Lambda_Aurigae> but it's referenced in main.c, usbdrv.c, and usbconfig-prototype.h
[18:31:53] <fobboyandy> yeah it's starting to make sense now actualy
[18:32:45] <fobboyandy> how long does it take to learn vusb and write a code from scratch?
[18:33:09] <Lambda_Aurigae> no clue on how long.
[18:33:22] <Lambda_Aurigae> read the comments in the files...specially usbdrv.h
[18:33:24] <fobboyandy> am trying to write a really simple HID and i'm having a difficult time. just a program that spams mouse click
[18:33:38] <Lambda_Aurigae> look at one of the mouse apps.
[18:33:40] <Lambda_Aurigae> there are lots of them.
[18:34:21] <fobboyandy> some of the examples have too many functions. so overwhelming making it hard to understand
[18:34:39] <fobboyandy> do you have to understand how the usb works fully? before you can actually understand what the functions are trying to do?
[18:34:47] <Lambda_Aurigae> no.
[18:34:54] <Lambda_Aurigae> it helps but you don't have to understand how it works.
[18:35:24] <Lambda_Aurigae> I read the usb spec and the igorplug usb code and was using that long before vusb came about.
[18:35:42] <Lambda_Aurigae> the core of the vusb stuff is actually written in assembly anyhow...then wrapped in C.
[18:36:18] <Lambda_Aurigae> https://courses.cit.cornell.edu/ee476/FinalProjects/s2010/ss868_jfe5/ss868_jfe5/
[18:36:22] <Lambda_Aurigae> mouse thingie.
[18:36:59] <fobboyandy> lol that's far too much for me right now
[18:37:08] <Lambda_Aurigae> just grab the code.
[18:37:16] <fobboyandy> maybe i just need more time. i've only done this for a week
[18:37:42] <Lambda_Aurigae> https://github.com/ksz2k/irmouse
[18:37:57] <Lambda_Aurigae> how long have you been working with microcontrollers in general?
[18:38:03] <fobboyandy> 2 weeks
[18:38:14] <fobboyandy> the same day you told me not to say "u" and say "you"
[18:38:27] <Lambda_Aurigae> because, really, you should understand the microcontroller rather well before you will be able to do much with advanced projects like vusb.
[18:38:48] <Lambda_Aurigae> learn to walk before trying to run.
[18:39:06] <fobboyandy> well i already know how to do i/o stuff
[18:39:07] <fobboyandy> no fun
[18:39:30] <Lambda_Aurigae> I teach microcontrollers, electronics, and robotics to kids from about 12 to 16 years old.
[18:39:40] <Lambda_Aurigae> they don't touch usb for the first 6 months.
[18:40:04] <fobboyandy> wow
[18:40:07] <fobboyandy> kids can learn this stuff
[18:40:08] <fobboyandy> ?
[18:40:12] <Lambda_Aurigae> of course.
[18:40:22] <Lambda_Aurigae> I taught myself electronics starting at age 8
[18:40:37] <fobboyandy> i was still playing super mario at 8
[18:40:49] <fobboyandy> i wasted my life
[18:40:52] <Lambda_Aurigae> at age 16 I built a 4 bit computer from 74xx series chips.
[18:41:02] <Lambda_Aurigae> have never played super mario.
[18:41:19] <Lambda_Aurigae> although, the first video game we had was a used pong when I was about 12.
[18:41:31] <Lambda_Aurigae> maybe 14.
[18:41:58] <fobboyandy> so is teaching what you do everyday?
[18:42:05] <fobboyandy> or is it just something you do for fun
[18:42:05] <Lambda_Aurigae> nope.
[18:42:09] <Lambda_Aurigae> every other weekend.
[18:42:11] <Lambda_Aurigae> for fun.
[18:42:35] <fobboyandy> am guessing you work for google or apple
[18:42:44] <Lambda_Aurigae> we do some playing and learning on a few things for a few hours on a saturday or sunday afternoon
[18:42:55] <Lambda_Aurigae> then they take a kit home and play with it during the week.
[18:42:57] <Lambda_Aurigae> nope.
[18:43:00] <Lambda_Aurigae> I work for Xerox actually.
[18:43:17] <fobboyandy> wow
[18:43:23] <fobboyandy> big company
[18:43:35] <Lambda_Aurigae> I fix copiers for a living...well, mostly I install copiers and make them talk to computers.
[18:44:33] <Lambda_Aurigae> I work for Premier Office Equipment which is part of the RK Dixon family of companies which is a wholly owned subsidiary of Global Imaging Systems which is a wholly owned subsidiary of Xerox Corp.
[18:44:41] <Lambda_Aurigae> ultimately, I'm a xerox employee.
[18:45:04] <Lambda_Aurigae> I'm the Lead Analyst for the state of Iowa and part of western Illinois.
[18:45:04] <fobboyandy> how long have you worked there?
[18:45:11] <Lambda_Aurigae> 7 years.
[18:45:22] <Lambda_Aurigae> well,,,for Xerox, 4 years.
[18:45:29] <Lambda_Aurigae> for Premier Office Equipment, 7 years.
[18:45:43] <fobboyandy> so you self taught yourself all this?
[18:45:46] <Lambda_Aurigae> we were bought by Xerox/Global just over 4 years ago.
[18:45:59] <Lambda_Aurigae> I'm 98% self taught, yes.
[18:46:12] <Lambda_Aurigae> I've taken a few computer courses but always knew more than the instructors did.
[18:46:23] <Lambda_Aurigae> they hate it when I correct them.
[18:46:31] <Lambda_Aurigae> specially when it turns out I'm right.
[18:46:41] <Lambda_Aurigae> programming is a hobby
[18:46:51] <fobboyandy> haha maybe it's the way you said it x
[18:46:53] <fobboyandy> xD
[18:47:12] <Lambda_Aurigae> computer networking and making things work together is what I do best.
[18:47:35] <Lambda_Aurigae> I've been told many times that I need to apply for the government job of making alien tech work.
[18:47:57] <Lambda_Aurigae> mainly because I can walk into a situation with software and hardware I've never seen and figure out how to make it work.
[18:48:06] <fobboyandy> you should
[18:48:15] <fobboyandy> that would be more exciting
[18:48:35] <Lambda_Aurigae> also helps that I read 100 to 200 pages of tech manuals a day.
[18:48:45] <Lambda_Aurigae> or,,,technical type stuff.
[18:48:58] <Lambda_Aurigae> right now I'm reading through a book on Lua programming
[18:49:09] <fobboyandy> do you do any circuit stuff?
[18:49:13] <fobboyandy> or more programming
[18:49:16] <Lambda_Aurigae> both.
[18:49:18] <Lambda_Aurigae> either
[18:49:19] <Lambda_Aurigae> or
[18:49:19] <Lambda_Aurigae> and
[18:49:21] <Lambda_Aurigae> yeah.
[18:49:31] <Lambda_Aurigae> make my own circuit boards on occasion.
[18:49:45] <Lambda_Aurigae> haven't done that in a couple of years but haven't needed to really.
[18:50:03] <Lambda_Aurigae> mostly I build and teardown and rebuild on solderless breadboards.
[18:50:32] <Lambda_Aurigae> long as I stay at 33MHz or slower I'm usually ok with breadboards.
[18:50:55] <fobboyandy> you do high frequency stuff?
[18:51:01] <Lambda_Aurigae> not usually.
[18:52:12] <Lambda_Aurigae> fastest crystal I have is 33MHz.
[18:53:17] <fobboyandy> i see i see
[18:53:32] <Lambda_Aurigae> to me high frequency would be 100MHz or faster.
[18:53:32] <fobboyandy> i ordered an rf module
[18:53:48] <fobboyandy> 433mhz but they receiver deals with that
[18:53:49] <Lambda_Aurigae> nrf2401 series are nice little modules.
[18:54:01] <Lambda_Aurigae> 2.4GHz modules.
[18:54:07] <fobboyandy> so not like i have to really worry about what frequency it runs at
[18:54:12] <Lambda_Aurigae> bit pricier than 433 but still.
[18:54:19] <fobboyandy> no clue what those are yet
[18:54:20] <Lambda_Aurigae> the nrf2401 stuff is 2-way
[18:54:31] <Lambda_Aurigae> digital transceivers.
[18:54:41] <Lambda_Aurigae> spi interfaced.
[18:55:24] <fobboyandy> too fast for my purposes
[18:56:40] <fobboyandy> wanna help me look at a usbsetupfunction()?
[18:56:58] <Valen> I once manually clocked config and a packet into one of those nrf devices
[18:57:16] <Valen> switch up, push button, switch down, push button
[20:22:21] <milk_base> wow, #chan is really getting out of hand
[21:38:10] <rue_school> ?
[22:46:45] <fobboyandy> anyone use oddebug in vusb? i have no clue why you would need debugging in vusb
[22:47:34] <rue_school> no i
[22:47:36] <rue_school> not i
[22:49:42] <fobboyandy> you don't use it?