#robotics Logs
Jun 11 2017
#robotics Calendar
12:09 AM anniepoo: hey rue.
12:12 AM rue_house: hey
12:12 AM anniepoo: http://partyserver.rocks/anniepoo/bettereyes.png
12:12 AM anniepoo: So, that is, I think, the final exterior design for the eyes
12:12 AM rue_house: looking good
12:12 AM anniepoo: now I'm wondering how to actuate them
12:12 AM rue_house: bump the polycount eh?
12:12 AM rue_house: servos
12:12 AM anniepoo: well, the eyes themselves are easy
12:12 AM anniepoo: but I'd like to have some expressiveness in the lids
12:12 AM rue_house: :/ I'm an animatronic fail anniepoo
12:12 AM anniepoo: 8cD I'm just doing this to learn, Rue
12:13 AM anniepoo: whats that mean?
12:13 AM rue_house: I want to make a generic paste extruder
12:13 AM anniepoo: seems like a good idea
12:13 AM rue_house: right now,t eh shop is full :/
12:14 AM anniepoo: rue, do you have a lathe?
12:14 AM rue_house: I'm gonna clean out the livingroom to re-home some equip
12:14 AM rue_house: yea...
12:14 AM anniepoo: kk
12:14 AM anniepoo: I have an extra Logan
12:14 AM rue_house: logan?
12:14 AM anniepoo: Logan model 300 lathe
12:14 AM rue_house: ah
12:15 AM rue_house: I'm just in the process of trying to guilt myself intot he shop to do soemthing
12:15 AM anniepoo: 8cD hours?
12:15 AM rue_house: it was a pretty full day going into the maker faire and back
12:15 AM anniepoo: I bet
12:15 AM anniepoo: well, relax
12:15 AM rue_house: I'm mentally pooched
12:15 AM anniepoo: don't push it
12:15 AM anniepoo: there is indeed a time to watch the tube
12:16 AM rue_house: https://www.google.ca/maps/dir/gibsons/PNE+Forum,+2901+E+Hastings+St,+Vancouver,+BC+V5K+5J1/@49.3589587,-123.2707543,11z/data=!4m8!4m7!1m2!1m1!1s0x54863fc5c7baa93d:0xec55508fba6a002d!1m2!1m1!1s0x54867120a0421757:0x4a3c2c1277c1c540!3e0?hl=en
12:16 AM rue_house: approx
12:17 AM anniepoo: see any other cool stuff?
12:17 AM rue_house: a few neat things, my mind is still processing
12:17 AM anniepoo: ok, I have a way to make strong flexible parts -
12:17 AM anniepoo: I'll 3D print a form for the inside.
12:18 AM anniepoo: then I'll make a mold of it, and fill mold with sugar
12:18 AM rue_house: got a 3d scan of my head to use with some csg for perfect fit goggles, but its 18M and meshlab isn't loading it nicely
12:18 AM anniepoo: nice!
12:19 AM anniepoo: meshmixer will reduce point density, then you can use meshlab
12:19 AM rue_house: oh!
12:19 AM anniepoo: (this off some youtube vid, I don't know personally)
12:19 AM rue_house: oooh, no debian
12:19 AM rue_house: I might be abel to load it directly into openscad
12:29 AM anniepoo: also, I'm done with the freaking sanding and bondo and such
12:29 AM anniepoo: I'm putting on a bunch of coats of high fill glaze to even things out
12:30 AM anniepoo: and it'll be ready for the paint
12:30 AM anniepoo: then more coats of glaze, and done - I put the edge on today
12:31 AM anniepoo: I did the last little bit of fill with zap a gap cyanoacrylate
12:31 AM rue_house: hmm
12:32 AM anniepoo: hmm.... watching ventriloquist dummy making videos
12:32 AM anniepoo: guy has used paper ang glue to make paper mache type eyelids
12:32 AM anniepoo: I think I can do a vacuum formed eyelid
12:36 AM anniepoo: anyway, it's late, I'm headed home
12:36 AM anniepoo: 8cD
01:06 AM rue_house: I'm thinking about what cyborg-groundwork technology I can work on next
01:06 AM rue_house: I need to finsish the force controller
01:06 AM rue_house: part of the problem is that I need more than 1 servo to do much with it
01:06 AM rue_house: which it can handle, but I need to write more code
01:06 AM rue_house: so I need to work out the startup issue
01:07 AM rue_house: which I think I can do by adding a delay to when the servo pulses start
01:19 AM Anniepoo_: whats the startup issue
01:31 AM rue_house: well, right now my use of the force feedback signal is to cut the servo off is the load goes over 25%
01:31 AM rue_house: but when you power it up, there is a pulse of more than 25%, even if its in position
01:32 AM rue_house: I think its a startup glitch with the servo, so I want to have the code try waiting a bit after powerup before sending pulses to it
01:32 AM rue_house: THAT or to ignore the current on the first few pulses
01:32 AM rue_house: 4 cycles or soemthing
01:33 AM rue_house: I think I just solved the tendon problem with the mecha hand
01:33 AM Anniepoo_: yes, might even keep a running average
01:33 AM rue_house: int eh human finger, the tendons split around the bone, but on the mecha, the bone can split aroudnt he tendon
01:34 AM rue_house: its a really clean 16 bit signal
01:34 AM rue_house: (16384/k)*100
01:34 AM rue_house: no
01:34 AM rue_house: 65535/k)/...
01:36 AM rue_house: I'm having a really hard time getting myself off my ass
01:37 AM rue_house: I could also work on the direction part of the system
01:38 AM rue_house: I need to know when the pulse is high to get the driection
01:38 AM rue_house: but there is 42us of gap from the end of the control pulse to the start of the motor pulse
01:38 AM rue_house: and I dont want the microcontroller to just diddle its thumbs
01:39 AM rue_house: but I also dont want to have to implument a rising edge detection on it
01:39 AM rue_house: buuuuuut
01:39 AM rue_house: ait
01:39 AM rue_house: wait
01:40 AM rue_house: rcc_periph_clock_enable(RCC_AFIO);
01:40 AM rue_house: exti_select_source (EXTI14, GPIOC);
01:40 AM rue_house: exti_set_trigger (EXTI14, EXTI_TRIGGER_FALLING);
01:40 AM rue_house: exti_enable_request(EXTI14);
01:40 AM rue_house: yea, I only set it up for falling edge
01:40 AM Anniepoo_: oops
01:40 AM Anniepoo_: 8cd
01:40 AM rue_house: well, no thats all I want
01:41 AM rue_house: I did have it set to both, but decided I didn't want that
01:41 AM rue_house: I alsways start the timing at the end of the control pulse, 43us be damned
01:41 AM rue_house: I look for a falling edge to stop the duty measure counter
01:42 AM rue_house: if there isn't one by the next control pulse, I check if its high or low to decide if the duty is 0% or 100%
01:46 AM Anniepoo_: 8cD
01:47 AM rue_house: I wonder what the freq responce is like re vibration for human touch
02:27 AM rue_house: it takes 20ms to update 8 servos
02:27 AM rue_house: but it takes 20ms to get the duty of one servo
02:40 AM rue_house: I can read 4 servos duty in parallel
02:40 AM rue_house: no wait
02:40 AM rue_house: maybe I can do them all
02:40 AM rue_house: I dont need more timers
02:43 AM rue_house: I can do about 12 pin change interrupts
02:44 AM rue_house: its all on the same interrupt routine, I have to check the flags to know what changed
06:16 AM Jak_o_Shadows: I'll read the scrollback tomorrow
06:16 AM Jak_o_Shadows: I'm about 5 days out of date :(
07:06 AM gnom: hi all , how use tft display with driver st7775
07:07 AM gnom: https://aliexpress.com/item/2-0-3-3V-TFT-LCD-Touch-Screen-Breakout-Board-With-Touch-Pen-For-Arduino/32780151979.html
07:08 AM gnom: utft and ugfx without st7775
07:09 AM gnom: if who knows, respond plz
07:15 AM aberon: grom go to ##electronics
07:15 AM gnom: ok
01:48 PM rue_house: processor
01:48 PM rue_house: of course
01:48 PM rue_house: processors run programs
01:48 PM rue_house: programs are a process
01:51 PM anniepoo: programs are not a process
01:51 PM anniepoo: a process is a memory space and one or more threads 8cD
01:58 PM robotustra_: process is something what is going on in time
01:59 PM robotustra_: d(Shate)/dt = process
01:59 PM robotustra_: d(Shatp)/dt = process
01:59 PM robotustra_: fuck
01:59 PM robotustra_: d(Shape)/dt = process
01:59 PM veverak: hmm
01:59 PM veverak: FreeRTOS
01:59 PM veverak: sounds yummy
02:00 PM robotustra_: is you touch it seriously - you will regret soon, as I did
02:01 PM robotustra_: if you have fixed number of processes - and design your firmware properly - you don't need FreeRTOS
02:01 PM robotustra_: but as you wish
02:26 PM anniepoo: 8cD
02:27 PM anniepoo: hey Rue, later on today would you have time to set me up for some stm32 dev?
02:27 PM rue_house: I suppose, sure
02:28 PM anniepoo: 8cD nifty
02:28 PM rue_house: I'll do it on this machine
02:28 PM anniepoo: 8cD
02:29 PM anniepoo: cool
02:34 PM anniepoo: 2pm I promised to do a mock interview, after that I'll be free.
07:16 PM anniepoo: painted, it revealed some drips from the alpha-cyanoacrylate, sanded those down,
07:16 PM anniepoo: also the paint is over that glaze, it wasn't holding well
07:16 PM anniepoo: so I scotchbrited the whole thing
07:16 PM anniepoo: gave it another coat of paint
07:17 PM anniepoo: I'm thinking I got a tad too dark paint
07:17 PM anniepoo: maybe I'll airbrush lighter highlights on it
08:28 PM anniepoo: rue, I'm going for supper, then will have cycles for stm32
08:28 PM anniepoo: 8cD
09:28 PM anniepoo: back from supper
09:35 PM anniepoo: @rue_house @rue_shop3 8cD what do you want me to install for stm dev?
09:37 PM * anniepoo is here, installing home theater, popcorn machine, swimming pool, and wondering if it's all REALLY needed for stm32 dev...
10:01 PM SpeedEvil: of course!
10:05 PM rue_shop3: anniepoo, oh there you are
10:05 PM rue_shop3: anniepoo, gcc-arm-none-eabi
10:05 PM rue_shop3: openocd
10:05 PM rue_shop3: start with that, we will try some things
10:06 PM rue_shop3: I need to work out libopenCM3
10:07 PM anniepoo: ok
10:11 PM anniepoo: installing gcc-arm-none-eabi
10:11 PM anniepoo: running to get an stm32
10:11 PM anniepoo: brb
10:11 PM Tom_L: hurry
10:11 PM Tom_L: but don't trip
10:13 PM anniepoo: 8cP ::annie sticks her tongue out at Tom::
10:13 PM * anniepoo installs openocd
10:13 PM * anniepoo installs openocd again
10:13 PM * anniepoo installs openocd again
10:13 PM * anniepoo installs openocd again
10:13 PM * anniepoo installs openocd again
10:14 PM anniepoo: 8cD
10:15 PM rue_house: https://github.com/libopencm3/libopencm3
10:15 PM rue_house: lets try download zip
10:16 PM anniepoo: ok, I have an stm32 plugged into an st-link
10:16 PM anniepoo: usb cable to my machine
10:16 PM rue_house: ok hold on
10:16 PM anniepoo: and an LED powered thru a transistor on a pin
10:16 PM rue_house: http://ruemohr.org/~ircjunk/programming/c/stm32/blink2/
10:16 PM rue_house: get those
10:16 PM rue_house: there is a led on the dev board
10:17 PM anniepoo: yup
10:17 PM anniepoo: that actually was a struggle last time - it was blinking hte one on the board, but not the external -
10:17 PM anniepoo: turned otu the external was taking too much current, board cound't drive
10:17 PM anniepoo: transistor fixed
10:17 PM rue_house: https://www.aliexpress.com/item/1-pices-STM32F103C8T6-ARM-STM32-Minimum-System-Development-Board-Module-For-arduino-Sensing-Evaluation-for-Skiller/32765534610.html
10:18 PM rue_house: you have that board?
10:18 PM anniepoo: yes
10:18 PM rue_house: just go witht eh omnboard led
10:18 PM rue_house: I must be humngy shaking and cant type
10:18 PM rue_house: I'kll just mash the keyaord
10:18 PM rue_house: I'mm sure you will figure it otu
10:18 PM rue_house: got those two files?
10:18 PM anniepoo: I installed openocd via apt
10:19 PM rue_house: ok
10:19 PM rue_house: you need libopencm3
10:19 PM anniepoo: but can clone this repo if you want
10:19 PM anniepoo: ok
10:19 PM rue_house: thats that last link
10:19 PM rue_house: different thing
10:19 PM anniepoo: ah, ok
10:19 PM anniepoo: cloned
10:19 PM anniepoo: hang on
10:21 PM rue_house: I'v just unzipped mine,
10:21 PM rue_house: this may not be the right version
10:21 PM rue_house: we will see
10:21 PM rue_house: tell me when youhave that downloaded and unpacked
10:22 PM anniepoo: I did sudo apt install gcc-arm-none-eabi
10:23 PM rue_house: yea
10:23 PM anniepoo: I did sudo apt install openocd
10:23 PM rue_house: yea
10:23 PM anniepoo: git clone https://github.com/libopencm3/libopencm3.git
10:23 PM rue_house: then downloaeded or yea
10:23 PM anniepoo: I d/led your Makefile and main.c
10:24 PM rue_house: you have to compile opencm3
10:24 PM anniepoo: I have a directory ~/stm32rue
10:24 PM rue_house: if you ge what I got, it does a bunch of compiling and stops with or: 'for' loop initial declarations are only allowed in C99 mode
10:25 PM anniepoo: ok
10:25 PM anniepoo: do you have msys
10:27 PM anniepoo: nvm
10:27 PM anniepoo: 8cD was reading the windows install
10:27 PM anniepoo: (I'm on ubuntu 16.04)
10:27 PM Tom_L: i'm sorry
10:27 PM Tom_L: i went from 10.04 to debian 8
10:27 PM anniepoo: ok, I'm getting same behavior
10:28 PM rue_house: hold on phonecall
10:28 PM anniepoo: do you know what the -std option is?
10:28 PM rue_house: its the wrong version or I modified it, stand by
10:30 PM rue_house: I'm typing like mad, dont get me wrong
10:30 PM rue_house: I need to diff the two isntalls of that cm3
10:30 PM anniepoo: kk
10:30 PM anniepoo: relax
10:30 PM anniepoo: life is good
10:31 PM Tom_L: NO! TYPE FASTER!!!!!
10:32 PM rue_house: there is no diff in the makefile that matters
10:32 PM rue_house: crap, the mchine history isn't deep enough
10:33 PM rue_house: why the hell is it that iceweasel will cache 800M of useless information and bash history wont use more than like 6m
10:33 PM rue_house: I need to think a sec
10:34 PM rue_house: Jak_o_Shadows, ....
10:34 PM robotustra_: I need a lathe
10:34 PM robotustra_: with 40 mm bore diameter
10:35 PM anniepoo: https://github.com/sustrik/libmill/issues/101
10:35 PM rue_house: anniepoo, there is a make option, I dont know what it is
10:35 PM rue_house: its not abvious
10:35 PM rue_house: I did this about....
10:35 PM anniepoo: yes
10:35 PM anniepoo: hmm
10:36 PM rue_house: aug 18th
10:36 PM rue_house: http://tom-itx.no-ip.biz:81/~tom-itx/irc/logs/%23robotics/2017-05-18.html
10:38 PM rue_house: wtf no
10:38 PM rue_house: May 28
10:40 PM anniepoo: 11:41 you got it working
10:40 PM rue_house: :/ noticed
10:40 PM rue_house: I'm worried it didn't happen in channel
10:41 PM Tom_L: you were pretty stealth while working on it
10:42 PM rue_house: no jak was helping me the whole time
10:42 PM rue_house: ok, the 21st I had opencm3 working
10:43 PM rue_house: http://tom-itx.no-ip.biz:81/~tom-itx/irc/logs/%23robotics/2017-05-20.html
10:44 PM rue_house: yea ok 3:19
10:45 PM anniepoo: got it
10:45 PM rue_house: ok
10:46 PM rue_house: 03:27 AM rue_shop3: 590 git clone https://github.com/libopencm3/libopencm3.git
10:46 PM rue_house: 03:27 AM rue_shop3: 591 git checkout c025dc0
10:47 PM rue_house: -- so --
10:47 PM rue_house: git clone https://github.com/libopencm3/libopencm3.git
10:47 PM rue_house: cd libopencm3
10:47 PM rue_house: git checkout c025dc0
10:47 PM rue_house: -- --
10:47 PM anniepoo: libopencm3 make is failing at diff location
10:47 PM rue_house: mine worked
10:48 PM rue_house: did you run those 3 instructions like that?
10:48 PM anniepoo: yes
10:48 PM anniepoo: e[1]: *** No rule to make target '../../../include/libopencm3/stm32/common/pwr_common_v1.h', needed by 'pwr.o'. Stop.
10:48 PM anniepoo: I'm probably missing a library
10:48 PM anniepoo: check your environment
10:49 PM rue_house: you did exactly those 3 commands?
10:49 PM rue_house: then the make?
10:49 PM anniepoo: yes
10:49 PM rue_house: ooooh
10:49 PM anniepoo: it's not finding a header
10:49 PM rue_house: no, that problem came later
10:50 PM rue_house: zippo:/files/temp/opens2/libopencm3# find |grep pwr_common_v1.h
10:50 PM rue_house: zippo:/files/temp/opens2/libopencm3#
10:51 PM rue_house: zippo:/files/temp/opens2/libopencm3# grep -R pwr_common_v1.h
10:51 PM rue_house: zippo:/files/temp/opens2/libopencm3#
10:51 PM rue_house: what did you download?
10:51 PM rue_house: clear and try again?
10:51 PM anniepoo: no, I don't have it
10:51 PM anniepoo: do you ?
10:51 PM rue_house: its not even mentioned in the download I did
10:51 PM anniepoo: ah!
10:52 PM rue_house: its like you git'd a different version or the checkout c025dc0 command didn't work
10:52 PM rue_house: ooh then checkout...
10:52 PM anniepoo: nniepoo@annieslinux:~/stm32rue/libopencm3$ git status
10:52 PM anniepoo: HEAD detached at c025dc0
10:52 PM anniepoo: nothing to commit, working directory clean
10:52 PM anniepoo: an
10:52 PM rue_house: yea, no
10:52 PM rue_house: yea
10:52 PM rue_house: <rue_house> -- so --
10:52 PM rue_house: <rue_house> git clone https://github.com/libopencm3/libopencm3.git
10:52 PM rue_house: <rue_house> cd libopencm3
10:52 PM rue_house: <rue_house> git checkout c025dc0
10:52 PM rue_house: <rue_house> -- --
10:53 PM rue_house: then make
10:53 PM anniepoo: yup
10:54 PM Jak_o_Shadows: hmm
10:54 PM Jak_o_Shadows: that sounds right
10:54 PM anniepoo: somebody renamed a header
10:54 PM Jak_o_Shadows: I caught up!
10:54 PM anniepoo: the relevant files in
10:54 PM anniepoo: ~/stm32rue/libopencm3/include/libopencm3/stm32/common$
10:55 PM anniepoo: are pwr_common_all.h
10:55 PM anniepoo: and pwr_common_l01.h
10:55 PM Jak_o_Shadows: btw rue, if yoiu have trouble with the library, I would 100% recommend just talking to the config registers by hand if you're more comfortable with that.
10:55 PM Jak_o_Shadows: It can be easier
10:56 PM rue_house: this totally reminds me of lic-avr back in 2001
10:56 PM rue_house: Tom_L, ?
10:56 PM anniepoo: ok, fixed it
10:56 PM anniepoo: hang on
10:56 PM rue_house: remember the fun we had compiling that?
10:56 PM rue_house: anniepoo, thats what the checkout command should have done tho right?
10:56 PM rue_house: Jak_o_Shadows, nice to see you back, what areyou doing up so early?
10:57 PM anniepoo: hang on
10:57 PM Jak_o_Shadows: Public holiday here - have the day off. It's 1pm!
10:57 PM rue_house: anniepoo, I'll take you down my twisted road for this one when you have that compiled?
10:57 PM rue_house: 1pm!?
10:57 PM rue_house: I thought it was like 4am and that why we never see you
10:57 PM anniepoo: cd ~/stm32rue/libopencm3/include/libopencm3/stm32/common$
10:58 PM rue_house: its compiled?
10:58 PM anniepoo: yes
10:58 PM rue_house: ok!
10:58 PM anniepoo: cp pwr_common_l01.h pwr_common_v1.h
10:58 PM anniepoo: those two lines
10:58 PM rue_house: I didn't have that happen
10:58 PM Jak_o_Shadows: Nah, you never see me because work
10:58 PM anniepoo: kk
10:58 PM rue_house: I dont know why there was a difference
10:58 PM anniepoo: very strange
10:58 PM rue_house: anniepoo, mkdir /usr/lib/arm
10:59 PM anniepoo: as root
10:59 PM rue_house: yea
10:59 PM Jak_o_Shadows: rue, here's an example of DMA - peripheral to memory: https://gist.github.com/Jak-o-Shadows/2c383f12b45b5983f4ddfd111e189fee
11:00 PM anniepoo: ok
11:00 PM anniepoo: so, I've built libopencm3
11:00 PM rue_house: move ~/stm32rue/libopencm3 contents to /usr/lib/arm
11:00 PM anniepoo: ok
11:00 PM Jak_o_Shadows: You can see where the end point addresses are. THe trigger is some magic./automatic when the source changes
11:00 PM rue_house: -- zippo:/files/temp/opens2/libopencm3# mkdir /usr/lib/arm
11:00 PM rue_house: zippo:/files/temp/opens2/libopencm3# mv * /usr/lib/arm/
11:01 PM rue_house: --
11:01 PM rue_house: zippo:/files/temp/opens2/libopencm3# ls /usr/lib/arm/ -l
11:01 PM rue_house: total 96
11:01 PM rue_house: -rw-r--r-- 1 root root 35068 Jun 11 20:16 COPYING.GPL3
11:01 PM rue_house: -rw-r--r-- 1 root root 7651 Jun 11 20:16 COPYING.LGPL3
11:01 PM rue_house: -rw-r--r-- 1 root root 3380 Jun 11 20:16 HACKING...
11:01 PM rue_house: say when ready
11:01 PM rue_house: we have another battle yet
11:01 PM rue_house: Jak_o_Shadows, just gonna fight thru the flashing led thing here first
11:02 PM anniepoo: ready
11:02 PM rue_house: so go to the dir with the two files from me
11:03 PM anniepoo: hang on
11:03 PM Jak_o_Shadows: yes, no problem
11:04 PM rue_house: anniepoo, I link all the makefiels for a processor from the root dir tree for that processor
11:04 PM anniepoo: ok, life is good
11:04 PM rue_house: aka
11:04 PM rue_house: zippo:/files/programming/c/stm32/blink2# ls -l
11:04 PM rue_house: total 4
11:04 PM rue_house: lrwxrwxrwx 1 nobody nogroup 11 May 28 21:52 Makefile -> ../Makefile
11:04 PM rue_house: -rw-r--r-- 1 nobody nogroup 2172 May 28 21:55 main.c
11:04 PM rue_house: zippo:/files/programming/c/stm32/blink2#
11:04 PM rue_house: just so ya know
11:04 PM rue_house: ok, ... make
11:04 PM rue_house: this may not work, thats ok
11:04 PM rue_house: ok
11:04 PM anniepoo: sr/bin/arm-none-eabi-gcc -g -Wextra -Wshadow -Wimplicit-function-declaration -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes -fno-common -ffunction-sections -fdata-sections -MD -Wall -Wundef -mcpu=cortex-m3 -mthumb -T stm32f103c8t6.ld -I /usr/lib/arm/include -D_ROM=64K -D_RAM=20K -DSTM32F1 -D_ROM_OFF=0x08000000 -D_RAM_OFF=0x20000000 cortex-m3 -o main.o -c main.c
11:04 PM anniepoo: arm-none-eabi-gcc: error: cortex-m3: No such file or directory
11:04 PM anniepoo: Makefile:131: recipe for target 'main.o' failed
11:04 PM anniepoo: make: *** [main.o] Error 1
11:05 PM anniepoo: anni
11:05 PM rue_house: perfect, same boat
11:05 PM rue_house: now I can work out what I changed
11:05 PM rue_house: :)
11:06 PM anniepoo: ok
11:06 PM rue_house: I think its the awk interpreter
11:06 PM Jak_o_Shadows: yeah
11:06 PM Jak_o_Shadows: that was it
11:06 PM anniepoo: ??
11:07 PM Jak_o_Shadows: it uses an awk script to get the device memory size, stuff like that
11:07 PM rue_house: hold up
11:07 PM rue_house: hahah this machine is SO old, awk is there, but was never installed
11:08 PM rue_house: er no
11:08 PM rue_house: I forgot how to use dpkg
11:09 PM rue_house: zippo:/files/programming/c/stm32/blink2# dpkg -S /usr/bin/mawk
11:09 PM rue_house: see if that says you have mawk installed
11:09 PM anniepoo: I do
11:09 PM rue_house: ok
11:10 PM rue_house: apt-get remove mawk will remove mawk and install awk-origional
11:10 PM rue_house: I'll jump first if you like
11:11 PM anniepoo: removed
11:11 PM rue_house: haha have to do a source update
11:11 PM anniepoo: doesn't seem to have helped
11:11 PM anniepoo: ah yes
11:11 PM rue_house: and it installed origtional?
11:11 PM rue_house: bah, that wasn't it
11:11 PM rue_house: damn
11:11 PM anniepoo: no mention of installing original
11:11 PM rue_house: oooh whats different
11:12 PM anniepoo: but I notice it talks about gawk
11:12 PM rue_house: it should have installed original-awk
11:12 PM rue_house: ok I must have changed something, hold on
11:12 PM anniepoo: installing
11:13 PM rue_house: AAAAAAAAAAAA, stand by,,,,
11:14 PM * anniepoo stands well away from, and not 'by', the pool
11:17 PM Jak_o_Shadows: It's not quite the same error that you had
11:17 PM Jak_o_Shadows: tit has -mcpu=cortex-m3, you didn't have that
11:17 PM anniepoo: I do have that
11:17 PM anniepoo: anniepoo@annieslinux:~/stm32rue$ make
11:17 PM anniepoo: arm-none-eabi-gcc: error: cortex-m3: No such file or directory
11:17 PM anniepoo: Makefile:131: recipe for target 'main.o' failed
11:17 PM anniepoo: make: *** [main.o] Error 1
11:17 PM rue_house: got damn files fell in a idfferent order and I can compare the dirs properly
11:17 PM rue_house: how do I get sort to order by second field?
11:17 PM anniepoo: anniepoo@annieslinux:~/stm32rue$ make
11:17 PM anniepoo: arm-none-eabi-gcc: error: cortex-m3: No such file or directory
11:17 PM anniepoo: Makefile:131: recipe for target 'main.o' failed
11:17 PM anniepoo: make: *** [main.o] Error 1
11:18 PM anniepoo: hang on, irc is truncating
11:18 PM rue_house: I had to fix a number of the libcm3 things, I just dont know what
11:18 PM anniepoo: http://collabedit.com/utghy
11:18 PM rue_house: how do I get sort to sort by second field?
11:19 PM anniepoo: dunno
11:20 PM anniepoo: --sort=WORD
11:20 PM anniepoo: sort by WORD instead of name: none (-U), size (-S), time (-t), version
11:20 PM anniepoo: (-v), extension (-X)
11:21 PM rue_house: field
11:21 PM rue_house: field field field
11:21 PM rue_house: I wans ti to sort buyt the second one
11:21 PM rue_house: ^
11:21 PM rue_house: not
11:21 PM rue_house: ^
11:22 PM * anniepoo is baffled
11:22 PM anniepoo: baffle baffle baffle
11:22 PM anniepoo: baffle baffle baffle
11:22 PM rue_house: field1 field2 field3
11:23 PM * anniepoo installs openocd 6 more times
11:24 PM rue_house: ok this looks better
11:24 PM * anniepoo looks on expectantly
11:25 PM rue_house: I'm going thru a few thousand files (CRC diff) looking for what I cahnged
11:25 PM * anniepoo expects
11:26 PM * anniepoo is expecting? nope, guess not
11:26 PM rue_house: AHA!
11:26 PM rue_house: 13C6CC05 ./ld/Makefile.linker | 3C2C093E ./ld/Makefile.linker
11:26 PM anniepoo: aha!
11:27 PM anniepoo: I need 3 mins to decarpal
11:28 PM rue_house: A4F26828 ./scripts/genlink.awk | 10F5B93F ./scripts/genlink.awk
11:29 PM rue_house: stand by...
11:30 PM rue_house: in
11:30 PM rue_house: /usr/lib/arm/scripts/genlink.awk
11:31 PM rue_house: change
11:31 PM rue_house: if ("CPU" ~ MODE){
11:31 PM rue_house: sub(/[^=]*=/,"",$i);
11:31 PM rue_house: printf "%s",$i;
11:31 PM rue_house: exit;
11:31 PM rue_house: }
11:31 PM rue_house: --
11:31 PM rue_house: to
11:31 PM rue_house: if ("CPU" ~ MODE){
11:31 PM rue_house: sub(/[^=]*=/,"",$i);
11:31 PM rue_house: #printf "-mcpu=%s",$i;
11:31 PM rue_house: exit;
11:31 PM rue_house: }
11:31 PM rue_house: --
11:31 PM rue_house: (comment out the printf)
11:31 PM anniepoo: hang on
11:33 PM anniepoo: done
11:34 PM anniepoo: make ran
11:34 PM anniepoo: 8cD
11:34 PM anniepoo: anniepoo@annieslinux:~/stm32rue$ ls
11:34 PM anniepoo: main.bin main.d main.map Makefile stm32f103c8t6.ld
11:34 PM anniepoo: main.c main.elf main.o rueJakoni2c_common.txt
11:34 PM anniepoo: anniepoo@annieslinux:~/stm32rue$
11:34 PM rue_house: no change int the other one
11:34 PM rue_house: yaya!
11:34 PM rue_house: now I'll jump!
11:34 PM rue_house: yay!
11:35 PM rue_house: ok you should be able to do, make install, with the programme.... do you know how to hook up the programmer
11:35 PM rue_house: ?
11:35 PM anniepoo: yes
11:35 PM rue_house: ok
11:35 PM rue_house: make install
11:35 PM rue_house: just 4 wries, -, +, clock, data
11:36 PM anniepoo: sudo that?
11:36 PM anniepoo: http://collabedit.com/utghy
11:36 PM anniepoo: got an error, here it is
11:37 PM rue_house: yea I always run as root
11:38 PM rue_house: interestiong
11:38 PM rue_house: no what
11:38 PM rue_house: what
11:38 PM rue_house: its not using the right config
11:38 PM rue_house: your openocd version is maybe too new
11:38 PM rue_house: zippo:/files/programming/c/stm32/blink2# openocd -v
11:38 PM rue_house: Open On-Chip Debugger 0.8.0 (2014-10-20-22:02)
11:38 PM rue_house: Licensed under GNU GPL v2
11:39 PM rue_house: ?
11:39 PM anniepoo: I'm on 0.9.0
11:39 PM rue_house: hah
11:39 PM rue_house: hmm
11:39 PM rue_house: uh
11:40 PM rue_house: I cant help with that program, its like vim, mplayer, and emacs, the options are too complex for anyone to understand
11:40 PM rue_house: just, sometimes people get lucky and share what they found out
11:41 PM Jak_o_Shadows: oh. 0.08
11:41 PM Jak_o_Shadows: um.
11:41 PM Jak_o_Shadows: yeah. You might be alright?
11:41 PM Jak_o_Shadows: waaaait. I use 0.09
11:41 PM rue_house: mine works
11:41 PM Jak_o_Shadows: 0.9*
11:41 PM rue_house: hers is too new
11:41 PM rue_house: for
11:41 PM Jak_o_Shadows: oh, you do different stuff than I do
11:41 PM rue_house: openocd -f $(OPENOCD_SCRIPTS_DIR)/interface/stlink-v2.cfg -f $(OPENOCD_SCRIPTS_DIR)/target/stm32f1x_stlink.cfg -c init -c targets -c "halt" -c "flash write_image erase ./$(BINARY).elf" -c "verify_image ./$(BINARY).elf" -c "reset run" -c shutdown
11:42 PM rue_house: hey wait, I had to make stm32f1x_stlink.cfg didn't I?
11:42 PM rue_house: hold on!
11:42 PM * rue_house runs to grab an stm32 baord and programmer
11:42 PM anniepoo: ah, missing link?
11:45 PM rue_house: ! use the 3.3V!
11:45 PM rue_house: :S
11:45 PM anniepoo: ??
11:45 PM rue_house: progreammer has both voltages
11:45 PM rue_house: need to use the 3.3, not the 5
11:45 PM rue_house: its not 5 happty
11:46 PM rue_house: mine worked
11:46 PM anniepoo: my programmer hasn't been touched since my last foray into this
11:46 PM anniepoo: so I think hardware's OK
11:47 PM rue_house: just pasted what it should look like
11:47 PM rue_house: I dont know what to do about it ignoring the file you need it to use
11:48 PM Jak_o_Shadows: .9.0 has more options I thought
11:48 PM rue_house: options that apparently aren't backwads compaitble
11:49 PM anniepoo: ok
11:50 PM rue_house: I think its using the wrong transport
11:51 PM rue_house: the signals on the board are +3.3, swdio, swclk, gnd
11:51 PM Jak_o_Shadows: You may have to tell it the openocd scripts directory
11:51 PM Jak_o_Shadows: that's teh -s switch
11:51 PM anniepoo: it is using the wrong transport
11:51 PM rue_house: (??)
11:52 PM anniepoo: say so there
11:52 PM anniepoo: nfo : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
11:52 PM anniepoo: Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
11:52 PM rue_house: I dont know what mine is using
11:53 PM Jak_o_Shadows: I get that message
11:54 PM anniepoo: hang on
11:54 PM rue_house: Debug: 22 1 command.c:145 script_debug(): command - interface ocd_interface hla
11:54 PM rue_house: I think were both using hla
11:54 PM rue_house: Debug: 30 1 command.c:145 script_debug(): command - hla_layout ocd_hla_layout stlink
11:56 PM rue_house: Jak_o_Shadows, would you like to see if you can use your way with her setup?
11:57 PM Jak_o_Shadows: Sure thing
11:57 PM rue_house: I added install, what did you call yours?
11:57 PM Jak_o_Shadows: debug
11:57 PM rue_house: k
11:57 PM rue_house: anniepoo,
11:57 PM Jak_o_Shadows: Download this to the makefile folder: https://github.com/Jak-o-Shadows/softlight/blob/master/code/openocd.cfg
11:57 PM rue_house: Jak_o_Shadows, origional programming method may work better with this
11:57 PM rue_house: Jak_o_Shadows, its the same makefile
11:57 PM rue_house: just adjusted a bit
11:58 PM Jak_o_Shadows: ah, ok
11:58 PM Jak_o_Shadows: well, try "make debug"
11:58 PM rue_house: it still has your debug command
11:59 PM anniepoo: no luck
11:59 PM Jak_o_Shadows: wait
11:59 PM Jak_o_Shadows: no
11:59 PM Jak_o_Shadows: "make openocd"
11:59 PM Jak_o_Shadows: sortry