#garfield Logs
Oct 19 2019
#garfield Calendar
03:27 PM Tom_L: quiet little channel these days
05:04 PM rue_shop1: I havn't been doing much either
05:04 PM rue_shop1: trying to get an stm32 to do pwm
05:04 PM rue_shop1: kinda feel like I'm learing to type again
05:05 PM rue_shop1: this is a great example of wasted time having to switch architectures
05:10 PM rue_shop1: need to rebuild the workspace around this desk
05:10 PM rue_shop1: try and do some stm32 stuff
05:11 PM tiwake: rue_shop1: hey, you know about high voltage or active probes for oscilloscopes?
05:12 PM tiwake: and when I might want a set
05:19 PM rue_shop1: na
05:19 PM rue_shop1: dont do high voltage stuff with the scope
05:20 PM Tom_L: did you finish your porch cover?
05:25 PM tiwake: rue_shop1: at some point I want to build a SLS type rapid prototyping machine
05:25 PM tiwake: which will include a bigass CO2 laser
05:40 PM rue_shop1: k
05:40 PM rue_shop1: Tom_L, accept there is no porch
05:41 PM rue_shop1: you didn't get the url?
05:41 PM rue_shop1: http://ruemohr.org/%7Eircjunk/projects/shopshelter/slide.htm
05:41 PM Tom_L: i don't rememmber
05:42 PM rue_shop1: I'll post another update tonight, I have the lights fixed up and some tables n stuff under there
05:44 PM Tom_L: ahh
06:06 PM rue_shop1: ok, I cleared some space
06:29 PM rue_shop1: ok, I got some workspace
07:49 PM rue_shop1: got it, forgot to set it to an alternate function
07:59 PM Tom_L: what freq?
08:01 PM Tom_L: i don't remember some of those sheds
08:02 PM Tom_L: i remember the fire shed but not the one beside it
08:02 PM Tom_L: http://ruemohr.org/~ircjunk/projects/shopshelter/p1140046.jpg
08:03 PM Tom_L: hope the snow slides off it
08:07 PM rue_shop1: the metal one is the new one
08:08 PM rue_shop1: I have to make two anchors to tie it to the shop
08:11 PM Tom_L: the tin roof one is against the shop?
08:11 PM rue_shop1: its free standing
08:11 PM rue_shop1: on 6x 1" pipe posts
08:11 PM rue_shop1: (the weight is only on 4 of them :/)
08:11 PM rue_shop1: I think one of them is actually hanging, I need to adjust it
08:12 PM rue_shop1: concrete and all, maybe it changed shape when I welded it
08:12 PM Tom_L: no over'engineering there
08:12 PM rue_shop1: :)
08:12 PM Tom_L: i guessed on my patio too
08:13 PM Tom_L: i think it would stand up to just about anything though
08:13 PM rue_shop1: its working out nice
08:14 PM rue_shop1: need to make a master switch for all the plugs and lights under there
08:14 PM rue_shop1: I have a three phase 600A disconnect with nice handle-action
08:14 PM rue_shop1: "Clunk"
08:14 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/patio/patio13.jpg
08:14 PM Tom_L: the end boards ain't goin nowhere
08:15 PM Tom_L: they are bolted thru to the I beam
08:15 PM rue_shop1: :)
08:15 PM Tom_L: and welded to the plate
08:15 PM rue_shop1: ugh, I need a chair with a back
08:15 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/patio/patio18.jpg
08:16 PM Tom_L: you can see the bolts and the tiedown straps
08:17 PM rue_shop1: did you stick some flashing over the ends?
08:17 PM Tom_L: yeah
08:17 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/patio/patio21.jpg
08:17 PM Tom_L: all around the edge
08:18 PM rue_shop1: I mean the exposed end of the beam
08:18 PM Tom_L: and a wood cap on the end on the end of the 2x6
08:18 PM Tom_L: yes
08:18 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/patio/patio19.jpg
08:19 PM rue_shop1: is the space more usefull in spring/fall as weather shelter or summer for sun shelter?
08:19 PM Tom_L: both
08:19 PM rue_shop1: my goal was being a bit more weather independent
08:20 PM Tom_L: gonna add some guttering
08:20 PM Tom_L: rain is washing out the soil on the end
08:20 PM rue_shop1: yea, I'd love a gutter
08:20 PM rue_shop1: I'd be totally into it
08:20 PM rue_shop1: ;)))
08:20 PM Tom_L: i put some plastic up i had but no downspout on it
08:21 PM Tom_L: making a hole now
08:23 PM Tom_L: budget doesn't allow me to replace it right now
08:24 PM zhanx: 3 more parts and the frame is done
08:24 PM Tom_L: is this #2?
08:24 PM rue_shop1: 1 isnt' it?
08:24 PM zhanx: yep
08:24 PM rue_shop1: the cube machine?
08:24 PM zhanx: yes
08:25 PM rue_shop1: photos dude
08:25 PM zhanx: soon, very soon
08:25 PM zhanx: right now its just a pile of parts
08:25 PM rue_shop1: grr these opencm3 examples suck, they stitched too much into them
08:26 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/patio/patio8.jpg
08:26 PM Tom_L: i'm hoping that tree stays healthy
08:26 PM Tom_L: we measured it the other day at 10' circumference
08:26 PM Tom_L: fence height
08:26 PM rue_shop1: you would probably have lots of warning if it dies
08:27 PM Tom_L: it's alway seemed healthy
08:27 PM zhanx: i can tell you that tree is rotting on the right branch
08:27 PM Tom_L: sap from branches cut
08:27 PM Tom_L: i think
08:27 PM zhanx: dark spot at the notch
08:28 PM * rue_shop1 squints
08:28 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/patio/patio15.jpg
08:28 PM Tom_L: from the other side
08:28 PM zhanx: nice
08:29 PM Tom_L: it was probably half that size when i moved in
08:29 PM zhanx: just listen to it in higher winds, when the creaking starts at the notch, get it cut
08:30 PM Tom_L: it's solid
08:30 PM Tom_L: i do though
08:31 PM Tom_L: i'm kinda hoping it outlasts me
08:31 PM zhanx: never know, cant see inside trees
08:31 PM Tom_L: i know
08:32 PM rue_shop1: xray
08:32 PM rue_shop1: zhanx,
08:32 PM rue_shop1: did you see the results from the differential images I did for my 3d scanner?
08:32 PM zhanx: me
08:32 PM zhanx: not that i remember
08:32 PM rue_shop1: it removed all the background noise
08:32 PM zhanx: k
08:33 PM rue_shop1: image 1 with laser line on,
08:33 PM rue_shop1: image 2 with it off
08:33 PM rue_shop1: result = image1 - image2
08:34 PM rue_shop1: http://ruemohr.org/%7Eircjunk/projects/3dscanner/p1100903.jpg
08:34 PM rue_shop1: no?
08:34 PM rue_shop1: nobody remembers anything
08:34 PM rue_shop1: anyhow
08:34 PM zhanx: alot has happened since then
08:35 PM rue_shop1: my point is that I was thinking of a medical imager
08:35 PM rue_shop1: that would use a freaking bright visible light source
08:35 PM rue_shop1: and do differential
08:35 PM rue_shop1: I'm quite sure I could see thru a hand
08:35 PM zhanx: or close to it
08:35 PM rue_shop1: well enough to see things in the hand
08:42 PM Tom_L: how did you attach the wood to the rebar?
08:42 PM rue_shop1: 3/8" cable clamps
08:43 PM zhanx: that works
08:43 PM rue_shop1: (lots of them)
09:05 PM zhanx: rue_shop1, after that last crash, some how, I got the printer tuned better.
09:05 PM zhanx: think the glue up is helping
09:23 PM rue_shop1: k
09:26 PM zhanx: its 89 out, goat pen has a heat lamp on
09:26 PM rue_shop1: is 89 cold?
09:26 PM rue_shop1: isn't 32 freezing?
09:27 PM zhanx: nope owner is going on vacation (texted him before i wrote that) and its gonna be in the 40's soon
09:27 PM zhanx: I was like I will hook up a temp controller to it
09:28 PM rue_shop1: the openCM3 examples suck
09:28 PM zhanx: yep
09:28 PM rue_shop1: they need a proper functionality set
09:29 PM zhanx: i think i used the leaflabs ones when I started
09:29 PM zhanx: http://docs.leaflabs.com/static.leaflabs.com/pub/leaflabs/maple-docs/latest/index-2.html
09:29 PM rue_shop1: are they using cm3?
09:30 PM zhanx: i think opencm3 was based on them
09:30 PM zhanx: leaflabs started it all back in 08-09
09:30 PM rue_shop1: what shocks me tho is how old and unmaintained the opencm3 stuff is
09:31 PM zhanx: that seems par for course these days
09:32 PM rue_shop1: I suppose things like opencm3 aren't going to have the traffic if everyone is using the arduino ide
09:32 PM zhanx: would rather use nano than the ide
09:33 PM rue_shop1: heh, it reprograms so fast I cant see the break in the pwm signal I'm playing with when I reflash it
09:34 PM tiwake: thats... fast
09:34 PM tiwake: what are you using to program it with?
09:34 PM zhanx: knowing rue_shop1 an ISA port on the motherboard
09:34 PM rue_shop1: stlink v2
09:34 PM rue_shop1: :)
09:34 PM zhanx: still have that saved in cause I ever need to use it
09:35 PM rue_shop1: I need to turn my pwm example into an input capture example now
09:36 PM tiwake: pulled out the atmega328 uno dev board and poked at it a bit
09:36 PM tiwake: I don't think I like it
09:36 PM rue_shop1: did you make an led flash?
09:36 PM rue_shop1: why not?
09:36 PM zhanx: tiwake, give it time
09:37 PM tiwake: I'd have to look at the software more closely
09:37 PM rue_shop1: ?
09:37 PM rue_shop1: what were you trying to program it with?
09:37 PM rue_shop1: raw C, right?
09:37 PM tiwake: used the arduino IDE thing and it was doing a lot of things atuomagically
09:37 PM rue_shop1: oh god, well
09:37 PM rue_shop1: yea
09:37 PM tiwake: I don't like magic... lol
09:38 PM rue_shop1: yea, I agree, got it around now?
09:38 PM tiwake: magic is impossible to fix
09:38 PM rue_shop1: I agree
09:38 PM tiwake: yeah I do
09:38 PM rue_shop1: linux windows or mac?
09:38 PM tiwake: linux
09:38 PM rue_shop1: yea, want to play a bit now?
09:39 PM rue_shop1: just do a flashing led, but with C
09:39 PM tiwake: I don't have any capacitors and stuff yet, so I can't really break out the atmega328's I have as 'raw stock'
09:39 PM tiwake: do have the programmer though
09:39 PM tiwake: two actually
09:39 PM rue_shop1: you got a uno tho
09:39 PM rue_shop1: yes?
09:39 PM tiwake: ja
09:39 PM rue_shop1: yea
09:39 PM tiwake: jep
09:39 PM rue_shop1: so we will do raw C with that
09:40 PM tiwake: I've made linked lists and stuff in C before... heh.. its a lot of fun
09:40 PM rue_shop1: so, the uno has an arduino bootloader on it, when it starts up, it will check to see if there is a upload request, and when it times out, it runs the user code
09:40 PM rue_shop1: you can write whatever code you want, it wont overwrite the bootloader
09:41 PM tiwake: oh really? thats annoying
09:41 PM rue_shop1: if you want later, you can use a hardware programmer and go direct
09:41 PM rue_shop1: but the bootloader is handy for programming right with the usb
09:41 PM rue_shop1: got a fav. C editor?
09:41 PM tiwake: I thought it was an in-circuit programmer...
09:42 PM rue_shop1: not on the uno
09:42 PM rue_shop1: its firmware, the 2nd chip (if it has it) is just a usb -> serial
09:42 PM rue_shop1: the bootloader goes via serial
09:42 PM tiwake: ok
09:42 PM tiwake: gedit is pretty nice for coding with I think
09:42 PM rue_shop1: k
09:43 PM rue_shop1: I'm gonna shoot you code and a makefile
09:43 PM rue_shop1: could you check that you have avrdude installed?
09:43 PM tiwake: I know I don't... heh
09:43 PM rue_shop1: ok, get avrdude installed
09:44 PM rue_shop1: I'm collecting files
09:44 PM tiwake: is avrdude in the repos?
09:44 PM rue_shop1: shoudl be yea
09:44 PM rue_shop1: and the age of it shouldn't be an issue
09:44 PM tiwake: oh yeah it is
09:44 PM tiwake: apt-cache search :3
09:45 PM rue_shop1: ok, so set up a project directory,
09:45 PM zhanx: sudo apt install avrdude gcc-non-eiab (search)
09:45 PM rue_shop1: make an empty main.h file
09:45 PM rue_shop1: (touch)
09:45 PM rue_shop1: gcc-avr
09:46 PM zhanx: yea was still on the stm32 train
09:46 PM rue_shop1: https://paste.debian.net/1108504/ <-- main.c
09:46 PM rue_shop1: zhanx, :)
09:47 PM tiwake: apt-cache search eiab
09:47 PM tiwake: shows nothing
09:47 PM rue_shop1: https://paste.debian.net/1108505/ <-- Makefile
09:47 PM zhanx: gcc-arm-none-eabi
09:47 PM rue_shop1: tiwake, dont worry about the eiab, its for stm32
09:47 PM zhanx: but you don't need that right now
09:47 PM rue_shop1: you need gcc-avr
09:47 PM rue_shop1: you might already have it
09:48 PM rue_shop1: you also need avr-libc, but might already have it too
09:48 PM rue_shop1: tiwake, give me a shout when you catch up
09:48 PM zhanx: libc should install with gcc-avr
09:48 PM rue_shop1: :) should
09:49 PM tiwake: avr-libc looks useful
09:49 PM zhanx: mind tiwake I know enough to be almost dangerous. Rue on the other hand
09:52 PM tiwake: lets see
09:52 PM rue_shop1: got those installed?
09:52 PM tiwake: I'm looking at the C code
09:52 PM rue_shop1: we can see if it works and then I can answer questions if you want to pick it apart
09:53 PM rue_shop1: got main.c main.h (empty) and makefile ?
09:53 PM rue_shop1: my appologies as the make file needs a .h file for every .c file, but its a technicallity, so it can be empty
09:55 PM tiwake: I've never used makefiles for any of my programming projects
09:55 PM rue_shop1: sure
09:55 PM rue_shop1: it is the darkest magic in the process
09:55 PM tiwake: lol
09:55 PM rue_shop1: I lothe makefiles
09:55 PM rue_shop1: so, got all those files set up?
09:56 PM tiwake: makefiles are pretty wizzardry
09:56 PM tiwake: yeah
09:56 PM rue_shop1: all sorts of hidden auto badness in a makefile
09:56 PM rue_shop1: ok
09:56 PM rue_shop1: "make"
09:56 PM rue_shop1: tell me if there are any errors then
09:57 PM tiwake: uh, no
09:57 PM rue_shop1: coo
09:57 PM rue_shop1: ls
09:57 PM rue_shop1: there should be a main.hex
09:57 PM tiwake: yeah there is a bunch of files
09:57 PM rue_shop1: yup
09:57 PM tiwake: main.elf
09:57 PM rue_shop1: you can use "make clean" to go back to the src files
09:57 PM rue_shop1: ok, got the uno plugged in?
09:57 PM tiwake: hex, bin, bash, butt...
09:57 PM tiwake: ok maybe not all of those :-x
09:58 PM rue_shop1: the .hex is the end of the creation chain
09:58 PM tiwake: yeah, its plugged in now
09:58 PM rue_shop1: so, if you plug the uno in, and do a dmesg to find out what port it comes up on
09:58 PM tiwake: lsusb?
09:59 PM rue_shop1: ttyUSB0 ?
09:59 PM rue_shop1: if you like, I use dmesg
09:59 PM zhanx: dmesg | tail
09:59 PM rue_shop1: might be ttyUSBx or
09:59 PM rue_shop1: or uh...
09:59 PM tiwake: Bus 001 Device 005: ID 2341:0043 Arduino SA Uno R3 (CDC ACM)
10:00 PM rue_shop1: cau, something
10:00 PM rue_shop1: no, we need to know the device
10:00 PM rue_shop1: /dev/something
10:00 PM rue_shop1: it'll be the last line in dmesg
10:00 PM rue_shop1: [254003.258479] usb 1-6.4: pl2303 converter now attached to ttyUSB0
10:01 PM rue_shop1: ^^ so mine is on /dev/ttyUSB0
10:01 PM tiwake: [ 1813.824786] cdc_acm 1-4:1.0: ttyACM0: USB ACM device
10:01 PM rue_shop1: ACM0 ok
10:01 PM zhanx: ACM0 means ubuntu
10:01 PM rue_shop1: no
10:01 PM rue_shop1: it comes up with the genuine arduinos
10:02 PM rue_shop1: tiwake,
10:02 PM rue_shop1: ok, next
10:02 PM rue_shop1: make genuineard0
10:02 PM rue_shop1: will install it on a genuine arduino on ACM0
10:02 PM rue_shop1: "should"
10:02 PM rue_shop1: :)
10:02 PM tiwake: oh it needs sudo powers
10:03 PM rue_shop1: yea
10:03 PM tiwake: well its functioning
10:03 PM rue_shop1: is the light flashing?
10:03 PM tiwake: yeah, at a different rate than it was before
10:04 PM rue_shop1: heh yup
10:04 PM rue_shop1: ok, so, we have a working system then!
10:05 PM rue_shop1: so, questions!
10:06 PM tiwake: line 40
10:06 PM tiwake: I don't understand any of line 40
10:06 PM tiwake: heh
10:06 PM rue_shop1: its inline assembler
10:06 PM rue_shop1: so, gcc will optimize out code that does't do anything
10:07 PM rue_shop1: you need to force a NOP into the loop for it to exist
10:08 PM tiwake: (I keep waiting for more information but its not coming...)
10:08 PM tiwake: (heh)
10:08 PM rue_shop1: NOP -> cpu instruction No OperationN
10:09 PM rue_shop1: NOP -> cpu instruction: No OperatioN
10:09 PM tiwake: and the two ::?
10:09 PM rue_shop1: its just the format of the inline assembler
10:09 PM rue_shop1: I write it off as black magic, it will be documented
10:10 PM tiwake: ok so no operation for one clock cycle?
10:10 PM rue_shop1: yup
10:10 PM tiwake: and it loops for 24 clock cycles
10:10 PM tiwake: err
10:10 PM rue_shop1: its so there is someting in the loop and gcc wont just delete the whole thing
10:10 PM rue_shop1: + overhead
10:10 PM rue_shop1: its a generic delay fn
10:11 PM rue_shop1: "do a bunch of nothing"
10:11 PM tiwake: I think the loop iteration is another clock cycle
10:11 PM tiwake: or something
10:11 PM rue_shop1: the jump is 2 cycles, plus a 1 cycle compare, etc
10:11 PM tiwake: so 48ish clock cycles?
10:12 PM rue_shop1: I dont bother counting it, and I think I used delay2, which is 64k delays
10:12 PM rue_shop1: I just dial it to get a nice blink rate
10:12 PM tiwake: oh derp
10:12 PM tiwake: yeah
10:12 PM rue_shop1: its not a calibrated rate
10:12 PM rue_shop1: "its alive"
10:13 PM rue_shop1: the pdf for the m328 has all the registers documented
10:13 PM rue_shop1: like DDRC
10:13 PM tiwake: I need to actually look into how pins and stuff are set up
10:13 PM tiwake: line 20, 22, and 26 it seems
10:14 PM rue_shop1: https://www.teachmemicro.com/wp-content/uploads/2019/01/Arduino-UNO-pinout-1.jpg
10:15 PM rue_shop1: most important bit there is the real microcontroller pin mapping
10:15 PM rue_shop1: the m328 datasheet has all the goods on what the pins can do
10:16 PM rue_shop1: the bootloader has no influence past the thing booting
10:16 PM rue_shop1: so what you code is what you got
10:16 PM tiwake: I have the datasheet...
10:17 PM rue_shop1: geesh, the stm32 gives the impression its on the edge of not existing
10:18 PM rue_shop1: avr is so much easier to use
10:18 PM Tom_L: they don't sound like fun
10:19 PM tiwake: what is stm32?
10:19 PM rue_shop1: its like going from BASIC to C
10:19 PM zhanx: tiwake, google blue pill
10:19 PM rue_shop1: tiwake, 72Mhz microcontroller thats 10% cheaper than a arduino pro mini
10:19 PM rue_shop1: 10%?
10:19 PM tiwake: they have lots of bluepills...
10:19 PM rue_shop1: stm32 bluepill
10:20 PM rue_shop1: https://www.aliexpress.com/item/32649400326.html
10:20 PM Tom_L: rue_bed
10:20 PM rue_shop1: :) yes?
10:20 PM Tom_L: how can i switch bootloaders?
10:20 PM Tom_L: lilo to grub?
10:21 PM rue_shop1: last one installed should take over
10:21 PM Tom_L: without re'installing
10:21 PM zhanx: almost posted that same link rue
10:21 PM rue_shop1: you lilo now?
10:21 PM Tom_L: but it doesn't
10:21 PM Tom_L: yes
10:21 PM Tom_L: it started with grub
10:21 PM rue_shop1: grub install iirc
10:21 PM rue_shop1: oh, and you want to go to lilo?
10:21 PM Tom_L: somebody had me install lilo for some reason
10:21 PM Tom_L: no i want to go back to grub
10:21 PM tiwake: yeah, you just install grub, maybe from a live-CD
10:22 PM zhanx: https://www.aliexpress.com/item/4000051769682.html tiwake if getting a bluepill grab that also
10:22 PM Tom_L: don't have a stretch live cd
10:22 PM zhanx: Tom_L, does it boot?
10:23 PM Tom_L: yeah it works fine i just don't like lilo
10:24 PM zhanx: boot it, remove lilo install grub its that easy
10:25 PM Tom_L: what commands?
10:25 PM Tom_L: i tried onece
10:25 PM zhanx: want me to make a paste bin of it?
10:26 PM Tom_L: you can i guess
10:26 PM Tom_L: i know it's easy but i couldn't get it to switch
10:26 PM zhanx: really its lilo -u /dev/hda
10:26 PM zhanx: then a apt-get purge lilo
10:27 PM zhanx: then apt-get install grub
10:27 PM zhanx: grub install /dev/hda
10:27 PM zhanx: then an update-grub and done
10:28 PM zhanx: hda being the boot drive of course
10:28 PM tiwake: crap
10:28 PM tiwake: I really need to upgrade my desktop
10:28 PM rue_shop1: you can install grub live
10:28 PM tiwake: the motherboard I have likes to randomly think the SSD is not connected
10:28 PM rue_shop1: apt-get install grub
10:28 PM rue_shop1: it'll run the installer
10:28 PM rue_shop1: oh you gys are all on it
10:28 PM rue_shop1: I had a phonecall
10:29 PM rue_shop1: seems its phonecall hour at rues
10:29 PM zhanx: zhanx is all on it :D
10:29 PM zhanx: i do believe i had tom install lilo due to a drive issue back a few months
10:29 PM rue_shop1: tiwake, so, with the avr stuff, you feel you got a start?
10:29 PM rue_shop1: lilo is much more clear about issues
10:30 PM rue_shop1: grub is a stupid box of unrepairable black automagic
10:30 PM zhanx: rue, think that was why also
10:30 PM * Tom_L unplugs all the other ssd first
10:31 PM rue_shop1: so I need to work towards becoming a cyborg
10:31 PM rue_shop1: trying to think of a good start, and I think extension hands
10:31 PM Tom_L: lilo command not found
10:32 PM zhanx: rue i need to find that code i did that could read patterns
10:32 PM rue_shop1: its not installed then
10:32 PM rue_shop1: dont reboot
10:32 PM Tom_L: but it boots lilo
10:32 PM rue_shop1: wait, tom, you didn't reboot in the middle of that did you?
10:32 PM zhanx: lilo -u /dev/hda <- failed?
10:32 PM Tom_L: yes z
10:32 PM zhanx: ok that is fine
10:32 PM Tom_L: lilo, command not found
10:32 PM tiwake: press tab for auto-complete
10:32 PM zhanx: do the purge on it
10:32 PM rue_shop1: you dont need to unstall lilo from the boot sector tho
10:32 PM rue_shop1: you just need grub to install over it
10:32 PM tiwake: like z<tab> for zhanx
10:33 PM zhanx: rue but it is recommended
10:33 PM rue_shop1: .... why?....
10:33 PM rue_shop1: :
10:33 PM zhanx: tiwake, z is on my automention
10:33 PM rue_shop1: :)
10:33 PM zhanx: rue_shop1, who knows hold overs from the 1990's?
10:33 PM * rue_shop1 shrugs
10:34 PM rue_shop1: hmm I wonder if this microcontroller workstation should have two monitors
10:34 PM Tom_L: how can i tell which one is running?
10:34 PM rue_shop1: no space for a 2nd one tho
10:35 PM rue_shop1: hmm, I wonder how you install grub on a 3rd party device (like a usb stick) to be sure you dont get left high and dry for boot?
10:35 PM Tom_L: i'm not that worried, it's a test pc anyway
10:36 PM * rue_shop1 merges serial code into the timer project -->~<--
10:36 PM zhanx: sudo dd if=/dev/sda bs=512 count=1 2>/dev/null | strings | grep -Eoi 'grub|lilo|acronis|reboot'
10:36 PM rue_shop1: eeek
10:36 PM rue_shop1: ah, hmm
10:36 PM rue_shop1: grub install should do that thing tho
10:37 PM rue_shop1: maybe dpkg --reconfigure grub ? or something?
10:37 PM zhanx: for grub its an update not reconfigure
10:37 PM Tom_L: heh it still boots lilo
10:37 PM * rue_shop1 hates grub
10:37 PM Tom_L: i'll just leave it alone
10:37 PM zhanx: sudo update-grub
10:37 PM rue_shop1: grub isn't installing
10:38 PM rue_shop1: you will know cause it will ask where to and say what os' it found
10:38 PM rue_shop1: ??
10:38 PM zhanx: yep
10:38 PM zhanx: grub is easy once you learn it
10:39 PM Tom_L: ok it's f'd now
10:39 PM rue_shop1: you need a boot cd then
10:39 PM zhanx: what
10:39 PM zhanx: no wait
10:39 PM rue_shop1: run grub install against it
10:39 PM zhanx: grub-install --version run that
10:40 PM rue_shop1: its bad policy to keep rebooting when your playing with the bootloader
10:40 PM rue_shop1: he rebooted into nothing I think
10:40 PM rue_shop1: cause grub wasn't installing
10:40 PM Tom_L: yeah
10:40 PM zhanx: ugh, i said don't reboot
10:40 PM zhanx: bad Tom_L
10:40 PM rue_shop1: ^^
10:40 PM Tom_L: starting up the install cd
10:40 PM rue_shop1: zhanx, he doesn't follow instructions well
10:40 PM rue_shop1: Tom_L, dont reinstall
10:40 PM tiwake: apparently
10:40 PM zhanx: you know rue, he is like me on that
10:41 PM rue_shop1: your both bad
10:41 PM zhanx: so are you
10:41 PM rue_shop1: I really wanted to build that printer WITH you
10:41 PM zhanx: and you failed
10:41 PM rue_shop1: I did.
10:41 PM zhanx: bad rue
10:41 PM Tom_L: we'll see if their rescue mode works
10:41 PM zhanx: either way its rocking now, and I learned more
10:42 PM rue_shop1: yup, its kinda inevitable
10:42 PM rue_shop1: the resin printers are getting pretty popular now
10:43 PM Tom_L: ok do i want sda1 sda2 or sda5?
10:43 PM rue_shop1: a1
10:43 PM Tom_L: (single partiton disk)
10:43 PM rue_shop1: er, if a1 has a bootable flag
10:43 PM rue_shop1: if its the master boot record, just use that
10:43 PM zhanx: sda
10:43 PM Tom_L: ok it says it's installing grub
10:43 PM rue_shop1: there ya go
10:44 PM Tom_L: stuck at 50% though
10:44 PM zhanx: wait
10:44 PM zhanx: it goes
10:45 PM rue_shop1: zhanx, we are bones with rigid mush with a gushy overcoating, how do you attach to that?
10:45 PM zhanx: to the bone
10:45 PM Tom_L: stitches
10:45 PM rue_shop1: :S
10:45 PM Tom_L: or screws
10:45 PM rue_shop1: maybe carefully coaxed bone spurs?
10:45 PM zhanx: Tom_L, only snitches get stitches
10:45 PM Tom_L: i think it hung
10:46 PM rue_shop1: odd
10:46 PM zhanx: no it times time, wait
10:46 PM rue_shop1: process so simple, and grub manages to hang
10:46 PM zhanx: takes
10:46 PM rue_shop1: copy like 64k of data
10:46 PM zhanx: give it a few to cycle looking for other things and bios crap
10:46 PM rue_shop1: mhmm
10:47 PM Tom_L: it _could_ lie to me and say it's at 51%....
10:47 PM rue_shop1: <you cant win with this crowd>
10:47 PM rue_shop1: I think the trick is to provide a heartbeat
10:47 PM rue_shop1: does the capslock light still work
10:47 PM rue_shop1: ?
10:47 PM Tom_L: yeah
10:48 PM rue_shop1: then the cpu isn't locked
10:48 PM rue_shop1: or, there is still one responding anyhow... :)
10:48 PM Tom_L: one isn't
10:51 PM rue_shop1: okI have serial and pwn
10:51 PM rue_shop1: pwm...
10:52 PM rue_shop1: Tom_L, if you like to roll the dice, it might have installed it and THEN hung
10:52 PM rue_shop1: :D
10:52 PM rue_shop1: zhanx, ?
10:52 PM zhanx: what?
10:53 PM rue_shop1: it should be done by now tho
10:53 PM zhanx: depends on the system, its SSD i bet
10:53 PM Tom_L: yup
10:55 PM rue_shop1: wow that things fast
10:57 PM Tom_L: i think i'm gonna have to start over
10:58 PM Tom_L: how can i check it from a cmd line?
10:58 PM Tom_L: or install it from a cmd line?
10:58 PM zhanx: i gave you the command lime
10:58 PM zhanx: pop up a terminal
10:59 PM Tom_L: no, from the install cd
10:59 PM Tom_L: grub>
10:59 PM zhanx: you can yes
11:00 PM Tom_L: how?
11:00 PM tiwake: Tom_L: you need to stop being a terrible person
11:01 PM Tom_L: aww
11:01 PM tiwake: lol
11:01 PM zhanx: tom whats the hd so i can make the command right
11:01 PM Tom_L: pretty sure it's sda
11:01 PM zhanx: sudo grub-install /dev/sda <- in a terminal from the live cd
11:02 PM zhanx: ls -l /dev/disk/by-label/
11:02 PM Tom_L: no, i'm at a grub prompt
11:02 PM zhanx: or fdisk -l
11:02 PM Tom_L: that won't work
11:02 PM tiwake: use liveCD
11:02 PM zhanx: boot the live cd
11:04 PM rue_shop1: ugh house is cold
11:05 PM rue_shop1: ok, how the hell do I do a rollover interrupt
11:05 PM tiwake: rue_shop1: get more computers and run folding@home
11:05 PM rue_shop1: no I need to migrate away from dna
11:06 PM tiwake: need to understand it before being able to remove it
11:06 PM rue_shop1: meatbag -> cyborg -> droid
11:06 PM rue_shop1: I know I know
11:06 PM rue_shop1: but I'm in a hurry
11:06 PM tiwake: it will help
11:06 PM tiwake: it will also help the cold
11:06 PM tiwake: so do it
11:07 PM rue_shop1: and the question of emulation at an instruction level vs a operation level becomes an argument
11:07 PM rue_shop1: if I were a bot, I wouldn't be cold would I?
11:07 PM tiwake: perhaps
11:07 PM rue_shop1: and I wouldn't have had to just go get more T and deal with too much P
11:08 PM rue_shop1: I will miss icecream, but honestly, I think that with a complex enough smell system, I can just sniff-enjoy
11:08 PM tiwake: heh
11:08 PM tiwake: I don't care that much
11:09 PM rue_shop1: "The bot has just been sitting there, sniffing its coffee"
11:09 PM tiwake: rue_shop1: how old are you?
11:09 PM rue_shop1: ~50%
11:09 PM rue_shop1: somewhere around 150 years
11:09 PM rue_shop1: Tom_L, 155-ish now?
11:09 PM tiwake: ...right
11:09 PM rue_shop1: maybe 158
11:10 PM rue_shop1: I'd have to check the logs
11:10 PM rue_shop1: if I was 150 in 2002
11:10 PM rue_shop1: 167!?
11:10 PM rue_shop1: :S
11:10 PM tiwake: you presumably have a driver license card... robots need those too.. what does it say on the card?
11:11 PM rue_shop1: :)
11:12 PM Tom_L: i just put lilo back on it
11:12 PM Tom_L: all is good
11:12 PM Tom_L: some reason grub wouldn't install
11:12 PM rue_shop1: I figure the priorities are vision, hands, and brain
11:12 PM rue_shop1: Tom_L, that generally summarizes me and grubs relationship
11:13 PM Tom_L: heh
11:13 PM rue_shop1: if you could get debian to install it like it'd never been on there, it would configure it right
11:13 PM rue_shop1: tiwake, the key to working out the brian is to look at how its formed/folded
11:14 PM Tom_L: yeah that would take a fresh install though
11:14 PM rue_shop1: stuff is hard to find, but facts are gradually assembling
11:14 PM Tom_L: i'm not up for that right now
11:14 PM rue_shop1: Tom_L, no, you just need to trick it
11:14 PM rue_shop1: there is a force/reconfigure thing
11:14 PM rue_shop1: I dont recall if its via dpkg or apt
11:14 PM Tom_L: i'll just live with it
11:15 PM rue_shop1: lilo just cant handle other os'
11:15 PM tiwake: depending on the liveCD you might have to install grub from the repos
11:15 PM rue_shop1: (its meant for loadin' linux)
11:15 PM Tom_L: i'm not planning on that on this one anyway
11:15 PM Tom_L: i use the bios to switch which ssd boots
11:16 PM Tom_L: how do you clear the terminal cmd line?
11:16 PM Tom_L: history
11:16 PM rue_shop1: clear
11:17 PM tiwake: rue_shop1: http://mhoxdesign.com/eye-en.html
11:17 PM rue_shop1: oh
11:17 PM rue_shop1: hmm
11:17 PM rue_shop1: not sure
11:18 PM Tom_L: history -c
11:18 PM Tom_L: just like dmesg -c
11:18 PM rue_shop1: ?
11:19 PM rue_shop1: didn't know
11:19 PM Tom_L: says you can edit the file too
11:19 PM rue_shop1: ok, timer overflow
11:19 PM * zhanx wants to remote Tom_L and just fix it
11:20 PM Tom_L: i'm back with lilo now
11:20 PM Tom_L: it's alright
11:20 PM Tom_L: dunno where the .bash_history is though
11:21 PM rue_shop1: home
11:21 PM rue_shop1: ~/.bash_history
11:21 PM zhanx: irc hated the /.bash_history
11:24 PM rue_shop1: huh
11:24 PM rue_shop1: hey, if you got a sec, see what you can find me on stm32F103 timer overflow interrupts with opencm3
11:25 PM rue_shop1: I need to go to the kitchen and flip my potatoes or use the fire ext...
11:26 PM Tom_dev: https://community.st.com/s/question/0D50X00009XkYilSAF/stm32f103-timer-interrupt-issue
11:26 PM Tom_dev: https://stackoverflow.com/questions/45702430/stm32-timer-interrupts
11:27 PM Tom_dev: https://community.st.com/s/question/0D50X00009XkaugSAB/timer-overflow-interrupt
11:27 PM rue_shop1: read, read, read....
11:28 PM Tom_dev: http://en.radzio.dxp.pl/stm32vldiscovery/lesson4,blinking,with,timer,interrupts.html
11:28 PM Tom_dev: blink led with interrupt
11:28 PM rue_shop1: ooo
11:28 PM Tom_dev: i'd probably start with that one
11:30 PM rue_shop1: ok I think we have it
11:30 PM rue_shop1: code, code, code....
11:30 PM Tom_dev: http://www.emcu.eu/stm32-basic-timer/
11:30 PM Tom_dev: in pwm mode
11:32 PM Tom_dev: https://visualgdb.com/tutorials/arm/stm32/timers/
11:32 PM Tom_L: that one's got pretty pictures too
11:32 PM rue_shop1: arg, these stupid hardware abstraction things
11:33 PM Tom_L: you gotta do everything yourself on arm ehh?
11:33 PM rue_shop1: yea
11:33 PM Tom_L: sounds alot like the 68332
11:33 PM rue_shop1: like I say, its like going from BASIC to C
11:33 PM Tom_L: but at least it had built in firmware functions
11:33 PM rue_shop1: 10 print "Hello world"
11:33 PM rue_shop1: was never more appreciable
11:34 PM Tom_L: no wonder they're so cheap
11:34 PM rue_shop1: whats odd, is that their not evolving like the avrs did
11:34 PM rue_shop1: their kinda stuck where the avrs were in like 2003
11:35 PM Tom_L: nobody's complaining enough yet
11:35 PM rue_shop1: there is a lack of development
11:35 PM rue_shop1: most of the stm32 stuff is like ~2014
11:35 PM Tom_L: i still got a dev board here
11:36 PM Tom_L: in the plastic wrap
11:36 PM rue_shop1: :)
11:36 PM Tom_L: i should have sent it to you
11:36 PM rue_shop1: I'm supposed to be migrating to the blue pill, but its a bunch of work
11:36 PM rue_shop1: its a good board
11:36 PM Tom_L: viagra?
11:36 PM Tom_L: :)
11:36 PM rue_shop1: haha
11:36 PM rue_shop1: stm32F103
11:37 PM rue_shop1: its like a pro-mini, but cheaper, faster, and with more memory
11:37 PM Tom_L: stm32f4-discovery is what i have
11:37 PM rue_shop1: yup, bigger, badder
11:37 PM Tom_L: it was free
11:37 PM rue_shop1: door prize?
11:37 PM Tom_L: they were giving them away for a while
11:38 PM rue_shop1: most of what you pulled up isn't opencm3
11:39 PM Tom_L: figures
11:39 PM rue_shop1: everything is offering clues tho
11:39 PM rue_shop1: I'm trying to understand...
11:39 PM Tom_dev: http://libopencm3.org/docs/latest/stm32f1/html/group__timer__file.html
11:39 PM rue_shop1: they arrange it differently
11:40 PM rue_shop1: there isn't an "overflow" interrupt, there is an "event interrupt"
11:40 PM Tom_dev: https://github.com/libopencm3/libopencm3/blob/master/lib/stm32/common/timer_common_all.c
11:40 PM Tom_dev: https://github.com/libopencm3/libopencm3-examples/blob/master/examples/stm32/l1/stm32l-discovery/button-irq-printf/main.c
11:42 PM rue_shop1: "TIM_DIER_UIE" ??
11:43 PM Tom_dev: https://books.google.com/books?id=UYteDwAAQBAJ&pg=PA177&lpg=PA177&dq=stm32f103+timer+overflow+interrupt+opencm3&source=bl&ots=xuhKnp38hg&sig=ACfU3U18o9XYgG9j9zeNgvOlEV4f8wWZ6g&hl=en&sa=X&ved=2ahUKEwiu_oiGgarlAhXvRt8KHU_DBLgQ6AEwB3oECAkQAQ#v=onepage&q=stm32f103%20timer%20overflow%20interrupt%20opencm3&f=false
11:43 PM Tom_L: that's a book
11:43 PM Tom_L: on libopencm3 & gcc
11:44 PM Tom_L: or at least the first 180 pages
11:45 PM rue_shop1: UIE
11:45 PM rue_shop1: Update Interrupt Enable
11:46 PM rue_shop1: yea, they call it an "update" not an overflow
11:46 PM rue_shop1: cause its a bi-directional counter
11:47 PM Tom_L: the rest seem to go downhill from there
11:47 PM rue_shop1: yep
11:47 PM rue_shop1: I might have it, coding...
11:47 PM Tom_L: gonna sleep
11:47 PM Tom_L: gotta make sure my kid gets up at 3 for work
11:48 PM rue_shop1: and I should see if my supper is on fire yet
11:48 PM Tom_L: one of em decided to take the weekend shift
11:48 PM Tom_L: lucky me
11:48 PM Tom_L: every try geany editor?
11:49 PM Tom_L: you might like it
11:51 PM zhanx: geany i tried before didn't like it