#avr | Logs for 2013-09-20

Back
[01:25:50] <rue_bed> ooo is abc helping design chips now?
[01:28:33] <Joggl> cause of the big erratas on atmel datasheets?
[05:39:21] <netlynx> I'm programming on AVR Xmega series and found something curious. I'm using a pointer to run over a list in flash. each item uses 2 bytes in flash, but the compiler adds 4 to the pointer increment (I expect 2). (http://pastebin.com/f2uZpYM3). What is wrong here?
[05:41:33] <OndraSter__> good question
[05:41:35] <OndraSter__> does it work?
[05:41:55] <OndraSter__> actually, doesn't xmega have 4byte flash pointers? :P
[05:42:22] <OndraSter__> can't remember really, have not touched micros in a few months
[05:42:54] <netlynx> OndraSter__, it does not work.
[05:43:22] <OndraSter__> hmm
[05:45:51] <netlynx> Never the less if it is a 4 byte pointer. The elements in flash (which are pointers themself use only 2 bytes.
[05:47:20] <OndraSter__> how is the menu_list_t
[05:47:21] <OndraSter__> defined as?
[05:49:54] <OndraSter__> declared, even
[05:53:48] <netlynx> OndraSter__, http://pastebin.com/0aEvdz5D
[05:59:49] <netlynx> OndraSter__, Do you have any idea why this goes wrong?
[06:06:42] <OndraSter__> well you are increasing ptr++
[06:06:58] <OndraSter__> and sizeof(ptr) is 4
[06:07:32] <OndraSter__> char* and void*
[06:08:45] <OndraSter__> I might be wrong, I have not touched C in 4 months and my brain is melting from PHP
[06:08:50] <OndraSter__> sorry if I am :D
[06:08:56] <OndraSter__> and poof, I am away!
[06:46:16] <Fornaxian> http://dangerousprototypes.com/2013/09/20/ti-32l100c-discovery-kit-sample-offer/
[07:07:50] <Joggl> Fornaxian, sometimes the auto-blog-post-robot from DP post nice things...
[07:08:08] <Fornaxian> yeah.
[07:08:13] <Fornaxian> just ordered one of those.
[07:13:24] <Fornaxian> has a nice little STM programmer integrated with connection for external device programming as well.
[07:14:06] <Fornaxian> the main chip's USB pins aren't connected to a USB socket but they are brought out on the GPIO header so should be easy enough to hook up.
[07:22:32] <hetii> Hi :)
[07:23:07] <hetii> is there any lib for some avr that allow communicate with android ADK ?
[07:30:45] <netlynx> hetii, LUFA contains a demo application for Android Accessory Host ( http://www.fourwalledcubicle.com/LUFA.php ) Is that what you're looking for?
[07:32:44] <hetii> well i need just push some data over rs232 to android so nothing spectacular :)
[08:43:40] <RikusW> PMV56XN and PMV65XP seems like nice litte transistors :) SOT32 capable of 3.5A !!
[08:43:49] <RikusW> *SOT-23
[08:57:13] <jadew> Fornaxian, I ordered a discovery board two days ago :)
[08:57:34] <jadew> wish I knew about the samples
[09:03:10] <jadew> Casper, any news on the scope?
[09:03:30] <Casper> not yet
[09:03:34] <Casper> gone to work now
[09:03:45] <jadew> ah, ok
[15:20:01] <megal0maniac> Went to the South African National Space Agency today. They have cool stuff
[15:21:32] <vsync_> Yeh one would imagine. Have they figured out how to get enough power out of a cow to take them to orbit or?
[15:22:48] <megal0maniac> They had huge PCBs with amplifiers and capacitor banks for some high frequency something or other antennae in Antarctica
[15:23:14] <megal0maniac> And other exciting stuff I didn't understand
[15:26:03] <vsync_> funded by mandela, they are trying to sweep outer space for apartheid
[15:35:43] <specing> megal0maniac: have they launched a rocket into space yet?
[15:40:53] <megal0maniac> No, they don't do that. I don't think
[16:04:11] <antto> if you hook a bare AVR chip to a ISP programmer - is that enough?
[16:04:31] <antto> or do you have to have additional components as well?
[16:04:37] <megal0maniac> Usually it needs power too.
[16:04:52] <antto> the power comes from the ISP
[16:05:06] <megal0maniac> But that's all. If fuses are set for an external clock, then you'll need that too
[16:05:21] <megal0maniac> Which you'll discover when programming fails
[16:05:31] <antto> ah
[16:05:50] <antto> can you temporarily change that fuse setting?
[16:06:02] <antto> ..without external clock
[16:06:03] <megal0maniac> No
[16:06:06] <antto> heh
[16:06:09] <antto> damn ;]
[16:06:12] <megal0maniac> Unless you use HVPP or JTAG
[16:06:26] <megal0maniac> And some programmers provide a clock output
[16:06:28] <Tom_itx> antto, http://tom-itx.dyndns.org:81/~webpage/how_to/atmega168/mega168_howto_main_index.php
[16:14:09] <antto> Tom_itx that little schematic there, it doesn't show any external clock
[16:14:58] <Tom_itx> no the example uses the default internal oscillator
[16:15:05] <antto> in my case, the fuses are set to use external clock (a 16MHz resonator thing) and the programmer is a USBASP which supplies 5V via the ISP cable already
[16:15:50] <megal0maniac> So give it a 16MHZ resonator thing
[16:15:54] <Tom_itx> so you need an external clock then
[16:16:05] <antto> only that the said resonator is part of the PCB and we gotta unplug the AVR chip from it, thus there's no longer connection with any of the components, just bare AVR
[16:16:13] <antto> yeah
[16:16:47] <Tom_itx> my programmers provide a clock signal
[16:17:23] <antto> the usbasp does too, doesn't it?
[16:17:31] <Tom_itx> you still need minimal external components
[16:17:38] <Tom_itx> not that i know of
[16:17:44] <antto> hm
[16:17:45] <Tom_itx> very few programmers do
[16:18:06] <Tom_itx> sck isn't the same as a clock signal
[16:18:12] <antto> well, in any case, our chips are supposed to use external clock (16MHz)
[16:20:07] <antto> i mean, that's what their fuses are set to
[16:20:24] <Tom_itx> then you know what you need to do
[16:20:43] <antto> so apart from providing the said resonator, and the 5V - anything else?
[16:21:11] <Tom_itx> a couple .1uf caps at the chip power pins
[16:21:21] <Tom_itx> a pullup on reset
[16:21:21] <vsync_> you get +5 V off the programmer now don't you
[16:22:09] <antto> hm
[21:44:26] <Kre10s> Anyone doing FFT on an 8bit avr? maximum adc according to data-sheet is 125Ksps... nyquist would put the maximum detectable frequency at 62KHz. But are there any libs for the avr8s that can do fft fast enough?
[22:19:57] <Casper> jadew:
[22:20:02] <Casper> Good morning,
[22:20:02] <Casper> We would like to inform you that we are still waiting for the RIGOL DS1104Z to arrive at our warehouse. Unfortunately, we do not have yet an estimated shipping date for your order.
[22:20:02] <Casper> We sincerely apologize for any inconvenience. We will make sure to update you as soon as we receive any information regarding this unit.
[22:20:02] <Casper> We appreciate your patience and understanding on this matter.
[22:20:02] <Casper>
[22:20:19] <Casper> . . . they better not stretch that too long...
[22:20:22] <jadew> crappy
[22:22:20] <Casper> I wonder how long I shall wait until I ask for a cancel...
[22:31:13] <Casper> I wonder if I can get some rebate due to the delay...
[22:32:26] <jadew> it's deffinitely shitty on their part
[22:36:21] <Casper> I already found a 5% off coupon... so I think I won't be able to get more rebate...