#avr | Logs for 2015-04-23

Back
[03:32:33] <Ad0> there has to better way to debug than using a LED in different blinking rates? :D
[03:37:46] <Xark> Ad0: Atmel Dragon (or ICE). :)
[03:38:14] <Xark> Ad0: Or UART perhaps (TX via bitbang is not too hard...)
[03:38:50] <Ad0> hehe
[03:38:54] <Ad0> atmel dragon vs ice?
[03:39:58] <Ad0> ice replaces the dragon rite
[03:40:58] <Xark> Pretty much.
[03:41:17] <Xark> Dragon may still be cheaper (but limited and "ugly").
[03:41:50] <Xark> However, works nicely with <most 64KB AVR8 chips AFAIK
[03:42:04] <Xark> <64KB flash*
[03:43:12] <Ad0> ATATMEL-ICE Debug/Programmer
[03:43:38] <Ad0> it's cheap
[03:44:20] <Ad0> roughly the same price
[03:45:10] <Ad0> have you worked with DS18B20?
[03:48:36] <Xark> Ad0: For the basic one. ~$90 for the one with all the cables IIRC
[03:49:16] <Xark> Yes, I have some of these https://www.adafruit.com/products/381
[03:50:04] <Tom_itx> there's a cheaper all in one board than the dragon now
[03:50:22] <Xark> The Atmel-ICE Basic?
[03:50:28] <Tom_itx> iirc yes
[03:50:45] <Xark> Yeah, ~$50 with on cable, ~$90 with a full set
[03:50:49] <Xark> one*
[03:50:57] <Tom_itx> or you can spend 2x as much and get cables and a case for it
[03:51:22] <Tom_itx> you get none cables with the dragon
[03:52:24] <Tom_itx> led works fine for 90% of things
[03:52:29] <Xark> Heh, not even a case (and a bunch of unpopulated stuff on the PCB). :)
[03:53:03] <Xark> Tom_itx: Yeah, LED is not too bad. When you get to "multiple frequencies", perhaps simple TX UART might be nice (depending).
[03:53:03] <Tom_itx> it comes with a cardboard case
[03:53:31] * Xark finds his logic analyzer totally useful for debugging MCU stuff (more than software debugger often).
[03:53:42] <Xark> I call that a box. :)
[03:53:53] <Xark> It did have a nice gold foil dragon on it...
[03:53:53] <Tom_itx> yeah i like my saleae
[03:54:24] <Ad0> Xark: cool
[03:54:32] <Ad0> I am struggling with this sensor on AVR
[03:54:56] <Ad0> it's a DS18B20+PAR which is only for parasitic
[03:55:26] <Ad0> tried to use this library http://siwawi.bauing.uni-kl.de/avr_projects/tempsensor/
[03:55:31] <Ad0> but it finds no sensors
[03:55:47] <Xark> Ad0: I see. I am not real familiar with it, I have only run some sample code (and it worked).
[03:56:02] <Xark> I don't think I used parasitic mode...
[03:56:42] <Ad0> where's the sample code?
[03:57:26] <Xark> That "one wire" stuff seemed a bit wacky (but again, I didn't re-implement it).
[03:57:32] <Xark> Ad0: I believe I just used https://www.pjrc.com/teensy/td_libs_OneWire.html
[03:58:10] <Xark> Ad0: You may be more interested in the One Wire library source I suspect...
[03:59:45] <Ad0> that's arduino though
[04:00:08] <Xark> Runs on AVR
[04:00:36] <Xark> You don't need to copy the header pin spacing. :)
[04:02:15] <Ad0> don'y you need arduino IDE and a bootloadeR?
[04:02:55] <Xark> Ad0: Not to look at one-wire library source...
[04:03:04] <Xark> (or run it even).
[04:03:15] <Ad0> hehe
[04:03:18] <Xark> IDE is just avr-gcc (not even any preprocessing on libraries).
[04:04:07] <Ad0> ok
[04:05:28] <Xark> (there is a zip on that link to the lib, BTW)
[04:25:02] <Ad0> yeah thanks
[08:47:24] <Tekkkz> Hello, I'm on Ubuntu 14.04 and want to use the ATMEGA32u4 Breakout Board from Adafruit with the CDC Bootloader and the programmer type for that avr109. Here is my udev rule: http://pastebin.com/AbSM8X5v and when I want to flash with avrdude it is everytime: device busy; how t ofix this?
[11:43:43] <Tekkkz> hello
[11:44:19] <Tekkkz> someone have ubuntu? i need help, my problem is that my udev rule which works on arch doesnt work on ubuntu but its correct. how to fix, google didnt helped me
[11:44:27] <LeoNerd> Ahhh udev
[11:44:39] <LeoNerd> So easy and simple to use, and debug; always works as you expect..
[11:44:44] <LeoNerd> ... wait no, I'm thinking of something else
[11:45:02] <Tekkkz> you wanna check my rule to support me better?
[11:45:11] <LeoNerd> I'm not sure I could be much help
[11:48:29] <Tekkkz> http://pastebin.com/8ZVvgzrY
[11:49:59] <Tekkkz> and? any ideas what could be wrong?
[11:50:14] <LeoNerd> You're using pastebin.com again
[11:50:18] <Tekkkz> i read something about the ubuntu something manager but dont know anything about it
[11:50:28] <Tekkkz> ya sory i forgot what i should use
[11:50:33] <LeoNerd> *anything* else
[11:50:37] <Tekkkz> hm?
[11:50:46] <LeoNerd> Hell I'll take manually scp'ed txt files onto random webservers, over pastebin.com
[11:51:04] <LeoNerd> Personally I like pastie.org, but seriously; use *absolutely any other paste site in the world* than pastebin.com
[11:51:11] <Tekkkz> why?
[11:51:29] <LeoNerd> 17:29 <perlbot> LeoNerd: ugly, annoying, slow, mangles some input, weird captchas, ad and JS heavy, screws up copy paste. use something else. (see: notpastebin)
[11:51:34] <LeoNerd> (to save me retyping it)
[11:52:32] <Tekkkz> okay
[11:52:41] <Tekkkz> but for this time you can look at it please?
[11:53:13] <LeoNerd> Yeah; no idea
[11:53:18] <LeoNerd> It looks syntactically valid as a udev line
[11:53:29] <LeoNerd> I have no idea if the information in the fields is correct, nor if it has the right behaviour
[11:53:32] <Tekkkz> yeah it worked on arch linux well, but on ubuntu not
[11:53:38] <LeoNerd> I personally have never really worked out how to debug udev anyway
[11:56:12] <Tekkkz> hm thx im away asking somewhere else cu
[12:14:42] <jstodberg> was about to ask a question but discovered the tutorials at Avrfreaks
[12:17:30] <LeoNerd> :)
[16:45:37] <schotter> hi, is it possible to debug with dragon_isp and gdb under linux? i know it's possible through jtag, but through isp?
[16:48:06] <Xark> schotter: Perhaps http://avarice.sourceforge.net/ "The AVR Dragon is a low-cost offering from Atmel, and is also supported."
[16:55:53] <schotter> Xark: thx looks good
[17:06:00] <Tom_itx> the dragon isn't the lowest cost offering anymore though
[17:31:21] <LeoNerd> mega 328. UART set up to talk to PC. stdout set up to write bytes to UART. fputs() was working yesterday. Today, it seems to be causing the chip to reboot every second.
[17:31:26] <LeoNerd> What thoughts might I look at?
[18:01:07] <LeoNerd> Mehhh...
[18:01:18] <LeoNerd> This is almost(heh) as if avr-libc's own fput(s/c) doesn't work
[18:01:20] <LeoNerd> properly
[18:02:27] <LeoNerd> I'm calling fputs("BOOT MCR=", &uart_out) and all that gets printed is BOO
[18:02:34] <LeoNerd> then it seems to give up
[18:13:20] <Mr_Sheesh> 'almost'?
[18:14:23] <LeoNerd> OK.. here's something -really- odd
[18:14:35] <Mr_Sheesh> I take it if you replace that with fputc's to put out the same thing, it does similar toxic behavior, even one char at a time?
[18:14:46] <LeoNerd> http://pastie.org/10110617 <== this prints BOBOBOBO
[18:14:54] <LeoNerd> It only prints the first two letters, once a second
[18:15:03] <LeoNerd> If I remove the delay, it prints BBOOT MCUSR=00222
[18:15:06] <LeoNerd> lots of times, quickly
[18:16:22] <LeoNerd> delay at 30 and it still just prints BO, just much faster
[18:16:50] <LeoNerd> delay 1 the same
[18:17:06] <LeoNerd> remove the delay and I get lots of string
[18:17:48] <LeoNerd> I'm suuuuure I had this working
[18:19:32] <LeoNerd> It's not echo-related from the PC; behaviour unchanged if I disabled RXEN and physically unplug the RX pin even
[18:20:21] <LeoNerd> Something weird I've forgotten? I'm quite sure this all worked up until yesterday or so
[18:22:35] <Mr_Sheesh> I'm too tired to see anything atm, in fput02x8 it bugs me a lil that you change x instead of adding a uint8_t lo and setting that to x & 0x0f but that's NOT going to cause this.
[18:23:26] <Mr_Sheesh> I'm ridiculously picky at times, comes from some of my work having to be that way :P
[18:23:53] <LeoNerd> Oooooh oops
[18:23:59] <LeoNerd> You have to manualyl clear the TXC0 flag ;)
[18:24:10] <LeoNerd> Simply writing another byte to UDR0 won't do that
[18:24:39] <LeoNerd> \o/ and lo
[18:24:47] <Mr_Sheesh> What I get for being up for 32+ hours. Glad you caught it! :)
[18:25:20] <Mr_Sheesh> I get too tired and I end up only seeing the trees and can't see the forest LOL
[18:30:25] * Lambda_Aurigae just burns the forest and makes charcoal.
[18:36:48] <masoudd> Was that a "Don't starve" reference?
[18:37:53] <Lambda_Aurigae> no, just a failed attempt at humor.
[18:39:11] <masoudd> It was funny if it was a reference to the game
[18:39:18] <Lambda_Aurigae> no clue what game.
[18:39:33] <Lambda_Aurigae> never heard of a game called "Don't starve"
[18:42:29] <masoudd> It's on steam
[18:42:41] <Lambda_Aurigae> don't have steam.
[18:42:59] <Lambda_Aurigae> I don't play many games though.
[18:43:00] <masoudd> just google it
[18:43:11] <masoudd> If you are interested to know what it is
[18:43:12] <Lambda_Aurigae> just x-plane and kerbal mostly.
[20:46:03] <Valen> space engineer is pretty fun