#avr Logs

Jan 24 2018

#avr Calendar

12:03 AM day__ is now known as day
02:26 AM wondiws: hello
02:28 AM grzegorz: ad
02:29 AM grzegorz: have anyone problem when using template function in c++ (function not found) ? :)
02:29 AM grzegorz: even if declared in the same file
02:29 AM wondiws: grzegorz, never
02:29 AM wondiws: grzegorz, I do use templates though
02:31 AM grzegorz: wondiws: okey, thanks, i've copied Chromium array size macro with refer to template and xcode give me errors "function arraysizehelper not found" :)
02:32 AM wondiws: grzegorz, you do use the avr-g++ compiler I take it?
02:35 AM grzegorz: Good question, XCode settings show me: "Default Compiler" and when i try to slide down list, it crash :)
02:37 AM grzegorz: I will change to Code::Blocks (i'm new in XCode) and check it
03:59 AM wondiws: when you want to use JTAG in AVR, does it have to be a certain type of JTAG adapter?
04:04 AM polygon: well xilinx did not have reset
04:04 AM polygon: wiggler does
04:07 AM wondiws: polygon, do you have experience with LUFA, from abcminiuser?
04:10 AM polygon: n
04:10 AM polygon: http://elm-chan.org/works/avrx/rq/xilinx.png
04:11 AM polygon: ha found this, was searching or a while
04:11 AM polygon: http://elm-chan.org/works/avrx/report_e.html
04:12 AM wondiws: polygon, I have several at home
04:15 AM polygon: doing arm ?
04:15 AM polygon: currently i am still unsure why xilinx did that cable lol
04:16 AM polygon: some stuff betten be left unexplained right?
04:16 AM wondiws: polygon, arm?
04:16 AM polygon: only avr?
04:16 AM polygon: ya, arm is programmed via jtag
04:17 AM wondiws: polygon, I used them for Altera and Xilinx, but they could communicate with other devices too
04:21 AM polygon: god
04:21 AM polygon: good
04:22 AM polygon: the parallel port adapters used to shuffle around the pins but the usb ones should connect to same usb i think
04:25 AM polygon: i settled to DAPA, added a buffer and a power pin
04:25 AM polygon: but i'm gonna make a wiggler or xil now and use it for avr and arm to
04:25 AM polygon: i would like a universal adapter
04:28 AM polygon: sup polprog
04:29 AM wondiws: polygon, I do have at least one parallel programmer, but I'm not sure I've ever used it
04:29 AM polprog: hi polygon! got my server back up!
04:30 AM polygon: i see your host ;>
04:31 AM polygon: though it has changed
04:31 AM polygon: [11:26] == polprog [~3141592@www.polprog.net] has joined #avr [11:26] == polprog [~3141592@www.polprog.net] has quit [Changing host] [11:26] == polprog [~3141592@unaffiliated/polprog] has joined #avr
04:32 AM polprog: who could have guessed its polprog.net
04:32 AM Trangar: Your names are so simialr, that's not confusing at all
04:37 AM polprog: wonder if total commander can open .tar.gz fiels
04:37 AM polprog: files*
04:37 AM polygon: try mc
04:37 AM polygon: oh ur on winshit
04:37 AM polprog: looks like it can
04:38 AM polygon: im on linuxsince 2008
04:39 AM polprog: me too, but recently im practising linux administration from winshit
04:39 AM polygon: why is it good? :)
04:39 AM polprog: programming only on linux though. windows is insane when it comes to this
04:39 AM polygon: you play wi games ha?
04:40 AM polygon: on workstation ;>
04:40 AM polprog: thats the main reason ;)
04:41 AM polygon: my question would be, why do you code/work on a game os?
04:41 AM polprog: i dont code on windows
04:41 AM polprog: its cancer when it comes to programming
04:41 AM polygon: sure
04:42 AM polprog: right now this windows install is for gaming and as a thin client for linux
04:42 AM Trangar: Ironically I had less issues getting my firmware toolchain to work on windows than on linux
04:42 AM polprog: sssh
04:42 AM polygon: lel
04:43 AM polygon: i compiled from source
04:43 AM polygon: ironic or not
04:44 AM Jartza: g'day
04:44 AM polprog: browsing system logs to see why your machienrestarted feels like that National Geographic series on air traffic catasrophes
05:28 AM polprog: rue_shop3: i just opened stm32.tgz, thats a lot of useful opencm3 code! i might not even need a tutorial ;) thanks!
08:20 AM Emil: GAH
08:20 AM Emil: Again got burned
08:20 AM Emil: went to ##stm32
08:20 AM Emil: I never fucking learn
08:21 AM nuxil: lol
08:21 AM polprog: lol, what happened?
08:21 AM polprog: never been there ;)
08:21 AM nuxil: i was there once :p
08:23 AM * polprog is pushing files around with zmodem
08:27 AM Emil: polprog: 2018-01-24 16:18:23 +0200 < dongs> i dont use jewlib
08:27 AM Emil: 2018-01-24 16:18:30 +0200 < dongs> keil microlib >>>>>>>>>> anything gnu
08:27 AM Emil: 2018-01-24 16:19:22 +0200 < Emil> dongs: keil is winshit only
08:27 AM Emil: 2018-01-24 16:19:41 +0200 < dongs> emil, thankfully you are correct
08:27 AM Emil: I don't know what I expected
08:28 AM polprog: lel
08:29 AM polprog: well i guess if i use winshit as thin client only (and for games)
08:29 AM polprog: i dont loose anything not being in that channel ;)
08:31 AM Emil: polygon: don't make this mistake
08:31 AM Emil: you don't want to
08:31 AM Trangar: Wait I'm not the only one writing firmware on windows?
08:32 AM polprog: Emil: i just said i wont go there ;)
08:32 AM polygon: Emil: why? ;>>
08:33 AM Emil: polprog: I highlighted polygon ;)
08:33 AM polprog: lol mistake
08:33 AM Emil: polprog: lol even you don't compare but just the first 3 letters :D
08:33 AM Trangar: polprog: might be better to use gorplop here as well :D
08:33 AM polprog: hah
08:33 AM polprog: maybe
08:33 AM Emil: Trangar: wot no
08:34 AM Emil: Where is polprog gorplop
08:34 AM polprog: Trangar: ssh dont tell
08:34 AM wondiws: Emil, jewlib? is that for jews?
08:34 AM Trangar: Oh right I shouldn't blow your covery
08:34 AM Trangar: -y
08:34 AM Trangar: My bad
08:34 AM polprog: :P
08:35 AM Emil: In that alternative chatnet that I joined and quit because it had nothing?
08:35 AM Emil: wondiws: exactly
08:35 AM Trangar: I still need to figure out how to use USB on my stm32
08:36 AM polprog is now known as gorplop
08:48 AM gorplop: jewlib = newlib ?
08:48 AM Emil: gorplop: yeah
08:48 AM Emil: gorplop: no
08:48 AM Emil: fucking
08:48 AM Emil: stop it
08:48 AM Emil: staph
08:49 AM Emil: /kickban gorplop; /invite polprog
08:49 AM gorplop: tahw
08:49 AM gorplop is now known as polprog
08:57 AM rue_: polprog, those examples took me a lot of work
08:58 AM polprog: some have comments about being aprt of opencm3
08:58 AM polprog: but they are very useful to me nonetheless
08:58 AM rue_: I'm looking forward to adding to it with _ami master i2c code, and get DMA stuff going too
08:59 AM Emil: polprog: rue_ which zip thing are you referring to?
08:59 AM rue_: whats wrong with opencm3 vs (the other one I cant remember the name of)
08:59 AM polprog: http://ruemohr.org/~ircjunk/programming/c/stm32/
09:02 AM rue_: the makefile took me the longest, it seemed that till me making that, nobody had a single-point method of building and uploading a program to an stm32
09:03 AM rue_: and there were all sorts of different convoluted methods of trying to upload
09:04 AM polprog: i forgot what % etc mean in makefiles
09:04 AM polprog: i can see its pretty advanced
09:05 AM polprog: openocd part is interesting
09:06 AM polprog: i got it compiled on my raspi, tried to check if its working on an avr, but couldnt seem to find any word on avr support
09:06 AM rue_: the whole thing seems to be where avrs were back in about 2002/2003
09:06 AM rue_: just use avrdude
09:06 AM polprog: i know, but the aim was to test openocd, i know i can use avrdude with hw spi
09:06 AM polprog: on raspberry
09:09 AM rue_: so, have you done anything with the stm32 yet?
09:10 AM polprog: im still waiting for the mail to arrive
09:11 AM Emil: polprog: % means wildcard
09:11 AM rue_: oh well, have you been able to get all the right files in all the right places for it to compile the examples?
09:11 AM polprog: not really
09:11 AM polprog: thanks for reminding me
09:11 AM rue_: ok, maybe I can help ya after work today
09:12 AM polprog: what TZ are you in?
09:12 AM rue_: gmt-8
09:12 AM polprog: mountain?
09:12 AM rue_: except on weekends
09:13 AM rue_: friday and saturday night I'm prolly about gmt
09:13 AM polprog: pacific. okay
09:13 AM polprog: so we have9 hours difference
09:14 AM rue_: good show, I'm sure you will be much more compliant when your just about ready to fall asleep.
09:14 AM polprog: im alone in the house this week
09:14 AM polprog: so i usually go to sleep at 4am
09:14 AM rue_: aaah
09:14 AM rue_: no 6am job eh?
09:15 AM polprog: yesterday i could not sleep so got up at 1am and did some rs845 till 3 am
09:15 AM rue_: speaking of, where are my pants....
09:15 AM polprog: school holidays right now
09:15 AM polprog: until sunday
09:15 AM rue_: 485
09:15 AM polprog: yeah 485
09:15 AM rue_: bus or pt-pt?
09:16 AM polprog: pt-pt right now but im planning bus
09:16 AM polprog: so afar ive got 2 wire comms between workshop pc and battery powered laptop
09:16 AM polprog: so far*
09:16 AM rue_: mmmm siplex
09:17 AM rue_: SHUTUP I'M SENDING!
09:17 AM polprog: heh yeah
09:17 AM polprog: DTR low enables the transmitter
09:17 AM polprog: i have to manually switch it in picocom
09:17 AM rue_: are you making a long bus?
09:17 AM polprog: i also have a small C program that asserts it low and sends some data, then pull it high
09:18 AM rue_: or is what your doing all close togethor?
09:18 AM polprog: right now i think that could become a way to synchronize a battery powered clock
09:18 AM polprog: or many of them
09:18 AM polprog: i will probably not use db9 cables but normal terminal blocks
09:18 AM rue_: hospital clocks
09:19 AM polprog: something like that
09:19 AM rue_: 11:58, 12:00
09:19 AM polprog: eventually i imagine they could have either custom hardware master
09:20 AM polprog: or be connected all the time to a pc with a cron job running every hour to bring them in sync
09:20 AM rue_: the hospital upgraded to wireless sync'd ones
09:20 AM polprog: each unit would have an adress and there could be broadcast packets as well
09:21 AM polprog: i dont have any zigbee/bt modules unfortunately :)
09:21 AM rue_: oh crap, work
09:21 AM polprog: cya
09:23 AM polygon: Emil: yea they did bite on me like sharks or piranhas when they smell blood ;>
09:23 AM polprog: its GNU/blood, or as ive tend to call it, gnu plus blood
09:25 AM Emil: :D
09:26 AM Emil: polygon: noticed
09:26 AM Trangar: GNU/blood is GNU divided by blood
09:31 AM polprog: if you sit in your room with the blinds closed (it gets dark at 4 pm this time of year) then you really really loose sense of time
09:40 AM Trangar: Right, time to port this C library to Rust
09:51 AM day: Trangar: a C avr lib? is there proper rust support for avr now?
09:52 AM polprog: hes doing stm32
09:55 AM Trangar: And LLVM has an experimental avr branch IIRC
09:56 AM Trangar: http://llvm.org/doxygen/md_lib_Target_AVR_README.html
09:57 AM Trangar: And Rust supports anything that llvm supports
12:54 PM nuxil: rust meh,, who wants oxidizing code :p
04:38 PM polprog: oh fu:)ing great! it was the shit cable that did not let me upload to avr.... jumper wires and its all cool
04:42 PM polprog: xmodem is more reliable than this
04:50 PM Casper: I once wanted to implement a whatever-modem bootloader
04:50 PM Casper: forgot which of the x y or z
04:50 PM Casper: but it would have required that I support flow control
04:51 PM Casper: I actually had a good idea, but couln't find a tiny thing...
04:51 PM Casper: like
04:51 PM Casper: it have retransmit on error
04:54 PM Casper: my idea: grab 1 page worth of data, ignore the rest of the packet, flash it, if there was more data NAK the packet, ignore the data you already handled, grab the new page...., ack if need more, flash, NAK....
04:55 PM Casper: and rely on the retransmit of the protocol
05:10 PM polprog: i think cisco gear can be flashed via xmodem
07:33 PM nuxil: hmm cisco. why flash it your self. NSA will flash it for you. ;)
07:40 PM polprog: haha
07:40 PM polprog: :P
07:40 PM polprog: goodnight
07:40 PM polprog: shit its 2:30
07:40 PM polprog: ill be unconcious tomorrow, i have real work to do
07:40 PM nuxil: yea its a good night ;D
07:41 PM nuxil: pull a all nighter. and go to bed when you come home after work. :p
07:44 PM nuxil: im cleaning up some of my code. finally got the "event" system for my keypad working as i want.
07:46 PM nuxil: it can see 3 different states: press, hold and released + returns the last state. :)
07:54 PM rue_: polprog, oops
08:41 PM polygon: hi
08:47 PM _ami_: i did not know about this software: https://github.com/bancika/diy-layout-creator/releases/tag/v3.40.0
08:47 PM _ami_: pretty cool. helpful before making a permanent ckt on a perf board.
09:18 PM polygon: i have a dumb digital camera that can't stream video, i was thinking about a mitm interceptor microsd card do you think dumb video cameras check free space on microsd card only at power on or they continuously check before a flush() ?
09:18 PM polygon: i think if i were to create some fragmentation loop then i could stream indefinitely unless the firmware has a record timelimit
10:11 PM Emil: polygon: there's internal buffering and then the video is dma block transferred
10:12 PM polygon: Emil: i doubt a crap camera contains 2GB ram so i guess it still has to check fat
10:12 PM polygon: if it supports fragmentation
10:12 PM Emil: once in boot/insert
10:13 PM Emil: I doubt it spends time asking about the filesystem
10:14 PM Emil: While recording
10:14 PM polygon: well it might only record 30 minutes at a time then it would require a stream restart ;/
10:15 PM polygon: i would like to hack it apart and only use the ccd and command the mega-ois and optics
10:15 PM polygon: but not going to happen soon
10:16 PM polygon: Emil: check out the panasonic dmc-fz7, the hardware is superb