#avr | Logs for 2015-02-28

Back
[08:37:38] <jk__> why does my avrdude is loosing the connection after 50% when i try sudo -E avrdude -p m16 -e -u -U flash:w:main.hex
[08:38:55] <x29a> flaky connection?
[08:41:25] <jk__> well reading works fine
[08:41:48] <EI24> seems very weird that you can only load to r16-31 with LDI instruction.. seems like a instruction you would want to be able to use on all register.
[08:41:49] <jk__> it says it has 50% much faster than it reads up to 50%
[08:42:26] <EI24> registers*
[08:42:29] <x29a> jk__: did you try the verbose modes of avrdude?
[08:44:53] <jk__> x29a: yep, but i don't see anything that would help me further
[08:45:26] <jk__> EI24: i only tried to let a led blink with _delay_ms
[08:47:11] <jk__> erasing seems also to work
[16:49:29] <xa0z> Hello. I'm looking for a keyboard emulator firmware for atmega32u2 - that I can simulate a keyboard, and key presses to the host over usb when the device is connected, enabled/loaded.
[16:55:31] <specing> xa0z: LUFA probably has such an example project
[16:56:49] <xa0z> specing, hmm, I'll look there, thank you.
[18:10:30] <ferdna> so yeah i was thinking on getting hershey with almonds!!! and an orange powerade!!
[18:12:04] <Lambda_Aurigae> reeses all the way!
[18:12:17] <Lambda_Aurigae> and a yoohoo.
[18:14:41] <ferdna> Lambda_Aurigae, what tha heck is a yoohoo
[18:15:01] <Lambda_Aurigae> chocolatey drink kinda like chocolate milk but I don't think there is any milk in it.
[18:15:02] <ferdna> ohhh chocolate mil
[18:15:09] <ferdna> i see i see
[18:15:22] <Lambda_Aurigae> nonfat dry milk.
[18:15:23] <Lambda_Aurigae> hehe
[18:15:23] <ferdna> there is even an entry on wiki
[18:15:24] <ferdna> http://en.wikipedia.org/wiki/Yoo-hoo
[18:15:26] <Lambda_Aurigae> and whey from milk!
[18:15:28] <Lambda_Aurigae> yup.
[18:15:32] <Lambda_Aurigae> yoohoo ROCKS!
[18:15:40] <Lambda_Aurigae> plenty of sugar and STUFF
[18:15:47] <Lambda_Aurigae> some vitamins and stuff too.
[18:16:09] <ferdna> lol... there is regular and double...
[18:16:25] <Lambda_Aurigae> shelf stable chocolate milk soda basically..no carbonation though.
[18:16:29] * ferdna goes to a bar and asks for a yoohoo double
[18:16:47] <Lambda_Aurigae> haven't seen the double fudge before.
[18:16:51] <ferdna> that cant certainly be soda..
[18:16:51] <Lambda_Aurigae> must be a limited time thing.
[18:16:58] <ferdna> its on the wiki
[18:17:01] <Lambda_Aurigae> ok...chocolate soft drink.
[18:17:23] <ferdna> lol
[18:17:25] <ferdna> okay
[18:17:39] <Lambda_Aurigae> now I gotta look for a double fudge yoohoo.
[18:18:05] <Lambda_Aurigae> yoohoo is the drink of the gods.
[18:18:26] <ferdna> hahaha
[18:18:35] <Lambda_Aurigae> wish they would make a sugar free version.
[18:18:58] <ferdna> they remove the sugar... and that is the end of it
[18:19:14] <Lambda_Aurigae> well, put in non-sugar sweetener like stevia and it should be ok.
[18:19:32] <Lambda_Aurigae> specially in the double fudge version...enough chocolate taste to cover up the sweetener oddity.
[18:20:11] <Lambda_Aurigae> I would buy sugar free yoohoo by the case for my lunches.
[18:20:23] <Lambda_Aurigae> being diabetic, the sugar in those is a bit much for daily consumption.
[18:21:02] <Lambda_Aurigae> on another front,,,I hate to say it, but I have a new favorite microcontroller.
[18:21:44] <Lambda_Aurigae> it's been growing on me slowly and I've been thoroughly reading through docs and code examples for the last week...
[18:21:52] <Lambda_Aurigae> avr might be taking second place to pic32 chips.
[18:22:29] <ferdna> ahhhh
[18:23:02] <Lambda_Aurigae> 28 pin dip package with 2 i2c, 2 uarts, 2 spi, usb(otg and device), 256KB of flash, 64K of sram, and a full independent dma controller.
[18:23:36] <Lambda_Aurigae> I can feed sram to the spi at 25Mb/s.
[18:23:44] <Lambda_Aurigae> the thing runs at 50MHz
[18:24:05] <Lambda_Aurigae> or 48MHz from either usb connection clock or external 8MHz crystal.
[18:24:11] <Lambda_Aurigae> pushing 83DMIPs.
[18:24:20] <Lambda_Aurigae> it's not a real pic core but a mips32 core.
[18:24:30] <Lambda_Aurigae> and,,,the best part...
[18:24:38] <Lambda_Aurigae> it can execute code from sram..
[18:24:39] <ferdna> ohh wow... me... personally... can't switch from one vendor to another one... so i just stick with atmel...
[18:25:07] <ferdna> hopefully atmel comes with a contender ic...
[18:25:08] <Lambda_Aurigae> I have been working with 8052, avr, and pic for years.
[18:25:22] <Lambda_Aurigae> atmel has the avr32 which seems to be dying...
[18:25:32] <Lambda_Aurigae> no dip package in avr32.
[18:25:43] <Lambda_Aurigae> nor in xmega chips which are 8/16 bit.
[18:25:53] <Lambda_Aurigae> and no dip package usb chips at all.
[18:26:33] <xa0z> Is Tom_itx the same as Tom_L ?
[18:26:53] <Lambda_Aurigae> that's AVR's biggest downfall far as I'm concerned...no usb dip package...second biggest is not executing code from sram.
[18:27:14] <twnqx> THAT is annoying, yeah
[18:27:23] <Lambda_Aurigae> I don't think so xa0z
[18:27:28] <twnqx> no hot uploading code :X
[18:27:40] <Lambda_Aurigae> twnqx, yeah...which I can do with this 28 pin pic32.
[18:27:51] <twnqx> but it's a PIC.
[18:27:56] <xa0z> Several years ago I bought these little bitty USB Atmel devices, with ATMega32 chips from someone in an IRC channel (I believe this one) and I kept thinking his name was "Tom_L"
[18:27:57] <Lambda_Aurigae> yeah.
[18:28:13] <Lambda_Aurigae> xa0z, that's Tom_itx
[18:28:20] <Lambda_Aurigae> but they aren't atmega32
[18:28:23] <Lambda_Aurigae> if you got them from him.
[18:28:29] <Lambda_Aurigae> they are atmega32u2 or something like that.
[18:28:36] <xa0z> Yea, atmega32u2
[18:28:54] <xa0z> Ok, so that's the right person.
[18:28:59] <Lambda_Aurigae> http://tom-itx.no-ip.biz:81/~webpage/boards/USB_Breakout/USB_Breakout_index.php
[18:29:04] <Lambda_Aurigae> his webpage moved.
[18:29:11] <xa0z> Yea, they are USB Breakout boards.
[18:29:12] <Lambda_Aurigae> due to dyndns changing things and charging.
[18:29:26] <Lambda_Aurigae> I have one of those...and his usbtiny mkII programmer.
[18:29:51] <xa0z> I bought dozens from him back when we were doing some different projects, many years ago.
[18:29:59] <Lambda_Aurigae> he still sells them.
[18:30:03] <xa0z> Wow.
[18:30:12] <xa0z> I think we gave $12 each and sold them for $50 each.
[18:30:21] <xa0z> We were making mod chips with them.
[18:30:23] <Lambda_Aurigae> bit pricier these days.
[18:31:25] <xa0z> Now I'm on FreeBSD and I can't for the life of me get one to program :/
[18:31:31] <Lambda_Aurigae> odd.
[18:31:38] <xa0z> The ease of Windows :/
[18:31:44] <Lambda_Aurigae> they work fine for me on linux...though I haven't touched it in probably 6 months.
[18:31:53] <xa0z> I'm using avrdude
[18:31:58] <Lambda_Aurigae> I do too.
[18:32:22] <xa0z> dmesg shows it's connected, but avrdude says it can't find it on any usb port.
[18:33:39] <Lambda_Aurigae> what does lsusb show?
[18:38:07] <xa0z> Sorry, had to go start my truck and clear off the snow.
[18:38:10] <xa0z> Bus /dev/usb Device /dev/ugen1.3: ID 03eb:2ff0 Atmel Corp.
[18:39:57] <xa0z> I tell avrdude to use -p usb162 -c usbtiny, right?
[18:45:03] <Lambda_Aurigae> avrisp2
[18:45:05] <Lambda_Aurigae> not usbtiny
[18:45:16] <Lambda_Aurigae> it emulates an avrisp2
[18:45:35] <Lambda_Aurigae> oh, wait
[18:45:40] <Lambda_Aurigae> that's the programmer.
[18:45:45] <Lambda_Aurigae> not the breakout board.
[18:46:02] <xa0z> hmm
[18:46:10] <Lambda_Aurigae> does it have the default software on it?
[18:46:13] <Lambda_Aurigae> default bootloader?
[18:46:23] <Lambda_Aurigae> if so you need the dfu-programmer software.
[18:46:30] <Lambda_Aurigae> http://tom-itx.no-ip.biz:81/~webpage/boards/USB_Breakout/USB_Breakout_index.php
[18:46:33] <Lambda_Aurigae> bottom of the page.
[18:46:52] <xa0z> I used Flip quite some time ago to flash all the ones I got from him to the firmware we were provided by a 3rd party.
[18:46:58] <xa0z> I mean, many years ago.
[18:47:15] <Lambda_Aurigae> dfu-programmer is the free alternative to flip.
[18:47:29] <Lambda_Aurigae> but that wouldn't have overwritten the bootloader.
[18:47:47] <Lambda_Aurigae> so it's still the same bootloader...so you need flip on windows or dfu-programmer on linux/bsd/macos.
[18:48:24] <xa0z> Ok, installing dfu-programmer
[18:48:40] <xa0z> I have to run into town for a bit, will look at this more when I get back.
[18:48:46] <xa0z> Thanks for the help man!
[18:53:22] <Lambda_Aurigae> no worries.
[18:53:32] <Lambda_Aurigae> avr is still my second favorite microcontroller.
[18:53:34] <Lambda_Aurigae> :}
[22:26:34] <rue_shop3> any of the questions being asked in here getting answered?
[22:26:41] <rue_shop3> I not been paying attention
[22:28:57] <xa0z> Maybe :P
[22:29:23] <xa0z> I'm trying to find a way to make my usb breakout board emulate a USB Keyboard.
[22:29:25] <Casper> rue_shop3: have you done some test on how long you can send 0/12V serial on long wire?
[22:29:27] <xa0z> (pretend to be) that is.
[22:29:44] <rue_shop3> Casper, rs232?
[22:29:45] <Casper> xa0z: vusb have some keyboard example
[22:29:59] <rue_shop3> xa0z, whats the controller on it?
[22:30:10] <xa0z> atmega32u2
[22:30:16] <Casper> rue_shop3: almpost, I don't want to add some max232 on each receiver, so using just 0/12V, aka TTL modified to 12V
[22:30:16] <rue_shop3> ooo nice
[22:30:26] <rue_shop3> why not use the lufa hid example?
[22:30:38] <Casper> the extra voltage should help with noise and long wire I think
[22:30:51] <xa0z> I'm looking at it, but from Linux/BSD I don't know how to flash them.
[22:30:53] <rue_shop3> no, differential helps with noise
[22:30:55] <xa0z> From Windows I always used Flip.
[22:31:08] <xa0z> Flip was rather simple to use to be honest.
[22:31:16] <rue_shop3> xa0z, just use
[22:31:32] <rue_shop3> brain freeze, please stand by
[22:31:35] <rue_shop3> avrdude
[22:31:36] <xa0z> I have dfu-programmer, and I see that it is working properly.
[22:31:42] <xa0z> avrdude won't work right for me.
[22:31:42] <rue_shop3> use avrdude
[22:31:47] <rue_shop3> why not
[22:31:52] <xa0z> I've tried and it doesn't even see the device connected.
[22:32:09] <xa0z> I got these breakout boards from Tom_itx many, many years ago.
[22:32:16] <rue_shop3> ok, you dont have a real programmer, your using the botloader to upload it?
[22:32:29] <xa0z> I'm assuming.
[22:32:43] <rue_shop3> I dont use flip
[22:33:00] <rue_shop3> but I didn't have any problems programming toms board
[22:33:31] <xa0z> When I was on Windows, we had a file we just flashed/uploaded to the board using Flip, but from Linux/BSD I guess I'm not figuring it out lol
[22:34:27] <xa0z> dfu seems to see the device, and I can reset it, but avrdude says the device doesn't exist on all the options I've tried anyway.
[22:38:54] <xa0z> Trying the vusb HID keys now.
[22:39:42] <rue_more> odd, caue I'm sure he had me use flip
[22:39:46] <rue_more> what did tom say?
[22:40:12] <rue_more> its been too long since I used it
[22:40:22] <xa0z> I've not messaged him and he hasn't responded.
[22:40:54] <xa0z> I tried using dfu and I was able to erase it, and when I try to flash, it eventually says "Error while flashing"
[22:41:07] <rue_shop3> Tom_itx, how does xa0z program that u2 board?
[22:42:35] * rue_shop3 stands by
[22:44:10] <rue_shop3> Tom_itx, isn't responing on any channels at the moment, so he's prolly doing something like eating
[22:44:11] <rue_shop3> :)
[22:44:58] <rue_shop3> my replies were slow because I was letting the cat in, out, in, then trying to convince it to stay in, then putting it in the hosue, then stirring the spagetti
[22:45:12] <rue_shop3> then feeding the cats and runnign out the door before they could notice I was going out
[22:46:45] <xa0z> heh
[22:47:37] <rue_shop3> but you dont have to msg tom, you can just ask him
[22:48:59] <Casper> first test seems to be not too bad, some overshoot, but I don't think it will matter much
[22:49:14] <Casper> even at 5MHz it didn't looked that bad
[22:50:36] <rue_shop3> Casper, the rs485 and rs422 chips are nice
[22:50:44] <xa0z> I'm wanting to make something like this, http://blog.atmel.com/2014/01/02/storing-passwords-with-the-atmega32u2/
[22:51:29] <rue_shop3> ugh, like the thing hackaday is making?
[22:51:35] <Casper> rue_shop3: 20 devices or more make it expensive, and I'm not even sure that I have space for the 3 wires I need already
[22:51:43] <Casper> might have to get creative
[22:52:09] <xa0z> Yes, like the one on HackADay.
[22:52:09] <rue_shop3> k
[22:52:23] <xa0z> http://hackaday.com/2014/01/01/usbpass-a-mooltipass-like-project/
[22:52:34] <rue_shop3> yes, the moooing pass
[22:53:42] <xa0z> I'm making a USB Keychain for my servers zfs encryption to plug in and hit the button so I don't always have to type the strong encryption anytime we reboot.
[22:53:49] <xa0z> lol, silly, but just an idea.
[23:06:28] <rue_shop3> bah, grandmother was right, in a mere 30 minutes, supper can go cold
[23:06:51] <xa0z> he replied to my pm
[23:06:52] <rue_shop3> so, someone can start up notepad, push the button, and they have your strong key?
[23:17:02] <xa0z> rue_bed, yea, but no one will know anything about it or what it does.
[23:17:24] <xa0z> They'd see a string of random characters and likely be like "wtf" ?
[23:22:51] <xa0z> building avr-gcc now.
[23:34:44] <rue_shop3> why are you building it?
[23:34:50] <rue_shop3> no binary available?