#avr | Logs for 2013-08-24

Back
[09:39:06] <megal0maniac> specing: Was it you who was moaning about Xilinx sending usage stats?
[09:57:08] <RikusW> guess it failed to send ...
[10:00:08] <megal0maniac> Wait, what? :/
[10:03:26] <megal0maniac> RikusW: http://imgur.com/gallery/ThJZlaC
[10:12:18] <RikusW> Your PC ? :-P
[10:13:25] <megal0maniac> Haha! No... I didn't have to drive far luckily
[10:13:35] <megal0maniac> Although it was in the CBD
[10:14:30] <megal0maniac> VHDL isn't so bad, I'm figuring it out pretty quickly
[10:16:52] <RikusW> megal0maniac: Have you ever searched for you real name on facebook ?...
[10:17:02] <RikusW> apparently there are a LOT of you
[10:17:35] <megal0maniac> -.-
[10:17:44] <megal0maniac> I'm not on facebook :)
[10:18:03] <RikusW> Seems your doubles are :-P
[10:19:21] <RikusW> I rarely use it...
[10:50:11] <braincracker> N1njaneer <= a little Ninjutsu ?
[10:52:07] <braincracker> a little oc? running 3GHz rated transistors above 7GHz ? http://benchit.pl/rankingi/overclocking/cpu-oc-factor
[10:55:36] <CMLinux> hey Dean, probably saw my email everything seems to be working now thanks for the help!
[10:56:09] <abcminiuser> Greeting, y'all
[10:56:18] <abcminiuser> Yeah I saw, congrats :)
[10:56:31] <abcminiuser> I started looking into it but didn't see anything that stood out the other night
[10:57:06] <CMLinux> ya, just tested it on friday for a few seconds, but everything looked like it was working fine
[10:58:25] <CMLinux> LUFA is incredibly cool, i kinda feel like it is possible to make a USB anything with it
[10:59:08] <abcminiuser> That's the plan :)
[10:59:18] <abcminiuser> Not sure if it's panned out that way, but it's good enough for most uses
[11:00:51] <CMLinux> really, seems like a UsB anything can be done with it now. sounds like there are some other issues?
[11:01:50] <abcminiuser> Ultimately I need to re-write it to be interrupt driven at some point
[11:01:57] <abcminiuser> But, well, kinda lost steam on it
[11:02:05] <abcminiuser> Huuuuuge job to re-design from scratch
[11:03:05] <CMLinux> oh right, the main loop just repeatedly gets called, polling
[11:03:35] <CMLinux> but for embedded devices, thats not really that bad is it?
[11:05:29] <abcminiuser> No, but it's bad for integration into other stacks and such
[11:05:34] <abcminiuser> And power saving I guess
[11:05:46] <abcminiuser> Although if you're connected to USB that's not a big issue I would think
[11:06:46] <CMLinux> for atmega16u2 that my use is running on, i doubt it is consuming very much power anyhow
[11:07:56] <CMLinux> i would be into helping out if it is of any use, i really believe it is hugely useful
[11:09:11] <CMLinux> its just a bit too hard for a lot of people to get into. otherwise i think it would be super popular
[11:13:48] <abcminiuser> Yeah, the AS6 extension has lowered the bar a bit
[11:13:56] <abcminiuser> Apparenty no one likes my build system :P
[11:15:15] <CMLinux> whats wrong with the build system?
[11:16:34] <abcminiuser> People don't like makefiles apparently
[11:16:53] <abcminiuser> I've made a set of pluggable modules that give human readable errors in 90% of use cases
[11:17:10] <abcminiuser> Rather than the 5% of use cases in the popular single monolithic one used in WinAVR
[11:17:22] <abcminiuser> But since people are used to the giant WinAVR one they don't like my simple ones
[11:17:41] <CMLinux> bizarre
[11:19:26] <CMLinux> i havent used winavr in years
[11:38:49] <antto> guys, what would the amplitude of a typpical 16MHz resonator be?
[11:39:11] <antto> (roughly, in order to adjust the scope..)
[11:40:12] <braincracker> that will not work out well.
[11:40:25] <megal0maniac> Scope will load it to death
[11:40:32] <megal0maniac> I think
[11:40:40] <braincracker> maybe with an active high impedance amp head
[11:40:54] <braincracker> jfet input opamp
[11:42:10] <antto> no idea, it's not my scope, i'm trying to help a guy remotely ;P~
[11:42:15] <antto> so, it's uber weak?
[11:42:37] <megal0maniac> Well it isn't supposed to drive anything, so yes
[11:45:40] <Zad0k> Hello! I'm going to unlock an attiny with the high voltage technique, I just can't figure our where is the "+" and the "-" in the circled zone
[11:46:01] <antto> the scope is a tektronix with 1meg input impedance and 10x probe
[11:49:25] <megal0maniac> Zad0k: You do realise that you haven't actually provided enough information, right?...
[11:50:46] <braincracker> antto <= and a user with no clue how things work
[11:51:39] <megal0maniac> :D
[11:53:16] <Zad0k> megal0maniac, I only have this schematic : http://blog.cicatrice.eu/wp-content/uploads/2013/08/arduino_attiny_fuse_reset_bb.png
[11:53:27] <Zad0k> I try to figure out how I have to connect my 12v battery
[11:54:21] <megal0maniac> Red wire to pin 1 through a 1K ohm resistor and black wire to common ground
[11:54:25] <antto> braincracker whut ;P~
[11:54:35] <megal0maniac> Do you know how a breadboard works?...
[11:54:50] <antto> if i had a scope.. but i don't
[11:55:51] <Zad0k> megal0maniac, Yeah, I just don't know where the + and the - go
[11:56:03] <megal0maniac> Zad0k: I just told you :)
[11:56:58] <Zad0k> pin 1 ?
[11:57:04] <Zad0k> isn't it pin 2?
[11:57:14] <gambakufu> wow, the avr optimizer doesn't fuck about... I'm getting 10-20x speed boosts here
[11:57:30] <megal0maniac> Zad0k: Only if you don't know how a breadboard works ;)
[11:57:40] <braincracker> me either
[11:57:40] <braincracker> why would one probe the resonator anyway
[11:57:47] <braincracker> waveform does not matter for a digital oscillator
[11:57:47] <megal0maniac> HVSP works with 12V on the reset line
[11:58:54] <Zad0k> megal0maniac, I was looking at the wrong wire sorry
[11:58:54] <antto> braincracker i don't know, we just don't know where to start, it's not working, that's all we know
[11:58:54] <Zad0k> yeah pin 1
[11:58:54] <megal0maniac> Zad0k: Only pin 1 is 12V tolerant. If you put 12V anywhere else, you'll kill it
[11:58:54] <antto> we probed for gnd and +5V - that's okay
[11:59:26] <antto> next is the clock, right?
[11:59:26] <antto> how do you check teh damn clock ;]
[11:59:26] <Zad0k> megal0maniac, red is positive right?
[11:59:27] <braincracker> not really.
[11:59:45] <braincracker> antto<= the atmel MCU's have internal oscillator if you fuse it
[11:59:52] <antto> it's not
[12:00:01] <braincracker> and the xtal pins will be regular io
[12:00:03] <antto> it's supposed to use an external 16MHz one
[12:00:10] <megal0maniac> Yes
[12:00:30] <antto> i mean, i'm talking about a cpu on a board here
[12:00:30] <Zad0k> thanks :D
[12:00:50] <Zad0k> I'll tell you if I could bring it back to life :)
[12:01:33] <antto> it has been flashed with bootloader and firmware, and fuses and lock bits have been set, it has also been tested if it works at the end, then this guy receives it, and it doesn't work
[12:01:53] <antto> either it's not making contact, or it has been f*cked up during transit
[12:02:22] <antto> he doesn't have programmers, we're lucky he has a scope ;]
[12:02:53] <braincracker> happens
[12:03:01] <braincracker> tried plugging the power in?
[12:03:13] <megal0maniac> Zad0k: Cool, do that :) I'll be afk in 10 minutes, but I'll check the scrollback
[12:03:21] <braincracker> before making measurements at the resonator pins
[12:03:35] <Zad0k> okay :)
[12:10:18] <Zad0k> what is the command to set back an attiny85 to its default fuses in avrdude?
[12:11:36] <braincracker> not sure you can
[12:11:51] <braincracker> if you have turned off low voltage programming you need a high voltage programmer
[12:12:51] <Zad0k> I made one with arduino, now I can interact with my attiny, I just want ti to go to it's default fuses
[12:12:52] <megal0maniac> Zad0k: http://www.engbedded.com/fusecalc/ will give you default values
[12:13:08] <Zad0k> I used this tutorial : http://blog.cicatrice.eu/162 It's in french
[12:13:19] <megal0maniac> -U lfuse:w:0x62:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m
[12:13:30] <Zad0k> okay, doing that
[12:13:31] <braincracker> i'd prefer the english version
[12:13:46] <braincracker> you've been messing with efuse too?
[12:13:51] <Zad0k> Yeah
[12:13:59] <Zad0k> a lot :D
[12:14:07] <Zad0k> Thanks megal0maniac!
[12:14:26] <megal0maniac> Is it working?
[12:14:43] <Zad0k> I don't know yet, setting up the programmer
[12:15:01] <braincracker> you made a HVP out of an arduino?
[12:15:14] <megal0maniac> braincracker: With 12V from a battery
[12:15:16] <Zad0k> I think it's one
[12:15:20] <braincracker> hmm
[12:15:28] <braincracker> well you could use a charge-pump
[12:15:34] <megal0maniac> It's legit ;)
[12:15:34] <Zad0k> since it "unlocks" the fuses with 12V
[12:15:40] <braincracker> voltage tripler and a zener diode
[12:20:08] <braincracker> http://www.talkingelectronics.com/projects/50%20-%20555%20Circuits/50%20-%20555%20Circuits.html#10a
[12:20:09] <braincracker> something like this
[12:20:17] <braincracker> repalces your 12V battery
[12:21:03] <braincracker> a resistor and a zener diode would be fine for 12V limiting
[12:25:14] <Zad0k> English version of what I'm doing
[12:25:15] <Zad0k> https://sites.google.com/site/wayneholder/attiny-fuse-reset
[14:12:19] <Zad0k> BJFreeman is having some issues ^^
[14:13:04] <braincracker> or somebody bored, ddosing :)
[14:13:34] <Zad0k> Who knows? :D
[14:14:28] <Zad0k> I've been able to solder a circuit on a breadboard on the non-soldable side
[14:14:40] <BJfreeman> Zad0k yes, still have not traced the orgin it is random. something sends the cPU into 100% mode and diconnects
[14:15:44] <Zad0k> That's weird
[14:48:50] <abcminiuser> Goddam loosely coupled coding
[14:48:55] <abcminiuser> And goddam XAML
[14:49:06] <braincracker> C!
[14:51:07] <abcminiuser> I'm updating my DataSizeViewer extension
[14:51:09] <abcminiuser> For Atmel Studio
[14:51:12] <abcminiuser> XAML is awful
[15:00:35] <ambro718> are there any recent builds of avr-gcc (4.8) available on the net?
[15:01:12] <ambro718> so I can tell people where to get a toolchain that works with my (open source) stuff
[15:05:53] <Xark> ambro718: There is http://www.atmel.com/tools/ATMELAVRTOOLCHAINFORWINDOWS.aspx as well as http://www.atmel.com/tools/ATMELAVRTOOLCHAINFORLINUX.aspx
[15:06:43] <ambro718> I know, but it's outdated and half broken :/
[15:06:47] <braincracker> BJfreeman <= firefox ! chrome !
[15:07:14] <ambro718> problems with some float function conflicts (nothing to do with my code)
[15:07:17] <Xark> ambro718: That is the official version. You can also grab the one out of Arduino IDE.
[15:07:27] <ambro718> the Arduino is 4.3 afaik
[15:07:30] <specing> ambro718: build them yourself :D
[15:07:36] <specing> (and host them)
[15:07:46] <ambro718> yeah, looks like I'll have to resort to that
[15:08:12] <specing> or wait
[15:08:35] <specing> why can't your "users" build their own damn compilers?
[15:22:13] <abcminiuser> Yeah use the Atmel one if possible
[15:22:19] <abcminiuser> What error does it throw on your code?
[15:28:53] <abcminiuser> Ok, anyone here feeling brave, that has AS6 installed?
[15:40:33] <megal0maniac_afk> Mememe
[15:40:35] <megal0maniac_afk> :)
[15:40:44] <megal0maniac> I'm living dangerously today
[15:40:53] <abcminiuser> I have a new DataSizeViewer that needs testing
[15:41:04] <abcminiuser> This one will gray out symbols in non-existing locations
[15:41:10] <megal0maniac> Cool. Lets view some data sizes
[15:41:12] <abcminiuser> (there's more changes than that behind the scenes)
[15:41:19] <abcminiuser> (but that's the user visible one)
[15:42:02] <megal0maniac> Do I need to know anything in particular, or does general computer literacy and Atmel Studio suffice?
[15:42:51] <abcminiuser> Need eyes and Atmel Studio
[15:42:53] <abcminiuser> And any project
[15:43:06] <megal0maniac> Can I make a demo one?
[15:43:15] <megal0maniac> Actually never mind
[15:43:18] <megal0maniac> Go!
[15:43:34] <abcminiuser> http://fourwalledcubicle.com/files/temp/DataSizeViewer.vsix
[15:45:19] <megal0maniac> 2013/08/24 10:30:22 PM - Install to AtmelStudio completed successfully.
[15:45:56] <abcminiuser> Hokiepokie
[15:46:09] <abcminiuser> Now build a project (more complicated the better)
[15:46:16] <abcminiuser> Then open Tools->ELF Symbol Sizes
[15:46:23] <abcminiuser> And see if you get any crashes or anything
[15:46:47] <abcminiuser> If you don't, see if anything in the list is grayed out
[15:46:52] <megal0maniac> The default avrispmkii from LUFA suffice?
[15:46:59] <abcminiuser> Yeah, anything that produces an ELF
[15:50:35] <megal0maniac> That option isn't under Tools
[15:50:44] <abcminiuser> View rather
[15:50:45] <abcminiuser> Derp
[15:52:45] <megal0maniac> http://i.imgur.com/jjruB3t.png
[15:53:04] <megal0maniac> Appears quickly, doesn't kill my dogs or throw any error
[15:53:10] <abcminiuser> Neato
[15:53:17] <abcminiuser> So that works now
[15:53:19] <megal0maniac> And everything greyed out is in that image
[15:53:29] <abcminiuser> If you double click a symbol that isn't gray does it jump to it?
[15:53:55] <megal0maniac> Hells yeah!
[15:54:11] <abcminiuser> Wunderbar
[15:54:35] <megal0maniac> And double clicking on gray things doesn
[15:54:38] <megal0maniac> 't break either
[15:55:09] <megal0maniac> And I'm running SP2, fwiw
[15:55:14] <megal0maniac> 2730
[15:55:19] <abcminiuser> Ok, if you open Tools->Options
[15:55:32] <abcminiuser> Then go to Extensions->Data Size Viewer
[15:55:44] <abcminiuser> Do you see an option to disable the graying out of unknown symbols?
[15:55:58] <megal0maniac> Verify Symbol Locations. Boolean thingy
[15:56:07] <megal0maniac> With a friendly description
[15:56:16] <abcminiuser> Neato
[15:56:21] <abcminiuser> This might be production ready then
[15:56:31] <megal0maniac> Feels like it is
[15:56:46] <abcminiuser> I'm changing it a bit, so that flash symbols are one color and data another to make them stand out more
[15:56:47] <megal0maniac> I take it this is the kind of thing you want when sizecoding?
[15:57:06] <megal0maniac> Fancy :)
[15:57:12] <abcminiuser> Yeah, you can sort the list to answer the age old question of "where the hell did all my flash/sram go?"
[16:13:33] <tomatto> how can i convert analog sound to S/PDIF and backwards?
[16:15:21] <N1njaneer> With an ADC/DAC pair and appropriate S/PDIF converters :)
[16:16:52] <megal0maniac> This display layout is funky... I can't decide whether I like it :)
[16:40:17] <megal0maniac> Namely, a PCF8547 bus expander and an AVR32
[16:40:28] <abcminiuser> Hrm
[16:40:34] <megal0maniac> But the screen connected to the bus expander wants 5V
[16:40:49] <abcminiuser> Check the datasheet for the minimum voltage for the 5V device to register high
[16:40:51] <megal0maniac> Standard 44780
[16:41:00] <abcminiuser> If it's below 3.3V it should work
[16:41:13] <megal0maniac> abcminiuser: I'm quite sure it will be, I'm just worried about hurting the AVR
[16:41:28] <abcminiuser> 3V AVR, 5V expander?
[16:41:35] <megal0maniac> Yeah..
[16:41:42] <abcminiuser> I2C is open drain, so you pull up the I2C bus to 3.3V
[16:41:53] <abcminiuser> As long as the expander sees 3.3V as a high, it will work
[16:41:56] <Roklobsta> i thought it was open collector
[16:42:54] <megal0maniac> Hmmm... 0.7Vdd
[16:42:58] <megal0maniac> Which is 3.5V
[16:43:15] <abcminiuser> Then you have a pickle
[16:43:24] <abcminiuser> For my uni project I used a I2C level converter
[16:43:32] <abcminiuser> But it was in a REEEEALLLY tiny package
[16:43:45] <megal0maniac> I've made one with mosfets and pull-ups
[16:44:26] <abcminiuser> Hot diggity this works
[16:44:27] <megal0maniac> Which should work fine. I'll try run the display at 3v3 first
[16:44:31] <abcminiuser> I suck at .NET :(
[16:44:34] <abcminiuser> But still, it works
[16:45:11] <megal0maniac> Congrats :P
[16:45:14] <tomatto> N1njaneer: what S/PDIF converters?
[16:45:15] <Roklobsta> here http://www.bajdi.com/wp-content/uploads/2012/09/logic-level-converter-schematic.png
[16:45:39] <megal0maniac> Roklobsta: I think this is the one I made http://www.adafruit.com/datasheets/AN10441.pdf
[16:45:44] <megal0maniac> Can't find the original source now
[16:45:57] <megal0maniac> Oh. Yes. That exact one :)
[16:46:14] <megal0maniac> Only I used 10K for pullup
[16:46:18] <Roklobsta> yah
[16:46:50] <megal0maniac> I know the bus expander will work at 2v5 and up. As for the display, we'll just have to see.
[16:46:52] <Roklobsta> philips/nxp have/had all sorts of good appnotes on level conversion
[16:47:00] <megal0maniac> It's chinese so anything could happen
[16:57:51] <Roklobsta> smoke?
[16:59:05] <megal0maniac> No
[16:59:19] <megal0maniac> But I can confirm from previous experience that the PCF8547 does not have short circuit protection
[16:59:50] <megal0maniac> And does make smoke
[17:05:53] <N1njaneer> tomatto: You need a chip that will convert I2S from the ADC/DAC to S/PDIF/AES-EBU, or you need to write it in to something like an FPGA. :)