#robotics Logs
Jul 27 2019
#robotics Calendar
01:36 AM fling: rue: Hello.
01:40 AM fling: How to upload a firmware without uploading a bootloader?
01:42 AM zhanx: the collapse made it spin up better
01:42 AM rue_mohr: ?
01:42 AM rue_mohr: ok
01:43 AM zhanx: sounds like a rocket a full test
01:43 AM rue_mohr: yup
01:48 AM fling: rue_mohr: I flashed the bootloader successfully
01:49 AM fling: rue_mohr: then I uploaded marlin multiple times and everything worked
01:49 AM fling: rue_mohr: but I bricked it with the last upload somehow and can't upload anymore
01:49 AM fling: Need to burn the bootloader again probably
01:49 AM fling: And arduino ide is probably uploading a bootloader together with marlin
01:50 AM fling: And it got bricked becasue something gone wrong with the last upload ;>
01:51 AM rue_mohr: no, the bootloader has to be burned on its own
01:51 AM rue_mohr: the bootloader is not overwritten when you load firmware
01:51 AM rue_mohr: its in a protected space
01:51 AM rue_mohr: that the bootloader cannot modify
02:00 AM fling: rue_mohr: so I only flashed it over usb but still was able to brick it somehow.
02:00 AM fling: I don't get it! :P
02:01 AM rue_mohr: is it much work to reflash the bootloader?
02:09 AM fling: rue_mohr: not really, need to reconnect it with rpi3 again
02:09 AM fling: Yes I figured out how to flash it with rpi3 haha
02:09 AM fling: needed to use pin2 instead of pin1
02:09 AM fling: and rpi3 survived the 5v on mosi/miso
02:09 AM rue_shop1: ok, well you might want to set it up so that you can do it easily, you might have to do it a few times
02:10 AM fling: what?
02:10 AM rue_shop1: well, you oopsed once, so its probably going to happen a few more times
02:10 AM fling: right
02:10 AM fling: And I don't know what caused it.
02:10 AM fling: If the bootloader should not be reflashed hmmm
02:25 AM rue_shop1: you will find a pattern
02:26 AM rue_shop1: keep working to your goal
03:16 AM fling: haha
03:16 AM fling: Can't I tell arduino ide not to touch the bootloader?
03:42 AM rue_mohr: rue_mohr> the bootloader is not overwritten when you load firmware
03:42 AM rue_mohr: not by usb
03:43 AM rue_mohr: if your using a programmer, you can overwrite the bootloader
03:43 AM rue_mohr: but it sounds like you might just want to write the marlin firmware with your programmer anyhow
03:43 AM rue_mohr: less trouble it seems
03:43 AM rue_mohr: what do you keep adjusting?
05:34 AM Jak_o_Shadows: yeah, flyback, similar chips to the knock-off salae logic analyzer I think
05:34 AM Jak_o_Shadows: the fx2-law ones
05:34 AM Jak_o_Shadows: so they are easy to get as well
07:51 AM fling: rue_mohr: but I bricked it over usb somehow
08:09 AM fling: The last successfull upload https://bpaste.net/show/IKue
08:26 AM fling: rue_mohr: right, needet to reflash the bootloader with rpi3 again
08:27 AM fling: rue_mohr: to get upload over usb working
10:22 AM flyback: hey
10:22 AM flyback: EH?-HOLE
10:22 AM * flyback Pokes rue_bed
10:22 AM flyback: rue_mohr,
10:22 AM flyback: did you know ome o the ftdi serial chips
10:23 AM flyback: has a hack that can emulate usb ehci debug mode
10:23 AM flyback: which is that thing that lets you just write to a ehci controller register
10:23 AM flyback: no driver, no stack
10:23 AM flyback: and emulates a serial port
10:23 AM flyback: for kernel debug messages etc
10:23 AM flyback: even windows will use it as a official ehci debug cable
11:17 AM flyback is now known as JONNYCARSON
11:18 AM JONNYCARSON is now known as flyback
11:42 AM rue_bed: I stay away from ftdi
11:49 AM flyback: you should bit your tongue for this thing though
11:49 AM flyback: and use silicon image uarts for everything else like I do
11:49 AM flyback: :)
11:49 AM flyback: the ehci debug mode gives you the serial console that systems used to have but don't anymore
11:50 AM flyback: for doing kernel debug of linux or windows
11:50 AM flyback: all it requires is a memory write no fancy usb stack etc
11:50 AM flyback: but only one company made a cable and propritary nonsense
11:50 AM flyback: till someone on the coreboot team discovered this hack
11:50 AM flyback: but yeah I don't want to deal with ftdi either aftfer their bricking fiasco
11:52 AM rue_bed: summer is ending
11:52 AM flyback: won't miss it
11:53 AM flyback: I prefer fall
11:53 AM flyback: only problem is the wasps, yellow jackets and hornets get more aggressive as they prepare for winter
11:53 AM flyback: I have 0 heat tollerance anymore
11:53 AM flyback: body is broken
11:56 AM rue_bed: I gotta giddy up on my cnc machine
02:41 PM rue_shop1: hahah amy goggles are too hot