#avr Logs

Jul 29 2021

#avr Calendar

06:02 AM jmiehe1 is now known as jmiehe
07:36 AM specing_ is now known as specing
02:54 PM Duality: hey
02:54 PM nohit: hey o/
02:55 PM Duality: question trying to work with this atmega2560 that is on a arduino board but getting errors and don't know why here is the output: https://termbin.com/kixk
02:55 PM Duality: i wrote my own makefile for uploading and i am using avrdude
02:55 PM Duality: i don't understand it reads the id fine but then when it wants to program it goes wrong
02:56 PM Duality: been working at this for two days now in my spare time i just want to program some things ... lol
02:56 PM Duality: i don't remember it being this hard to setup
02:58 PM nohit: no idea
02:59 PM Duality: i'll try a uno
02:59 PM Duality: it has a atmega328p
03:00 PM qu1j0t3: I _never_ got a Mega to work. I moved to ARM instead.
03:00 PM qu1j0t3: and yeah 328P is solid as a rock :)
03:01 PM Duality: yea 328p just straight up works
03:01 PM nohit: rue_mohr probably can help you, i havent touched avrs for ages
03:01 PM nohit: wake up rue
03:02 PM rue_mohr: I'm awake
03:02 PM rue_mohr: what do I need help with?
03:02 PM rue_mohr: or someone
03:02 PM rue_mohr: ok, I just woke up
03:02 PM rue_mohr: it might not be 100% yet
03:04 PM rue_mohr: you need help getting an atmega2560 working?
03:04 PM rue_mohr: thats it?
03:06 PM Duality: yea
03:06 PM rue_mohr: looks like an stk500 issue
03:06 PM rue_mohr: got a cheap avrisp from china kicking around?
03:06 PM Duality: testing the connection works but programming doesn't https://termbin.com/lr8t
03:06 PM Duality: rue_mohr: got a expansive one
03:07 PM Duality: and several others
03:07 PM Duality: :)
03:07 PM Duality: those work fine for programming that is
03:07 PM rue_mohr: try something other than the stk500
03:07 PM rue_mohr: first
03:07 PM Duality: like a different bootloader?
03:07 PM rue_mohr: does it have a bootloader?
03:07 PM Duality: yea
03:08 PM Duality: otherwise it wouldn't respond with the id
03:08 PM rue_mohr: do NOT use 115200 baud when working with a bootloader
03:08 PM rue_mohr: the baud rate does NOT line up with any clock rate
03:08 PM rue_mohr: and I otherwise only program the chips direct
03:08 PM Duality: that's the baud rate the bootloader uses
03:09 PM rue_mohr: ugh
03:09 PM Duality: yea well i wanted to use the serial bootloader just so that i would have a single cable it would make it a tiny bit easier
03:09 PM rue_mohr: k
03:09 PM rue_mohr: try this
03:09 PM rue_mohr: put an arduino bootloader on it
03:09 PM rue_mohr: and program it using the arduino mode
03:09 PM rue_mohr: see if it goes
03:10 PM rue_mohr: I suspect it wont
03:10 PM Duality: you meen -c arduino for avrdude
03:10 PM rue_mohr: its running off a crystal and not the internal RC, right?
03:10 PM rue_mohr: like, not a ceramic resonator but an actual crystal
03:11 PM rue_mohr: the internal RC is barely stable enough for 9600
03:12 PM rue_mohr: I'v had issues with the stability of ceramic resonators for 115200 too
03:12 PM Duality: it has a crystal but not sure if it is running off it
03:12 PM rue_mohr: I usually use a 18.432MHz crystal if I require 115200
03:12 PM rue_mohr: you must have it running off the crystal for sure to do 115200
03:13 PM rue_mohr: a 9600 bootloader might be a bit slow, but it'll work
03:13 PM rue_mohr: things that work seem to be undervalued these days
03:14 PM rue_mohr: people like things that are fast instead (but usually dont work)
03:18 PM Duality: burned a arduino bootloader
03:18 PM Duality: says it's not responding using this command: avrdude -c arduino -p atmega2560
03:19 PM Duality: i check the fuses they say: Ext. Click; Start-up time: 6 CK + 0ms;[CKSEL=0000 SUT=00]
03:23 PM Duality: thses are the fuses: E:F4, H:D9, L:FF
03:24 PM Duality: this is so strange uploading from the arduino ide works i suspect there is some configuration at play here
03:24 PM Duality: atleast that excludes the hardware from being a problem
03:27 PM Duality: put the ide into a verbose mode
03:27 PM Duality: and it shows it's using "-c wiring"
03:27 PM Duality: for programming the atmega2560
03:28 PM Duality: but if i try that myself it still doesn't work
03:41 PM Duality: you know what
03:41 PM Duality: i give up
03:41 PM Duality: i'll just hook that isp programmer on there
03:41 PM Duality: and have two cables
03:41 PM nohit: dont
03:45 PM Duality: arduino's avrdude works
03:45 PM Duality: my system installed one doesn't
03:45 PM Duality: no idea why
03:46 PM qu1j0t3: oof i'm getting déjà vu now
03:46 PM qu1j0t3: from when i unsuccessfully went down that rabbit hole
03:46 PM Duality: this is the command: https://termbin.com/hheo
03:47 PM Duality: at first i thought it might be avrdude.conf differs but using my system one it still works
03:47 PM Duality: with the avrdude from arduino
03:48 PM Duality: (some person named jenkins made arduino avrude look avrdude.conf in a weird place on his own system ... lol )
03:49 PM Duality: I am even more confused now
03:50 PM Duality: I got it working
03:50 PM Duality: somehow
03:50 PM Duality: found it
03:51 PM Duality: apparently you have to specify -D
03:52 PM Duality: Disable auto erase for flash.
03:52 PM Duality: and now I have no time left to have some fun time programming :'(
03:52 PM Duality: oh well
03:58 PM qu1j0t3: work tomorrow?
03:59 PM nohit: nice
04:02 PM Duality: qu1j0t3: you meen me?
04:08 PM qu1j0t3: Duality: Yeah
04:08 PM qu1j0t3: Duality: why do you need to stop hacking
04:08 PM qu1j0t3: just curious
04:09 PM Duality: need to sleep for work :D
04:09 PM qu1j0t3: that's what i figured :(
04:09 PM qu1j0t3: congrats on finding a solution
04:09 PM qu1j0t3: way better than going to bed frustrated, at least :)
04:09 PM nohit: yeah, never leave unsolved problems
04:10 PM Duality: 6 years ago i could go all day even through the night i had no responsiblities i could code for 24 hours straight
04:10 PM Duality: but now i have a job and you know i need the sleep to do my job xD
04:12 PM Duality: anyway gn
04:13 PM qu1j0t3: o/
04:13 PM qu1j0t3: nohit: Sometimes you have to :|
04:13 PM nohit: nite
06:53 PM rue_mohr: Duality, hey, I missed your mesages somehow, are you still here?
06:55 PM rue_mohr: damn, sorry I get a LOT of distrations
07:35 PM specing_ is now known as specing