#avr | Logs for 2015-04-10

Back
[01:47:28] <rue_bed> LeoNerd, did you know that if you write a 1 to PINx it will toggle the pin?
[01:47:40] <rue_bed> if its an output
[03:42:54] <skroon> when i'm setting a Timer to trigger a ISR in 5 seconds from now, i'm noticing that as soon as I enable the timer, it's already executing the ISR... is this to be expected?
[06:54:13] <hyrixo> Hello everyone , i have a problem with avrdude in atmel studio, he basicly doesn't do anything and doesn't show up in the logs, i did this turorial and adjusted where needed http://www.jayconsystems.com/tutorial/atmerpt1/ , anyone got a idea why he'd do this ?
[07:02:02] <Lambda_Aurigae> no clue.
[07:02:11] <Lambda_Aurigae> atmel studio won't run on linux.
[07:06:21] <hyrixo> It works now by installing a other arduino version
[07:09:25] <Tom_itx> avrdude won't run in studio
[07:09:33] <Tom_itx> it uses different usb drivers
[07:11:39] <hyrixo> Well now it's able to upload to my arduino board from the studio so that's what i wanted
[07:42:12] <avrdude> if i want to sink current into a pin (to drive a LED connected to 3v3) how do i do that?
[07:42:26] <avrdude> should i set the pin as input, and pull it low?
[07:42:43] <Tom_itx> no
[07:42:43] <avrdude> or can i set it as output and pull it low? does it matter?
[07:42:48] <Tom_itx> yes
[07:42:55] <avrdude> which is it?
[07:42:58] <avrdude> last one?
[07:43:11] <Tom_itx> no, yes, yes, yes
[07:43:45] <avrdude> so "yes" to "which is it?", and nothing to "last one?" ?
[07:43:46] <Tom_itx> it should be output no matter
[07:44:15] <avrdude> it's kind of conter-intuitive to set it as an output though
[07:44:30] <Tom_itx> it's still an output
[07:44:45] <Tom_itx> then it's just a matter of sinc or source
[07:45:57] <Tom_itx> and you may also need a pullup on it to keep the led off
[07:46:03] <Tom_itx> or it may glow 'dim'
[07:46:12] <LeoNerd> "output" isn't really the right word
[07:46:32] <LeoNerd> The DDR bits control whether the totempole driver is active; that's the part that lets the MCU decide the voltage level on the pin
[07:46:34] <Tom_itx> it's not an input
[07:47:00] <LeoNerd> Regardless of the DDR bits, the MCU can always read the logic state of the pin (via the PIN register)
[08:40:08] <skroon> when becomes dynamic memory less of a problem? From what I understand it has to do with memory fragmenetation and the tighter the memory constraints the bigger this issue becomes, i'm wondering at what size of memory does it become less of an issue?
[08:41:50] <skroon> and is there a way to see if memory fragmentation is happening a lot on my mcu ?
[09:12:30] <rue_house> the best way to solve memory fragmentation is to not treat it like a computer and not use malloc, manage space in static blocks yourself
[09:13:26] <rue_house> its a microcontroller, if you want a computer, use an ARM board!
[09:41:23] <Student> Hello is there a way to check what is going wrong with my interrupt ?
[09:42:03] <Student> http://pastebin.com/73zqzYcE is my code
[10:21:44] <skroon> rue_house: then the question is which ARM board would be "oke" for using dynamic memory? ARM Cortex-M0+ I guess doesn't suffice?
[10:22:04] <skroon> what's the criteria for doign dynamic memory allocation on embedded computers?
[10:55:54] <devilsadvocate> skroon: don't unless you either know exactly what you're doing or have absolutely no other option
[10:56:35] <devilsadvocate> skroon: ARM Cortex A doesn't really come under the usual embedded computer domain in that context
[10:57:17] <devilsadvocate> skroon: Cortex M(0-4) is somewhat borderline. If you're doing things with it you could also do with an AVR, dynamic alloc is probably fine
[11:33:54] <markm> ok so i moved my project dir off c: to a thumb drive to take home. when i tried to build it at home it wouldnt build, i had all kinds of problems
[11:34:13] <markm> in the end i deleted the project files (not sources) and stupidly blew away config i know i need
[11:34:23] <markm> how do i make my app build into the boot sector again?
[11:34:32] <markm> i think its a switch on the liner but i forget
[11:34:48] <markm> atmel stuido 6 btw
[11:35:07] <vsync_> how's lawsuit?
[12:24:27] <tecdroid> hi
[12:25:19] <tecdroid> i've got some problems utilizing avarice with an avrdragon and an xmega. does anybody have any experience that may help?
[12:55:39] <xrlk2> is there a cheap 2.4 ghz VCO
[12:55:46] <tecdroid> back
[12:56:59] <xrlk2> ok found 1
[12:57:14] <tecdroid> can someone tell me why i can connect the avr but not sync my x128a1 via avarice 2.11 and avrdragon hw 7 /fw 6.11??
[12:57:15] <xrlk2> does any1 have experience w/ sampling from maxim
[12:57:26] <xrlk2> i've probably sampled an IC from there b4 but 4get
[12:59:01] <tecdroid> i also tried dw but this didn't connect anyway
[13:00:34] <LeoNerd> tecdroid: I'm not sure how much of this channel uses all the fancy Atmel tools (avrice, dragon, studio, etc..) so you might not get much reply to your question.. ;/
[13:02:22] <xrlk2> have u made a VCO
[13:02:50] <xrlk2> i would like to be an EE
[13:02:53] <xrlk2> but i am not
[13:06:33] <tecdroid> analog vco or digital one? a ne 555 is usable for a simple one
[15:32:46] <LeoNerd> rue_bed: I did, barely at the back of my mind, yup
[15:33:05] <LeoNerd> (on the subject of PIN writes to toggle)
[22:34:00] <tanuki> Is there a significant difference between installing the CrossPack tools and installing the equivalent tools via MacPorts?
[22:34:35] <Xark> tanuki: Probably not, although likely different GCC versions.
[23:28:18] <Xark> m4t: I think "it depends". Probably it will go low next cycle (but maybe there is capacitance or something that will delay it).