#avr Logs

Mar 03 2018

#avr Calendar

06:41 AM xoomas: hi
06:44 AM xoomas: does AVR Studio 7 supports stk500v2 clone?
06:57 AM nuxil: no idea.
06:58 AM nuxil: dont think there is many in here that uses avr studio 7. most people just use a editor + makefile + avrdude.
07:01 AM nuxil: avrdude has support for stk500v2 , dont know about a clone tho.
07:05 AM xoomas: whats wrong with studio? :)
07:05 AM xoomas: 4.18 supproted stk500v2 clone
07:06 AM xoomas: you just write code.. compile and burn it everythink in one window
07:07 AM Tom_L: what was that link someone posted about studio 7 and usbasp working together?
07:07 AM Tom_L: that might shed some light on it
07:15 AM xoomas: already downloaded avrs stuodio
07:16 AM xoomas: faster will be to test then to get answer :D
07:16 AM Tom_L: enjoy your pain and frustration
07:17 AM xoomas: :D
07:17 AM xoomas: realy
07:17 AM xoomas: i still have 4.18
07:17 AM Tom_L: it shouldn't take a mainframe to start some software to compile a little code for an 8bit chip
07:17 AM xoomas: so it will work for sure ;D
07:17 AM Tom_L: i have 4 as well
07:17 AM Tom_L: they made some changed in 6 that affected some things
07:18 AM xoomas: yeah i remember that in 6 something was not good about stk500
07:19 AM xoomas: but ppl found workaround
07:19 AM xoomas: in stk500fw change name to avrisp2
07:19 AM xoomas: or smth
07:19 AM xoomas: oh
07:19 AM xoomas: i see studio 7 is .net based
07:19 AM xoomas: thats crap :D
07:20 AM Tom_L: oh but you love studio :D
07:20 AM Tom_L: they started that in 5 or 6
07:20 AM Tom_L: iirc
07:20 AM xoomas: studio 4 was good
07:21 AM xoomas: what iirc means?
07:21 AM xoomas: :))
07:21 AM xoomas: i see that sentence often
07:21 AM xoomas: but never asked ;D
07:21 AM Tom_L: if i recall
07:21 AM xoomas: ah
07:21 AM xoomas: need to write small fw
07:22 AM xoomas: that translates i2c to uart
07:22 AM xoomas: + maybe SPI
07:22 AM xoomas: wanted to try make eeprom programmer
07:22 AM xoomas: with delphi
07:22 AM xoomas: and ft232
07:23 AM xoomas: tryed ft232 bitbang mode
07:23 AM xoomas: but its sucks :D
07:23 AM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/mtkflash/flash_howto_index.php
07:23 AM Tom_L: read that
07:23 AM Tom_L: you might like it
07:27 AM xoomas: why atmel sold to microchip?
07:27 AM Tom_L: why did autodesk buy eagle?
07:28 AM nuxil: why is earth not flat
07:28 AM Tom_L: it isn't?
07:28 AM Tom_L: damn....
07:29 AM xoomas: eagle was small company
07:29 AM Thrashbarg: the executives smelled the sweet scent of money
07:29 AM xoomas: i though atmel was same as microchi[
07:29 AM Tom_L: lots of companies buy and sell
07:30 AM nuxil: shareholders of atmel had enuf and wanted some quick cash. so they sold it to microship.
07:30 AM xoomas: what do atmel does now?
07:30 AM nuxil: which i think was a stupid mistake. seeing how the arduino community is growing and growing
07:30 AM xoomas: hanging on the beach :D
07:31 AM xoomas: what is ASF?
07:31 AM Tom_L: atmel studio framework
07:32 AM xoomas: its some dev board i guess
07:32 AM xoomas: but i see it supprots stk500
07:34 AM xoomas: hmm why so much change :D
07:34 AM xoomas: dont see where to select or connect to programmer :))
07:34 AM _ami_: i heard microshit is buying another company which name starts with micro*
07:35 AM _ami_: they are buying microsemi
07:35 AM _ami_: in 10b$
07:35 AM _ami_: https://www.investors.com/news/technology/microchip-technology-to-acquire-microsemi-in-over-10-billion-deal/
07:35 AM Tom_L: lots of big names sell
07:35 AM Tom_L: motorola sold to phillips
07:35 AM xoomas: they bought skype
07:36 AM xoomas: and now nobody uses it :D
07:37 AM xoomas: nah...
07:37 AM xoomas: studio 7 sucks
07:37 AM xoomas: gona install good old 7
07:37 AM xoomas: 4*
07:37 AM xoomas: ;D
07:37 AM Tom_L: <xoomas> whats wrong with studio?
07:37 AM Tom_L: full circle....
07:37 AM Thrashbarg: Anyone ever tried to use Atmel's WinCUPL? If you thought Studio was bad.... holy crap
07:38 AM xoomas: cant find how to select stk500
07:39 AM xoomas: also how to find ppl who made top2049 programmers
07:39 AM xoomas: ant other top series
07:39 AM xoomas: :))
07:40 AM xoomas: btw maybe here are someone who programmed Renesas MCUs?
07:41 AM xoomas: TOM_L that was your page?
07:42 AM xoomas: i see you made programmer
07:42 AM xoomas: what is that U1
07:42 AM Tom_L: which programmer?
07:42 AM xoomas: tiny
07:42 AM xoomas: mini
07:42 AM Tom_L: 2313
07:43 AM Tom_L: that one was bit banged
07:43 AM xoomas: what fw inside?
07:43 AM Tom_L: no idea now :D
07:43 AM xoomas: :D
07:43 AM xoomas: but it was for other AVRs?
07:43 AM Tom_L: yea
07:43 AM xoomas: looks like usbasp
07:43 AM xoomas: usb lib i guess
07:44 AM Tom_L: like all the other usb bitbanged ones
07:44 AM Tom_L: the other one uses hardware usb based on LUFA
07:44 AM xoomas: attiny didnt have hw usb
07:45 AM xoomas: but for me usbasp never wokred
07:45 AM xoomas: on my laptop
07:45 AM xoomas: on other pc worked
07:45 AM xoomas: so i built stk500v2
07:45 AM xoomas: which still works today :D
07:47 AM antto: i thought that "iirc" == "if i remember correctly" ;P~
07:47 AM nuxil: it is
07:47 AM xoomas: its like same
07:47 AM xoomas: :D
07:47 AM xoomas: if i undersand well :D
07:50 AM antto: bool iirc() { return false; /* because humans */ }
07:52 AM xoomas: studio 4
07:52 AM xoomas: bang
07:52 AM xoomas: works
07:52 AM nuxil: why
07:52 AM xoomas: wirst button click
07:52 AM xoomas: :)
07:53 AM nuxil: not just use use avr-gcc and a makefile + avrdude :D
07:53 AM nuxil: *why not
07:53 AM nuxil: i hit enter a bit to early :p
07:54 AM xoomas: is that better?
07:54 AM xoomas: its 3 things
07:55 AM nuxil: it just 2 things really. make your code. and a make file.
07:55 AM xoomas: i dont need to make any makefiles
07:55 AM xoomas: i dont even need to make file
07:55 AM nuxil: your make file will handel the uploade of the ocde
07:55 AM nuxil: *code
07:55 AM xoomas: i just write code
07:55 AM xoomas: compile and burn in
07:55 AM nuxil: i dont speak makefile either., but there are tonz of ones premade that can be used.
07:56 AM nuxil: just need to change a few things like mcu and include libs etc.
07:56 AM xoomas: but why i have to worry about them?
07:56 AM nuxil: well. its just a suggestion. if you like studio use it.
07:57 AM xoomas: what is better to use/
07:57 AM xoomas: i like studio becouse it almost good editor
07:58 AM xoomas: + it have that simulator
07:58 AM xoomas: for me its more like reminder of registers :)
07:58 AM nuxil: i like the avr-gcc because then i dont need crapware installed on my pc and i can use my fav editor to make code in
07:59 AM xoomas: winavr- avr-gcc?
07:59 AM nuxil: no idea.
07:59 AM xoomas: yes
07:59 AM Tom_L: i think stuido will create a makefile for you
07:59 AM nuxil: i have my programmer stuff on a raspberry pi (linux)
07:59 AM xoomas: its just for windows
08:01 AM antto: i use Code::Blocks and avrgcc+avrdude
08:01 AM antto: on windows/linux/noproblem ;P~
08:01 AM nuxil: np++ ftw :D
08:02 AM antto: meh
08:02 AM Thrashbarg: I'm on linux, so in choosing an editor I have a lot of scope for flame wars
08:03 AM xoomas: yesterday i installed ubuntu on VM
08:03 AM xoomas: very stlow install
08:03 AM xoomas: + until i got one app working
08:03 AM xoomas: was like nightmare :D
08:03 AM nuxil: Thrashbarg, on linux isnt there realy just 2 editors ? emacs & vi(m) :p ?
08:04 AM xoomas: but when i started it and looked from side maybe not that bad
08:04 AM xoomas: just needed to instal + 3 more modules
08:04 AM xoomas: and in the and still got BSOD
08:04 AM xoomas: :D
08:05 AM xoomas: wanted to try app for top programmer
08:07 AM xoomas: https://bues.ch/cms/hacking/toprammer
08:07 AM xoomas: this one
08:07 AM xoomas: but i guess need native linux
08:07 AM * nuxil sees a gui app and hides.
08:07 AM xoomas: if there is no drivers on HOST
08:07 AM _ami_: nuxil: vscode/atom/sublime text works pretty great on linux
08:07 AM xoomas: how to make drivers for that programmer
08:07 AM xoomas: for 64bit
08:07 AM nuxil: ok. i dont use linux as a desktop. i find it useless as a desktop unless all you want to do is watch youtube and listen to music.
08:08 AM * nuxil hids his mouse
08:08 AM arduiko: :D
08:08 AM nuxil: :D
08:09 AM nuxil: did you get your hid info ?
08:09 AM nuxil: arduiko, ?
08:09 AM arduiko: Even in Windows dev Center I didn't find help lol
08:09 AM arduiko: nah :/
08:10 AM Thrashbarg: y'know one thing I can't find for Linux is a decent GUI hex editor. They're all terrible. I use HxC under Wine :/
08:10 AM nuxil: arduiko, why did you post become private on that adruino forum?
08:10 AM arduiko: I use HxD personally
08:11 AM Thrashbarg: yes that one
08:11 AM arduiko: for windows
08:11 AM arduiko: my posts ?
08:11 AM arduiko: what you mean by private
08:12 AM arduiko: I don't see such indication
08:12 AM nuxil: yea you posted on a forum asking for the mouse info.. it was open for public. and now it requires login to see.
08:12 AM arduiko: ah yes because I removed it
08:12 AM arduiko: I erased information
08:12 AM nuxil: ok.
08:12 AM arduiko: so moderator maybe deleted it
08:13 AM arduiko: I deleted my posts because I don't like to let posts without anwser LUL
08:13 AM nuxil: well maybe give the post a bit more time than a few hours ?
08:14 AM arduiko: if there is no anwser after few hours, even a little: hey I got your same problem
08:15 AM arduiko: it's without hope
08:15 AM nuxil: o.O
08:15 AM nuxil: dude
08:15 AM arduiko: I know how arduino forum wokrs
08:15 AM arduiko: I got some very old post without any anwser
08:16 AM nuxil: there are people asleep when you write. and not everyone will see it untill its gone atleast 12hours. world is bigger than your little town :p
08:16 AM arduiko: like 2 years ago
08:16 AM arduiko: and I decided to deleted them
08:16 AM arduiko: it free the space of arduino server LUL
08:16 AM arduiko: lel
08:17 AM arduiko: anyway what I am asking is nothing of nothing :D
08:18 AM arduiko: from 67 view of my posts, you are telling me that no one have a logitech mouse or a PC steering wheel ?
08:18 AM arduiko: it's Statically impossible :D
08:19 AM nuxil: maybe 1 or 2 of them has one. but youre asking alot
08:19 AM arduiko: lol
08:19 AM arduiko: so the only option is to delete the posts
08:19 AM nuxil: besides. i dont see the point really. unless you want to use the logitech software.
08:20 AM nuxil: since these are none standard buttons and have their own meaning. and can be set to do whatever you like them to do.
08:20 AM arduiko: listen, how did you made this conclusion ?
08:20 AM arduiko: because you saw what I asking
08:21 AM arduiko: you understood the functioning
08:21 AM arduiko: not me
08:21 AM arduiko: simple as that
08:23 AM _ami_: meh, libocm3 changes the usb control EP callback signature.
08:23 AM arduiko: I am the guy that learn ASM and made some project with this language
08:23 AM _ami_: fixed it: https://github.com/amitesh-singh/FASTUSBasp/commit/8716bc953f51dc7e38b7f9c72b306bd94b6fd730
08:23 AM arduiko: hehe
08:27 AM _ami_: arduiko: avr asm is pretty straight-forward though. its much a big deal to learn it.. problem is when you start writing a big project using ASM.
08:27 AM _ami_: its NOT* much
08:28 AM arduiko: I didn't said that I made my arduino project in asm
08:28 AM arduiko: I made other project in asm, but not arduino
08:28 AM nuxil: arduiko,
08:28 AM nuxil: https://msdn.microsoft.com/en-us/library/windows/desktop/ms646292(v=vs.85).aspx
08:28 AM nuxil: https://msdn.microsoft.com/en-us/library/windows/desktop/bb787597(v=vs.85).aspx
08:28 AM nuxil: https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx
08:29 AM nuxil: make your own horizontal scoll
08:29 AM nuxil: :D
08:29 AM arduiko: ...
08:29 AM _ami_: arduino SDK is crap.. slow and badly written code.
08:29 AM arduiko: very funny LUL
08:30 AM arduiko: x)
08:30 AM arduiko: and about the arduino is crap
08:30 AM arduiko: well I don't care about it, I am not into this war haha
08:30 AM _ami_: :)
08:31 AM arduiko: I am more about WIndows vs Linux and Intel vs AMD and NVDIA vs AMD
08:31 AM arduiko: hehe
08:31 AM _ami_: :)
08:31 AM arduiko: WIndows vs Satan x)
08:32 AM _ami_: IMHO, linux is more suitable for a developer.
08:32 AM _ami_: i shall give you one example.
08:33 AM _ami_: i wanted to make a usb to gpio board using avr and wanted to make it work out of box.
08:33 AM _ami_: https://github.com/amitesh-singh/usb-gpio-board
08:33 AM _ami_: i wrote the firmware and then wrote the linux driver.
08:33 AM _ami_: for this board.
08:33 AM _ami_: also exposes usb user side APIs too to control the board.
08:34 AM _ami_: imagine achieving this on winSHIT
08:34 AM arduiko: ;)
08:35 AM arduiko: imagine if Logitech, ect think like you ?
08:35 AM arduiko: they making their USB devices only for Linux xD
08:35 AM arduiko: it will be the hell on the earth lol
08:36 AM _ami_: well. most of the devices in this world work on linux out of box.
08:36 AM arduiko: it shouldn't
08:36 AM arduiko: it's not fair
08:36 AM arduiko: WIndows only !
08:36 AM arduiko: xD
08:36 AM xoomas: its easyer on windows drive IO then on linux ;))
08:37 AM _ami_: sure, write win driver for every product you create.
08:37 AM xoomas: why need to write
08:37 AM xoomas: its already there
08:38 AM xoomas: :)
08:38 AM xoomas: + im sure that on linux you cant run lets say top2049 programmer out of box
08:38 AM arduiko: for write a linux driver, you need to know how the USB devices work at 100%
08:39 AM arduiko: so you need to access to technical detail
08:39 AM _ami_: well, i can learn it easily since most of linux driver code is open.
08:39 AM _ami_: do you see my point here which i made before?
08:40 AM arduiko: but first you need to ask to the enterprise to open the design to you
08:40 AM polprog: for the closed windows drivers on linux there is ndiswrapper
08:40 AM xoomas: http://www.xoom.lt/2010/09/07/usb-valdymas-su-ft232rl/
08:40 AM arduiko: for be able to understand its functioning
08:40 AM xoomas: sorry its not in english
08:40 AM xoomas: but video shows
08:40 AM _ami_: reverse engineer it - its not that hard!
08:40 AM arduiko: and it's kind illegal :D
08:40 AM _ami_: lots of drivers are written based on that.
08:41 AM _ami_: no, its not illegal, who told u that?
08:41 AM arduiko: every where in internet lol\
08:41 AM arduiko: for video games, for every thing
08:41 AM _ami_: lets not waste our time on this. you are happy with windows and i am with linux. so lets end this here!
08:41 AM xoomas: why then there is app like obfuskators
08:42 AM xoomas: and so on
08:42 AM * _ami_ goes back to coding.
08:42 AM xoomas: true _ami_ :)
08:42 AM arduiko: if you reverse engineering some Apple device, I am sure they will give you chocolate for this
08:42 AM arduiko: LUL
08:42 AM xoomas: hmm how to start again with avr
08:43 AM arduiko: reverse engineering is also an activity of hacker
08:44 AM arduiko: yes go back to arv/arduino subject
08:44 AM arduiko: x)
08:44 AM arduiko: microcontroller subject lel
08:44 AM xoomas: AVR
08:44 AM xoomas: not arduino
08:44 AM xoomas: :D
08:44 AM arduiko: ok x)
08:44 AM xoomas: arduino is marketing
08:44 AM xoomas: AVR is electronics ;D
08:44 AM arduiko: hoho
08:45 AM arduiko: like Apple ? :/
08:45 AM xoomas: or shuld i say puzzle
08:45 AM xoomas: never seen any apple
08:45 AM xoomas: just on tree
08:45 AM xoomas: some are good some not ;D
08:46 AM arduiko: lol
08:47 AM arduiko: else I talk about reverse enginnering illegal but by sniff the USB traffic of a USB devices to know how its working
08:47 AM xoomas: ok Atmega8 in breadboard [x]
08:47 AM xoomas: ;D
08:47 AM arduiko: it's also called reverse enginnering \
08:47 AM arduiko: I should go to jail for that xD
08:48 AM arduiko: I apologize, reverse enginering is cool stuff
08:48 AM arduiko: :D
08:48 AM xoomas: it sure are
08:48 AM xoomas: and its more fun than creating new stuff ;D
08:48 AM arduiko: ^^
08:49 AM Tom_L: damn hackers...
08:49 AM arduiko: xD
08:50 AM arduiko: that's maybe why I don't have help
08:50 AM arduiko: because what I asking is hacking activity
08:50 AM arduiko: all is clear now :o
08:50 AM xoomas: arduiko what you doing/
08:51 AM arduiko: I want a HID decriptor and some USB trace log of some USB devices that I don't have
08:51 AM Tom_L: i dare say the big boys hack stuff too
08:51 AM Tom_L: wireshark
08:51 AM arduiko: those USB devices are a logitech mouse with horizontal scroll buttons and a PC steering wheel
08:52 AM arduiko: how can I use a USB sniffer if I don't have the USB devices that I want ?
08:52 AM arduiko: that I need for*
08:55 AM arduiko: I should go to a hacking channel
08:55 AM arduiko: yeah good idea
08:55 AM arduiko: and a hacking forum
08:55 AM arduiko: :D
08:57 AM xoomas: why you are here ?:D
08:58 AM arduiko: for asking this question lol
08:58 AM arduiko: HID Desc request
08:58 AM arduiko: I need to go
08:58 AM arduiko: cya
09:06 AM arduiko: for those who can help me
09:06 AM arduiko: https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/9f66f607-378c-464c-8dae-9e62c3a92d1f/hid-descriptor-and-usb-trace-log-request?forum=wdk
09:06 AM arduiko: cya :D
09:16 AM xoomas: arduiko from where you are?
09:30 AM _ami_: lol, i found a pentium 4 PC in dumbster. :P
09:32 AM _ami_: garbage*
09:33 AM _ami_: and it has 256MB RAM.. can you believe this in year 2018?
09:34 AM Tom_L: sure
09:34 AM Tom_L: that's how i got my server
09:35 AM xoomas: :D
09:35 AM xoomas: dave l jones finds better ones
09:35 AM xoomas: :D
09:35 AM xoomas: he left that one for you :D
09:36 AM _ami_: Tom_L: wow, yours might have better specs :)
09:37 AM Tom_L: no clue. i dust it off every so often but meh
09:37 AM _ami_: xoomas: i plan to salvages some components. i needed a power supply
09:38 AM _ami_: this guy on internet says nothing is salvageable. what a jerk! https://www.youtube.com/watch?v=MdfFpGhoOqk
09:42 AM _ami_: nice inductors/caps
09:42 AM _ami_: on motherboard.
09:42 AM _ami_: and sockets
09:53 AM antto: i think i used wxHexEditor on linux
10:01 AM arduiko: xoomas I am from France :o
10:01 AM arduiko: lol\
10:02 AM Tom_L: now that explains _everything_ !
10:02 AM arduiko: xD
10:03 AM polprog: fuck you microsoft and your broken SQL server mgmt studio installer
10:03 AM arduiko: I love you microsoft for your shortcut Windows + .
10:04 AM Tom_L: polprog installing from the web?
10:04 AM Tom_L: i did the full install local
11:15 AM rue_bed: that 2.8Ghz p4 i have is waaaaay slower than the 800Mhz amd
11:15 AM rue_bed: 800Mhz thats 3x faster than a p4 rated at 3x the clock speed
11:15 AM rue_bed: so the p4 is 9x slower
11:16 AM rue_bed: so I'm going to ditch it and replace it with a 1Ghz amd
11:21 AM learath: That's weird.
11:21 AM learath: I mean, the p4 *sucked*
11:27 AM xoomas: what was page dor arv fuses
11:27 AM xoomas: for*
11:27 AM xoomas: AVR
11:37 AM xoomas: ok resurected frankenmega8 from graveyard
11:37 AM xoomas: :D
11:37 AM xoomas: 0x1E 0x93 0x07
11:47 AM nuxil: look in topic
11:47 AM nuxil: or type in chat:/topic to see it
11:48 AM nuxil: frankmega8 :)
11:49 AM nuxil: i got two atmega88-20pu yeasterday :)
11:52 AM xoomas: oh lol :))
11:52 AM xoomas: i googled it ;)
11:52 AM xoomas: but by accident got idea
11:53 AM xoomas: writed simplest test
11:53 AM xoomas: togle pin
11:53 AM xoomas: and sreamed on camera
11:53 AM nuxil: im replacing my cheap ass r2r diy keypad with a cheap ass chinees 4x4matrix keypad. so i needed more pins. my atiny85 will not do the job.
11:53 AM xoomas: and got idea maybe its possible to measure blinking spead
11:53 AM nuxil: so i got these chips
11:54 AM xoomas: r2r was with ADC?
11:55 AM nuxil: yea. i have 8 buttons on my keypad. that is setup in a r2r network. so i use just need to use 1 pin to get which button was pressed.
11:56 AM nuxil: but im replacing it with a 4x4 matrix keypad
11:56 AM xoomas: is it any better?
11:57 AM nuxil: r2r is superior if done correctly.
11:57 AM nuxil: you can if setup adc on a atiny to full 10bit use 1023 buttons on 1 bin.
11:57 AM nuxil: in theory
11:58 AM nuxil: but my setup is crap :p
11:58 AM nuxil: membrane from old remote. using old tact buttons. etc. its a real. so so diy keypad.
11:59 AM nuxil: so yea im better of using a 4x4 matrix that is done properly.
12:00 PM nuxil: got 10 of them for like 2 buck or so.
12:00 PM nuxil: on ebay
12:04 PM xoomas: can matrix be converted to r2r?
12:04 PM xoomas: :)
12:05 PM nuxil: heh
12:05 PM nuxil: idk. i suppose if you put some glue logic in between
12:06 PM nuxil: also another + with r2r keypad is that code to get it working is rather minimal.
12:08 PM nuxil: but it has some issue tho.
12:09 PM xoomas: matrix also have
12:09 PM xoomas: bouncing problems
12:09 PM xoomas: :)
12:09 PM nuxil: yea. with r2r you want to make more than 1 sample for 1 button.
12:09 PM xoomas: on r2r if not 1023 buttons its preaty bulletproff L:D
12:10 PM nuxil: because. assume button X is at 3.45V and buttonY is at 3.5V . when you press the volt will rise and you might get a sample at 3.45 giving you wrong button.
12:10 PM nuxil: so do min 2 samples with r2r.
12:13 PM xoomas: thats why better do with bigger "gaps"
12:13 PM xoomas: :))
12:13 PM nuxil: you dont get big gaps with 10bit resolution on 5V :p
12:14 PM xoomas: it debends not on ADC
12:14 PM xoomas: but on your resistors
12:14 PM nuxil: so in practice. 1023 buttons not dueble :p
12:14 PM xoomas: it is doable :))
12:14 PM xoomas: but then yes
12:14 PM xoomas: you need to make more samples
12:14 PM xoomas: :)
12:14 PM xoomas: to be sure :D
12:15 PM xoomas: but like with 5 buttons
12:15 PM xoomas: and 1v
12:15 PM xoomas: its easy
12:15 PM nuxil: yea.
12:15 PM xoomas: 0v 1v 2v 3v 4v
12:15 PM xoomas: :D
12:15 PM nuxil: no
12:15 PM nuxil: 2.5 idle?
12:16 PM xoomas: 5v idle
12:16 PM nuxil: ok
12:16 PM xoomas: uhm
12:16 PM xoomas: i2c lib
12:16 PM xoomas: what name was ;D
12:16 PM xoomas: twi.h?
12:17 PM nuxil: wait. i got a good one. hold one. let me find it.
12:17 PM polprog: Tom_shop: i sorted it out, finally
12:18 PM nuxil: xoomas, http://homepage.hispeed.ch/peterfleury/avr-software.html
12:18 PM nuxil: down on the page.
12:18 PM nuxil: its written in asm
12:18 PM nuxil: works verry vell.
12:19 PM xoomas: im writing in c
12:20 PM nuxil: dude
12:20 PM nuxil: :)
12:20 PM nuxil: read
12:20 PM polprog: you can mix c and asm
12:20 PM nuxil: This library consists of a C include file i2cmaster.h and an assembler module i2cmaster.S.
12:20 PM polprog: and its very nice to do so
12:20 PM xoomas: ah tehre is c too
12:21 PM nuxil: its examples there in the header file how to use it
12:21 PM xoomas: i can use i2cmasrter.s also
12:21 PM xoomas: ?
12:21 PM xoomas: i mean in c
12:21 PM nuxil: yes.
12:21 PM nuxil: that the point
12:21 PM xoomas: ah
12:21 PM xoomas: so its in asm more omptimal
12:21 PM nuxil: the i2c is a "lib" written in asm
12:22 PM nuxil: you just inclide it
12:22 PM nuxil: i cant type for shit :p
12:23 PM nuxil: the only more optimal thing would be to write the hex file for the chip manually
12:23 PM nuxil: :p
12:23 PM xoomas: :D
12:23 PM xoomas: btw
12:23 PM xoomas: anyone tryed radare2?
12:24 PM polprog: yeah
12:24 PM polprog: once you get to know the basic commands (worse than vim) its a very good disassembler
12:25 PM xoomas: i think there is gui for it
12:25 PM polprog: :D
12:25 PM polprog: there is the python gui (dead) and the web UI (misses features)
12:25 PM polprog: just use the TUI
12:27 PM xoomas: nuxil
12:27 PM xoomas: but its soft i2c?
12:28 PM nuxil: did you download and read it.
12:28 PM nuxil: there is a hw and a soft solution.
12:28 PM nuxil: iirc
12:28 PM nuxil: i only used it on my atiny85 with great succsess.
12:29 PM xoomas: i2cmaster.zip
12:29 PM xoomas: i see only this one
12:29 PM polprog: sigh *unzips*
12:30 PM nuxil: and as a TWI hardware interface for all AVR with built-in TWI hardware (twimaster.c).
12:30 PM nuxil: Since the API for these two implementations is exactly the same, an application can be linked either against the
12:30 PM nuxil: software I2C implementation or the hardware I2C implementation.
12:31 PM polprog: smart
12:31 PM nuxil: yea
12:31 PM xoomas: oh yes :D
12:32 PM xoomas: maybe there is uart too? D:
12:32 PM xoomas: sure is
12:32 PM xoomas: :D
12:32 PM polprog: which prog draws those nice schematics? http://homepage.hispeed.ch/peterfleury/starterkit-circuit1.gif
12:35 PM nuxil: kicad ? ltspice ? https://www.draw.io/ ?
12:36 PM xoomas: ../uart/uart.h:53:2: error: #error "This library requires AVR-GCC 4.5 or later, update to newer AVR-GCC compiler !"
12:36 PM xoomas: hmm
12:36 PM nuxil: youre out of date :p
12:36 PM xoomas: win-avr is not good enouhg?
12:36 PM polprog: no
12:37 PM polprog: winavr is old as hell
12:37 PM nuxil: who the f.. uses winavr nowadays :? :p
12:37 PM xoomas: but that avr-gcc will work wioth avrstudio?
12:37 PM polprog: avr-gcc is at version 7.3.0 rn and thats on debian
12:37 PM xoomas: im using ;D
12:37 PM polprog: nuxil: i do.... when i needed to develop for avr on win :D
12:38 PM xoomas: im in windows
12:38 PM polprog: just cos i had visual studio open writing an interface program for the board
12:38 PM nuxil: i just code on win and compile on linux:p
12:38 PM xoomas: thats insane lD
12:38 PM polprog: because serial terminals are hard, some people need buttons lol
12:38 PM xoomas: :D
12:38 PM nuxil: why?
12:39 PM xoomas: i need buttons
12:39 PM xoomas: :D
12:39 PM polprog: xoomas: what is normal when everyone is insane
12:39 PM xoomas: normal is like i do now
12:39 PM xoomas: :))
12:39 PM xoomas: compile 1 button
12:39 PM xoomas: second button write to chip
12:39 PM xoomas: thats it :D
12:39 PM xoomas: no 2 OS needed
12:39 PM xoomas: to blink a LED LD
12:40 PM nuxil: i use my raspberry as a programmer aswell
12:40 PM polprog: raspi was a great STM programmer for me
12:40 PM xoomas: hmm
12:40 PM xoomas: what i have to do with that win-avr now
12:41 PM xoomas: why its stoped updating
12:41 PM polprog: i had a makefile on the PC that 1) compiled the image, 2) transferred it over ZMODEM to the Pi, 3) ran a flashing makefile on the Pi
12:41 PM nuxil: zx
12:41 PM nuxil: xoomas, this is my programmer :p https://gyazo.com/30e093e516d1a23dc16d355c1dd89085
12:41 PM nuxil: :)
12:41 PM polprog: its beautiful
12:41 PM nuxil: hehe
12:42 PM polprog: havent used yellow perfboard for a year or so :D
12:42 PM xoomas: nuxil http://www.xoom.lt/2010/01/07/usb-avr-isp-programatorius-stk500v2/
12:42 PM xoomas: here is mine :D
12:42 PM polprog: lietuva
12:42 PM polprog: nice
12:42 PM polprog: :D
12:42 PM xoomas: :D
12:43 PM nuxil: nice :)
12:43 PM xoomas: taip lietuva ;D
12:43 PM polprog: heres my latest proto that i used to generate square for the cap experiment at school
12:43 PM polprog: https://puu.sh/zi7nf/d41ade3a1f.jpg
12:43 PM xoomas: still using it since then :D
12:44 PM xoomas: https://i.imgur.com/V5pkKEI.jpg
12:44 PM xoomas: here was trying to talk with other beast :D
12:44 PM xoomas: Renesas
12:44 PM xoomas: :D
12:44 PM xoomas: https://i.imgur.com/YUnZPo7.png
12:44 PM xoomas: had to write my own flasher :D
12:45 PM xoomas: becouse genuine not worked :D
12:45 PM polprog: whats that
12:45 PM xoomas: somehow it not drived reset and mode pins
12:45 PM polprog: or rather
12:45 PM xoomas: thats board from clothe tryer
12:45 PM xoomas: dryer*
12:45 PM polprog: ok
12:45 PM xoomas: :)
12:46 PM xoomas: i readed it
12:46 PM xoomas: erased it
12:46 PM xoomas: fucked up it ;D
12:46 PM polprog: lol
12:46 PM xoomas: then somehow he resurected
12:46 PM polprog: chip brainwashing is hard :D
12:46 PM xoomas: was able to comunicate again
12:47 PM xoomas: but still cant find way to write my own fw on it
12:47 PM polprog: step one
12:47 PM xoomas: toolcain is crazy there
12:47 PM polprog: install linux
12:47 PM xoomas: it have HEW IDE
12:47 PM polprog: [not gentoo]
12:47 PM polprog: install the toolchain
12:47 PM xoomas: i have ubuntu on VM :D
12:47 PM xoomas: not seen toolcain for linux
12:47 PM polprog: you can even install eclipse with avr tools of you like an IDE
12:48 PM polprog: emil.fi/avr
12:48 PM xoomas: i mean for Renesas
12:48 PM polprog: ah
12:48 PM polprog: thats renesas ok
12:48 PM xoomas: simplest thing i found was something like RTOS with CAN
12:48 PM xoomas: :D
12:48 PM xoomas: and i olny wanted to blink a led
12:48 PM xoomas: :D
12:49 PM polprog: looks like arm
12:49 PM polprog: in theory
12:49 PM xoomas: tryed to hack it :D
12:49 PM xoomas: ists CISC
12:49 PM xoomas: or how its called
12:49 PM xoomas: found special register addresses
12:49 PM polprog: you could check the datasheet for one, write a c prog, compile with proper GCC version, find a way to flash it
12:49 PM xoomas: and writed to one of them :D
12:49 PM polprog: done
12:50 PM xoomas: i have how to flash it
12:50 PM xoomas: problem is that i cant write anything
12:50 PM xoomas: i mean its like unknown syntaxe for it
12:50 PM xoomas: :D
12:50 PM xoomas: but its still C
12:51 PM polprog: C is C
12:51 PM xoomas: wandet to make p0 = 255
12:51 PM xoomas: = <- unknown shit :D
12:51 PM polprog: you need to tell it where p0 is in memory
12:51 PM xoomas: i used include
12:51 PM xoomas: like for avr
12:51 PM xoomas: io.h
12:51 PM polprog: like
12:51 PM xoomas: alos checked if its same address
12:52 PM xoomas: in datasheet
12:52 PM xoomas: it was same address
12:52 PM xoomas: but i cant assign anything to it
12:52 PM xoomas: :D
12:52 PM xoomas: and cant find any example :)
12:52 PM polprog: if you seriously want
12:54 PM xoomas: https://i.imgur.com/1K3wr.jpg
12:54 PM xoomas: AVR's is much easyer :D
12:54 PM polprog: #define MY_VAR *((volatile int *) 0x1234)
12:54 PM polprog: MY_VAR = 123
12:54 PM polprog: sorry, volatile uint8_t
12:55 PM xoomas: https://i.imgur.com/xjfhW.jpg end result :D
12:55 PM polprog: thats how you write to a given memory addr in C
12:55 PM polprog: nice
12:55 PM polprog: homemade PCBs, cool
12:55 PM xoomas: yeah :D
12:56 PM xoomas: https://i.imgur.com/YzVo5aw.jpg
12:56 PM xoomas: homemade PSU
12:56 PM xoomas: :D
12:56 PM polprog: cool chassis
12:56 PM polprog: not grounded >:(
12:57 PM xoomas: found like 3 of them in metal scrap yard
12:57 PM xoomas: why need to ground
12:57 PM xoomas: :D
12:57 PM xoomas: in lithunia main sockets without ground :D
12:57 PM polprog: oh, ok
12:57 PM xoomas: https://i.imgur.com/HDRB5.jpg
12:57 PM polprog: i mean, not ok. but you know
12:57 PM xoomas: more
12:57 PM xoomas: yeah i know ;)
12:58 PM polprog: :D
12:58 PM polprog: i tried homemade PCBs a couple of times
12:58 PM xoomas: https://i.imgur.com/FiNxj.jpg
12:58 PM polprog: need to fix the laser printer
12:58 PM xoomas: oh what i found ;D
12:58 PM xoomas: second avr programmer
12:58 PM xoomas: :D
12:58 PM xoomas: before stk500 :D
12:59 PM xoomas: https://i.imgur.com/84Cf0.jpg
12:59 PM xoomas: ant the first one ;D
12:59 PM polprog: this was my first one
12:59 PM polprog: https://puu.sh/yLdUy/4b6c972bed.jpg
12:59 PM polprog: cardboard plug body
12:59 PM polprog: :
12:59 PM polprog: :D
12:59 PM xoomas: nice ;D
01:00 PM xoomas: those was the times ;D
01:00 PM xoomas: not like now
01:00 PM polprog: haha
01:00 PM polprog: yeah
01:00 PM xoomas: arduino and you are pro
01:00 PM xoomas: :D
01:01 PM polprog: i remember i brougt alive an intel Atom PC because it had a parport. My first avr dev setup was that plus that cable
01:02 PM xoomas: lol i deleted that if gcc is too old
01:02 PM xoomas: and it compiles ok :D
01:02 PM xoomas: :D
01:03 PM polprog: avr dev on windows sucks totally
01:03 PM xoomas: no
01:03 PM polprog: yea
01:03 PM xoomas: not totaly :D
01:03 PM xoomas: its okeys
01:03 PM polprog: i know what i went through
01:03 PM polprog: compared to the toolchain i have here
01:06 PM xoomas: but i how one problem
01:06 PM xoomas: not related to AVR
01:06 PM xoomas: :D
01:06 PM polprog: brb
01:07 PM xoomas: i have SSD from asus zenbook
01:07 PM xoomas: want to install it to desktop
01:07 PM xoomas: but connector is weird :))
01:08 PM polprog: probably msata. you can get msata-sata adapters easily
01:08 PM xoomas: its like msata
01:08 PM xoomas: but not
01:08 PM xoomas: :D
01:09 PM xoomas: ssd is: SDSA5JK-128G
01:09 PM xoomas: i want to solder short wires to it and to sata connector
01:09 PM xoomas: but need info :D
01:09 PM xoomas: and cant find
01:13 PM polprog: i saw you have a decent scope. what are you waiting for? hardcore is hardcore :D
01:13 PM xoomas: its ds1052e
01:13 PM xoomas: hacked ofcourse ;D
01:14 PM polprog: haha
01:14 PM xoomas: problem is that i dont have where to plug it
01:14 PM xoomas: :D
01:14 PM polprog: yeah
01:14 PM xoomas: i mean taht SSD
01:14 PM polprog: i have a ds1054z
01:14 PM xoomas: i see lvds lines with eyes
01:14 PM xoomas: oh
01:14 PM xoomas: nice
01:14 PM xoomas: z is nice
01:14 PM xoomas: not like this one ;D
01:15 PM xoomas: but still better then nothing :D
01:16 PM polprog: yesterday i used https://puu.sh/zzOSw/bf90801c55.jpg while showing an experiment at school
01:16 PM polprog: borrowed
01:16 PM polprog: from the school lab
01:17 PM xoomas: :)
01:17 PM xoomas: maybe also hackable ? :D
01:17 PM polprog: last year this cool hameg https://puu.sh/ybQl0/469afe1895.jpg
01:17 PM xoomas: :))
01:19 PM xoomas: emm need to update topic
01:19 PM polprog: why
01:19 PM xoomas: there is not togle pin macro
01:19 PM xoomas: :D
01:19 PM polprog: that macros are pretty controversial here lol
01:19 PM polprog: those*
01:20 PM xoomas: :D
01:20 PM xoomas: hmm but i forgot how to togle pin
01:20 PM polprog: < Emil> please unfuck the topic
01:20 PM polprog: ^ :D
01:20 PM xoomas: PORTB &= ^(1<<PB0); ?
01:21 PM polprog: no thats off-ing a pin
01:21 PM nuxil: xoomas, https://gist.github.com/Jartza/56d006504316ef5fe5a3db1b3e438ca9
01:21 PM polprog: toggle is logic XOR
01:21 PM polprog: PORT ^= (1<<PIN);
01:22 PM polprog: lol so many awsome stuff when i grep #avr.log against the string "fuck"
01:22 PM xoomas: :D
01:22 PM polprog: 21:49 < Emil> polprog: I wonder how the fuck it worked
01:22 PM polprog: 21:50 < polprog> me too. the fucked fuse was set to "crystal resonator"
01:22 PM xoomas: i imagine what grep is but ill be silent ;D
01:22 PM polprog: ?
01:24 PM xoomas: im not linux guy :)
01:24 PM xoomas: so grep is like heard with one ear :D
01:24 PM polprog: filters lines looking for a string
01:25 PM polprog: like findstr in powershell
01:29 PM xoomas: also
01:29 PM xoomas: bash
01:29 PM xoomas: its like mystery for me ;D
01:29 PM xoomas: i know it can do some noce things L:D
01:29 PM polprog: powershell for me too
01:30 PM xoomas: hmm
01:30 PM xoomas: i2c looks bit weird
01:30 PM xoomas: but maybe becouse im just seding start every 30ms
01:30 PM xoomas: and its not connected to anything :)
01:31 PM xoomas: also internal pull up is shit for i2c :D
01:31 PM polprog: yeah
01:31 PM polprog: i2c needs and acknowledge from the slabe
01:31 PM polprog: slave*
01:31 PM nuxil: internal pullups ?
01:31 PM nuxil: you need to use extenal ones.
01:31 PM xoomas: yes i put resitors
01:32 PM xoomas: first tryed with internal :))
01:32 PM xoomas: was like sinusoides :D
01:41 PM polprog: im getting TI ads on facebook
01:41 PM polprog: they know everyting about me
01:41 PM xoomas: maybe you googled abpout them
01:42 PM xoomas: hmm
01:43 PM xoomas: does i2c eeproms all have same address?
01:43 PM polprog: no
01:43 PM polprog: usually they have a base addr and you use pins to trim it to your needs
01:43 PM xoomas: yes
01:43 PM polprog: base address depends on the chip
01:43 PM xoomas: but that base
01:44 PM xoomas: for exaple c01 c02 c04 c08
01:45 PM polprog: i need to get a green/amber CRT
01:46 PM xoomas: hmm
01:46 PM xoomas: do i have to add R/W bit or no
01:46 PM xoomas: ; )
01:48 PM xoomas: Issues a start condition and sends address and transfer direction.
01:48 PM xoomas: return 0 = device accessible, 1= failed to access device
01:48 PM xoomas: but arg is only address
01:48 PM xoomas: so i have prepare address for dirrection?
01:50 PM nuxil: read up on the i2c protocole
01:52 PM xoomas: im just rusty :D
01:52 PM xoomas: already radint eeprom :D
02:28 PM xoomas: gn8
03:14 PM Emil: polprog: hahah :D
11:19 PM * nuxil yawns and sips some morning coffee!
11:20 PM nuxil: time to write some code for this matrix keypad.
11:22 PM nuxil: should be rather simple right. loop over the clolum. then for each colum loop over each row to see if a key is pressed.
11:23 PM nuxil: i suppose the colums not in use should be set to high Z to and not use High/Low avoid a short on the i/o pins if 2 buttons pressed at once.
11:25 PM nuxil: *erm need more coffee. cant type.
11:25 PM nuxil: but i dont think more coffee will help anyway :D
11:33 PM day__ is now known as day