#avr | Logs for 2015-08-07

Back
[00:50:36] <ferdna> its 11:30
[00:50:42] <ferdna> PM
[01:39:58] <day> Emil_: why would they perform better?
[01:40:30] <day> Emil_: ups. wasnt at the bottom. Question was in regard to your statement 'copied atmegas work better than original ones'
[01:49:31] <day> s
[01:51:31] <mzbotree> God I love LUFA
[01:51:57] <mzbotree> Can I use the same USB modesetting to do some of this fancy shit for more generic mass storage hosts?
[01:52:24] <mzbotree> Like your standard-ass USB memory stick -> HID or CDC
[04:42:03] <mzbotree> Shopping for a new dev board... looking for a newer ARM based microcontroller to showcase. Any suggestions?
[04:42:16] <mzbotree> Anything good with RTOS is better
[05:55:23] <Emil_> day: no reason, I wasn't thinkin :D
[08:18:14] <mzbotree> Hello all. I have one of those atmega32u4 boards from arduino/adafruit, with a CDC bootloader jamming some JTAG lines with the "breathing boot LED", which doesn't help me at all for what I'm trying to do. I want to reprogram this board with my own bootloader, free captive lines and a forced div 8, but going about this is.. difficult. Currently I'm using LUFA libraries and attempting uploads there. Mixed succ
[08:18:20] <mzbotree> ess, resulted in a CDC device I could use any time (not just a 10 sec grace period @ reset), but I don't think this went full well...
[08:18:30] <mzbotree> The model is "Arduino Micro", has anyone else dealt with this?
[09:37:16] <apo_> I talked about it before, but this time I have a scope to test with - http://p.0au.de/aa99d9ce/main.c is the source, http://p.0au.de/5961d6fc/main.lss the compiled asm. I calculate the delay between two matching flanks on pin D6 (when an interrupt happens inbetween) as 20 cycles, from 2*(2+1) (main loop) + 7 (interrupt jump) + 7 (in/ori/out/reti in the interrupt)
[09:37:25] <apo_> but when I watch it on the scope, I see 21 cycles
[09:37:35] <apo_> any ideas where the missing cycle comes from?
[09:52:20] <mzbotree> I took one of these (https://www.arduino.cc/en/Main/arduinoBoardMicro), broke the bootloader, and have uploaded an avrispmkII clone to the board. I want to program with it a (http://www.ebay.com/itm/like/271451191152?lpid=82&chn=ps) piece of shit with a broken clock.
[09:52:43] <mzbotree> How should I connect the two devices, especially with the recovery clock?
[09:55:58] <apo_> wait, the main loop takes 4 cycles, not 3
[09:56:10] <apo_> so it should be 22, not 20
[09:56:18] <apo_> ... why does it take 21 instead of 22 :|
[11:29:18] <c0d1ng> has anyone made a circuit like this? http://elm-chan.org/docs/wire/wiring_e.html
[11:31:24] <c0d1ng> isn't there rf interference if you stake the traces lake that?
[11:52:30] <twnqx> not normally at the low frequencies you run atmels on
[12:23:29] <hypfer> hi everyone
[12:23:41] <LeoNerd> Hi Doctor Nick
[12:24:26] <hypfer> I have a digital pin attached to some kind of sensor that outputs an unknown signal. I want to record that and be able to play it back
[12:24:30] <hypfer> I have no idea how
[12:24:50] <hypfer> I can listen for the sensor thingy with an interrupt
[12:25:04] <hypfer> but how to I save it and replay it properly?
[12:26:55] <LeoNerd> I'm not quite sure I understand the question
[12:28:10] <hypfer> I have some kind of digital signal which I want to duplicate
[12:36:14] <learath> Are you willing to spend the time to understand it?
[12:36:19] <learath> do you know the clock rate?
[12:41:20] <hypfer> learath: no, I just want to replay it. and no idea :-/
[13:14:47] <hypfer> learath: LeoNerd http://i.imgur.com/HMHhreT.png I just want to replay this
[13:15:25] <hypfer> replay as in "send the exact same thing over and over again"
[13:35:20] <apo_> even overwriting the vectors table leaves one less cycle between matching flanks
[13:35:39] <apo_> so either reti takes three cycles, or preparing the interrupt takes three cycles >_>
[15:39:42] <redspl> bye
[16:17:17] <mzbotree> Hi.. trying an SPI BIOS flash over flashrom's serprog with frser-duino flashed onto an atmega328p(uno R3). Serprog and the flash seem to work fine... my target BIOS isn't being picked up, though. I'm using a hex-buffer to drop the logic to 3.3V (req BIOS).
[16:17:35] <mzbotree> This is the schematic for what I'm trying to copy. http://flashrom.org/images/6/62/Uno_BIOS_Flasher_2.png
[16:17:43] <mzbotree> Very frustrating, seemed so close...
[16:18:37] <mzbotree> And my chip is an EN25F80 by cFeon
[16:20:43] <mzbotree> Sorry-Nudged my wifi a bit and lost connection. Desparate to find a solution here, could this buffer be jamming the signal?
[16:24:18] <mzbotree> Probing for Eon EN25F80, 1024 kB: RDID byte 0 parity violation. probe_spi_rdid_generic: id1 0x00, id2 0x00
[20:47:32] <TechIsCool> So does atmel sell the EDBG chip?
[20:48:27] <TechIsCool> or the software for the mEDBG
[20:48:51] <Lambda_Aurigae> it seems they do.
[20:49:12] <Lambda_Aurigae> http://www.atmel.com/webdoc/protocoldocs/
[20:50:20] <TechIsCool> Yup that is the Protocol definition but have you seen any source code
[20:50:28] <TechIsCool> so we don't have to rebuild it from the ground up
[20:50:46] <Lambda_Aurigae> never heard of it until I just did a google search for EDBG
[20:51:43] <TechIsCool> ah ok
[20:51:54] <Lambda_Aurigae> looks like something for arm processors.
[20:51:59] <Lambda_Aurigae> from a first glance anyhow.
[20:52:19] <TechIsCool> yup its basically a on chip debugger
[20:52:37] <Lambda_Aurigae> onboard debugger
[20:52:40] <Lambda_Aurigae> not on chip.
[20:52:45] <Lambda_Aurigae> it's an off-chip onboard debugger.
[20:52:47] <TechIsCool> correct
[20:53:34] <Lambda_Aurigae> so it's a jtag/pdi/swd interface on a chip.
[20:53:46] <Lambda_Aurigae> looks like it works for xmega with pdi.
[20:53:51] <TechIsCool> yup
[20:53:52] <Lambda_Aurigae> and megaAvr with jtag.
[20:54:01] <TechIsCool> That kind of why I want it more then the SAM support
[20:54:08] * Lambda_Aurigae am readin' ye olde users guide.
[20:54:55] <TechIsCool> from my googling you can't buy the chip and you would have to remove it from another board
[20:56:15] <Lambda_Aurigae> seems so.
[20:56:29] <Lambda_Aurigae> looks like a BGA chip anyhow.
[20:56:32] <Lambda_Aurigae> so useless to me.
[20:56:54] <TechIsCool> yah kind of
[20:57:02] <TechIsCool> I think I could solder bga but reballing it hahaha
[20:57:04] <TechIsCool> nope
[20:59:46] <Lambda_Aurigae> I think it's nothing but an ARM processor with custom software on it.
[21:35:24] <TechIsCool> Anyone own a Atmel ICE the newer programmer
[21:35:28] <TechIsCool> What do they think of it
[21:37:22] <Lambda_Aurigae> just my stk200 clone I made 12+ years ago and my tom-itx programmer.
[21:37:41] <TechIsCool> I own two avr dragons but they kind of hate xmega's
[21:37:56] <TechIsCool> one does not like them enough it throws read write errors
[21:38:26] <Lambda_Aurigae> well, I do have the dragon and stk500 too but never use those,
[21:38:39] <Lambda_Aurigae> and no xmega chips here
[21:38:46] <TechIsCool> ah ok
[21:38:53] <TechIsCool> so 328? or tiny
[21:39:03] <Lambda_Aurigae> several tinys.
[21:39:08] <Lambda_Aurigae> no 328 though.
[21:39:18] <Lambda_Aurigae> mostly I use atmega1284p chips these days.
[21:39:26] <TechIsCool> ah ok
[21:39:50] <TechIsCool> I have always liked the xmega structure better then the mega series but the problem is I have to port most things
[21:39:57] <Lambda_Aurigae> and pic32mx270f256b
[21:40:31] <Lambda_Aurigae> can't take an xmega and shove it in a solderless breadboard and use it.
[21:40:42] <Lambda_Aurigae> not without adding a carrier board and some soldering.
[21:41:08] <TechIsCool> the only dip chips I own are arduinos
[21:41:12] <TechIsCool> everything else is smd
[21:41:27] <Lambda_Aurigae> an arduino isn't a chip...
[21:42:02] <TechIsCool> so I own 1 168p, and 2 328p
[21:42:37] <Lambda_Aurigae> lately I've been working more with the pic32mx chips than the avr chips.
[21:43:12] <Lambda_Aurigae> although, I might be taking Jartza's new toy and modding it to a full graphic vga display adapter with some external sram.
[21:44:23] <TechIsCool> nice I have a project in mind that I am going to have to build a pid controller for temp control
[21:44:51] <TechIsCool> it seems like a lot of math for something as simple but when I get it done I should be able to save about 500$ a year
[21:47:02] <Lambda_Aurigae> so many projects, so little table space.
[21:47:52] <TechIsCool> I know how that works. I have 6 boxes that I clean up every time
[21:48:16] <Lambda_Aurigae> I have a whole workshed, about 25x50 feet or so.
[21:48:20] <TechIsCool> I find the hardest part to get these project finished is the setup tear down time since I don't have a space to keep up all the time.
[21:49:27] <Lambda_Aurigae> I have electronics and woodworking projects both going.
[21:50:07] <Lambda_Aurigae> this weekend I start another one.
[21:50:14] <Lambda_Aurigae> building a kitchen island.
[21:50:20] <TechIsCool> nice
[21:50:44] <Lambda_Aurigae> did a remodel and have a spare door from inside the house.
[21:50:54] <Lambda_Aurigae> so will use that for the top and cover it with a sheet of glass.
[21:51:15] <TechIsCool> My brother did that He found a guy with one of those 10 foot tall wood doors
[21:51:22] <TechIsCool> turned it into a awesome desk
[21:51:40] <TechIsCool> thing ways like 200lbs but really its not hollow
[21:51:52] <Lambda_Aurigae> this door is solid too.
[21:51:59] <Lambda_Aurigae> even though it's an inside door.
[21:52:40] <TechIsCool> all our doors are solid its great no noise