#avr | Logs for 2013-10-25

Back
[00:13:28] <hjohnson> lol
[04:58:46] <hetii> Hi :)
[05:01:23] <hetii> I try use INT4 instead INT0 in ATMega128 with v-USB but have trouble to set proper MCUCR and other flags for v-usb.
[05:01:29] <hetii> Any clue in this subject ?
[05:07:36] <hetii> hmm error: attempt to use poisoned "SIG_INTERRUPT4"
[05:12:19] <malinus> hetii, I don't think I can help but I'm curious - what are you using v-USB for? input device? raw hid?
[05:16:24] <hetii> The plan is that my prototype board will act as usbasp programmer, USBtoRS232 bridge, HID keyboard that is able to switch my tablet in OTG mode, and some custom functionality, depend on project.
[06:33:56] <Tom_itx> External Interrupt Request 4 */
[06:33:56] <Tom_itx> #define INT4_vect _VECTOR(5)
[06:33:56] <Tom_itx> #define SIG_INTERRUPT4 _VECTOR(5)
[06:34:04] <Tom_itx> seems valid
[06:38:58] <Tom_itx> INT4, External Interrupt source 4: The PE4 pin can serve as an External Interrupt
[06:38:58] <Tom_itx> source.
[06:42:06] <Tom_itx> make sure the 128 isn't in atmega103 compatibility mode
[07:29:31] <The_Ball> I have a cheap AVR programmer, now I'd like to be able to use the Atmel Studio debugger, so I'll need a new programmer that supports this. Which one should I get when I'm on a budget?
[07:30:05] <megal0maniac_afk> The_Ball: AVR Dragon
[07:30:21] <megal0maniac_afk> It's made by Atmel, it's $50 and it works
[07:31:10] <megal0maniac_afk> JTAGICE3 is the "nice" alternative, and the price has been halved from $199 to $99. But for getting started, the dragon will suffice for most things
[07:32:05] <The_Ball> I thought the good JTAGICE3 was $300, I could probably stretch to $99
[07:33:03] <megal0maniac_afk> It's smaller, it's faster, and it's less likely to blow up
[07:33:24] <megal0maniac_afk> Call it an investment. I like mine
[07:33:44] <The_Ball> Are you now talking about the Dragon or the JTAGICE3?
[07:33:46] <w|zzy> megal0maniac_afk: wtf can I get an ice 3 for 99
[07:33:50] <Tom_itx> dragon works but slower than the $$$ ones
[07:34:03] <Tom_itx> you can't
[07:34:34] <w|zzy> that's what I thought. a faster tag device would be nice
[07:34:38] <megal0maniac_afk> The_Ball: The ICE3
[07:34:41] <w|zzy> I have the mkii
[07:34:49] <Tom_itx> abcminiuser _was_ giving away open box programmers the other day though
[07:35:18] <Tom_itx> pay shipping and get an avrone for free
[07:35:39] <Tom_itx> or some such arrangement
[07:35:44] <megal0maniac_afk> Whaaaaat
[07:35:56] <The_Ball> megal0maniac_afk, hmm, JTAGICE3 is $186 at element14
[07:35:58] <megal0maniac_afk> w|zzy: I'm talking Atmel prices, so it's relative
[07:36:03] <megal0maniac_afk> Owie
[07:36:05] <Tom_itx> they were in house 'test' equipment
[07:36:08] <w|zzy> how did I miss this!
[07:36:29] <Tom_itx> i never heard what came of it though
[07:40:50] <megal0maniac_afk> The_Ball: The Dragon will work fine, until you touch it in its special place, at which point it may or may not explode. The ICE3 is more expensive, but faster and smaller and in a box and the device support list is growing
[07:41:15] <megal0maniac_afk> They recently changed the way the USB interface works entirely, and added SAM D5 support
[07:42:03] <w|zzy> I wouldn't mind upgrading my mkii. it's so big on my desk..
[07:42:05] <megal0maniac_afk> Oh. SAM D20
[07:44:14] <The_Ball> These "SAM" devices are ARM, do you run a linux stack on them or what?
[07:47:34] <megal0maniac_afk> The_Ball: That particular range only has 256kb flash. It's an ARM core, but not the type that would run Linux
[07:47:42] <megal0maniac_afk> Although I'm sure it's possible ;)
[07:48:09] <w|zzy> it's an m series not an a series..
[07:48:21] <w|zzy> do the m series have a memory controller?
[07:48:34] <w|zzy> if not it can't run standard Linux
[07:48:47] <megal0maniac_afk> I don't know...
[07:48:51] <megal0maniac_afk> But I don't think so
[07:49:02] <w|zzy> unlikely..
[07:49:14] <megal0maniac_afk> w|zzy: Also, I was referring to that guy who ran Linux on a atmega8
[07:49:45] <megal0maniac_afk> Performance boost would be substantial, since you don't have to emulate the entire core. You just run it :)
[07:50:08] <w|zzy> yeah.
[07:50:12] <The_Ball> megal0maniac_afk, So these "SAM" devices are basically just very powerful uCs
[07:50:19] <w|zzy> yes
[07:50:33] <w|zzy> some may have an mmu at the high end.
[07:50:45] <The_Ball> Cool
[07:50:46] <w|zzy> they do have cool stuff like dma though
[07:51:37] <megal0maniac_afk> Which you can get on an xmega, or AVR32
[07:51:58] <megal0maniac_afk> But it has a 32bit ARM core. Depends on preference and application
[07:53:55] <w|zzy> yeah
[07:54:05] <w|zzy> fpu?
[07:54:39] <megal0maniac_afk> w|zzy: No
[07:54:41] <megal0maniac_afk> http://www.atmel.com/Images/Atmel-42129-SAM-D20_Summary.pdf
[07:55:01] <megal0maniac_afk> It's a lot like the Aery, actually
[07:55:17] <megal0maniac_afk> And personally I prefer developing with an AVR core to ARM
[07:55:24] <w|zzy> same
[07:55:32] <megal0maniac_afk> Then again, I'm saying this on #avr :)
[07:55:39] <w|zzy> enjoying the aery? I got mine out again today
[07:57:13] <megal0maniac_afk> w|zzy: Haven't had much time to play. Last time I did the toolchain was fighting with me and now we have exams week after next, until late November :/
[07:57:32] <megal0maniac_afk> Currently in a programming lecture learning about pointers :P
[07:57:32] <w|zzy> fair.. same here. uni sucks..
[07:57:48] <w|zzy> it's atmel who broke the chain
[07:59:17] <megal0maniac_afk> I got it to work once, while messing with $path
[07:59:23] <megal0maniac_afk> And then it broke again
[07:59:35] <w|zzy> weird
[07:59:57] <w|zzy> every time I install it I just flew the how to..
[08:00:07] <w|zzy> I did write the Linux and Mac ones though
[08:07:03] <The_Ball> I haven't got a ICD interface as mentioned, so I'm trying to use the inbuilt simulator in Atmel Studio 6. I'm pretty much there except for I can't make the fuses stick. I can use the "programmer" to set the fuses, but when I run the debugger/simulator the fuses are back to default. Anybody know where/how to set fuses for simulation?
[08:09:25] <megal0maniac_afk> The_Ball: http://www.atmel.no/webdoc/simulator/simulator.section.okd_gud_lc.html
[08:09:40] <megal0maniac_afk> "you cannot program fuses in the programming dialog, and later start a debugging session with these fuse settings intact. A new session always starts with default fuse settings"
[08:10:52] <The_Ball> Thank you megal0maniac_afk
[08:11:02] <The_Ball> I had actually looked at that page, but not closely enough
[08:13:24] <megal0maniac_afk> I just googled ;)
[08:25:48] <The_Ball> megal0maniac_afk, same page under "General Issues" -> "The simulator settings dialog is not yet implemented (#13412)", that explains why for the life of me I couldn't find it
[10:11:28] <beaky> hello
[10:12:33] <beaky> how do i use analog comparators
[10:19:22] <RikusW> /msg alis list * -min 1000
[10:19:31] <RikusW> top freenode channels
[10:35:19] <beaky> I love avr!
[11:15:05] <OndraSter_> beaky, check the datasheet
[11:15:05] <OndraSter_> it is all there.
[11:26:35] <N1njAway> GOOD AFTERNOON, FRIDAY! :D
[11:31:29] <OndraSter_> ohi
[11:31:32] <OndraSter_> I am glad it is friday
[11:45:40] <vsync_> who isn't
[11:48:01] <OndraSter_> I know some
[11:52:58] <theBear> me, it's been saturday since 10 mins before he said that :)
[13:17:06] <Trieste> Hi, is there a way I can trigger an interrupt every time a timer is updated?
[13:18:16] <Trieste> or, in other words, how can I run a handler every F_CPU/64?
[13:27:29] <Casper> updated,,, you mean each time it reset/overflow/reach max?
[13:28:15] <Trieste> no, each time it's incremented
[13:28:31] <Casper> and think twice or twelve before doing at F_CPU/64... that don't leave you much time to do anything...
[13:28:47] <Casper> set max to 1 on a timer maybe?
[13:28:56] <Casper> err at 64..
[13:28:59] <Casper> or alike...
[13:29:05] <Casper> but no, not each time it's updated
[13:29:08] <Trieste> hm
[13:44:54] <Trieste> well, I have a sequence I need to output repeatedly, and a time in which it should be done (say, 8 ms), but the time varies
[13:45:09] <Trieste> and I thought of no other way than to have a timer and check how much time has passed
[14:50:53] <beaky> even with 100% pwm, my smps is only outputting 2V out of its 18V supply. why is that
[14:51:43] <vsync_> need more voltage try mains
[14:52:35] <N1njAway> Neon sign transformer.
[14:52:38] <beaky> but mains is AC i need step down trasnormer and bridge
[14:53:48] <vsync_> just add diodes they fix everything
[14:54:38] <N1njAway> http://www.youtube.com/watch?v=rLDgQg6bq7o is also a good guide
[14:58:15] <vsync_> reciprocation dingle arm
[14:58:24] <vsync_> is the key
[15:02:55] <N1njAway> http://www.youtube.com/watch?v=2fjcJp_Nwvk is v2, and http://www.youtube.com/watch?v=RXJKdh1KZ0w is v3
[15:07:42] <vsync_> okay. really OT, but how come the russians are that much into FLAC?
[15:08:29] <vsync_> i find it hard finding flac releases other than out of russian people who seem to keep them to themselves... hypothetically speaking, of course... I wouldn't steal
[15:15:15] <beaky> what is flac
[15:20:10] <vsync_> nothing related to smpsing
[15:20:56] <OndraSter__> :D :D
[15:21:52] <OndraSter__> vsync_, because there are 3 drunk russians with "3kW stereo" per every average "80W stereo american"
[15:26:47] <vsync_> well
[15:27:00] <vsync_> I traverse in the milliwatt-range
[15:27:06] <vsync_> Huh.
[15:27:30] <OndraSter__> notice the " "
[15:28:22] <vsync_> yeah. Well quality has nothing to do with the power ratings i'm afraid... Seems just funny how russians are, arguably better at this
[15:30:09] <OndraSter__> xr
[15:30:10] <OndraSter__> ye
[15:30:14] <OndraSter__> like I said, notice the "
[15:31:02] <vsync_> yea :)
[15:31:21] <vsync_> need a desktop hp amp. Suggestions please? :)
[15:31:43] <vsync_> preferably a dac+amp combo
[16:06:16] * twnqx uses a standard yamaha home cinema amp
[16:07:02] <Tom_itx> onkyo fwt
[16:07:04] <Tom_itx> w
[16:07:39] <OndraSter__> I am using 80s vintage technics su-500
[16:07:45] <OndraSter__> 2x40W output rated
[16:07:56] <OndraSter__> the one and only I could get cheaply with 4Ohm dive capability.
[16:08:03] <OndraSter__> $10 as "should be working" :D
[16:08:16] <vsync_> as said before i don't really needs tens of watts =D
[16:08:39] <OndraSter__> nobody does
[16:08:40] <OndraSter__> except china
[16:08:59] <vsync_> hah
[16:09:29] <vsync_> but i think onkyo doesn't produce desktop sized amps?
[16:09:38] <vsync_> Think they're all high power full size?
[16:09:56] <Tom_itx> probably
[16:09:58] <Tom_itx> mine is
[16:09:59] <vsync_> would want soemthing compact that fits in the desktop since i'd only be driving headphones and possibly small speakers
[16:10:17] <vsync_> as i'm really disappointed in this dac in my fiio
[16:10:54] <vsync_> works okay as an amp but using it on the go as well so i need another one for home
[16:41:54] <hugogee> Can i reduce the size of a hex file be removing a libraries unused functions?
[16:42:32] <hugogee> In otherwords is the entire library compiled or only the functions which i call?
[16:47:45] <OndraSter__> are you using atmel studio?
[16:47:48] <OndraSter__> or manually compiling it?
[16:48:31] <hugogee> arduino ide, for this particular test although i plan on using avr-gcc
[16:49:39] <hugogee> s/test/test.
[16:50:53] <vsync_> #arduino
[16:52:32] <hugogee> vsync, its a rather simple question and not particular to arduino. i was just testing a new breakout board and decided to use the ide. So should i compile it with make then come back here and ask the same question? seriously.
[16:57:40] <OndraSter__> well you cannot modify gcc options really
[16:57:45] <OndraSter__> if you could there is a gcc flag for it
[16:57:46] <OndraSter__> linker
[17:01:14] <hugogee> OndraSter__, thanks
[17:01:31] <OndraSter__> you can do it manually
[17:01:33] <OndraSter__> if you want to
[17:01:37] <OndraSter__> but too much work
[17:01:54] <jenia> hello everyone.
[17:02:04] <hugogee> greets jenia
[17:02:09] <jenia> i dont know if i should ask this on arduino or here
[17:02:15] <jenia> well here it goes:
[17:02:43] <jenia> i have putty thats connected to ttyACM0
[17:03:01] <jenia> but when i restart the avr, putty closes of-course
[17:04:15] <jenia> so my question is how to use putty for serial communication with the avr chip
[17:04:19] <jenia> ?
[17:10:15] <hugogee> jenia checkout avrdude
[17:12:09] <jenia> thanks a lot
[17:18:26] <joshbillions> Does anyone have experience with www.polarssl.com or implementing SSL on an ATmega?
[17:18:36] <joshbillions> (ATMega2564RFR2 specifically)