#avr Logs

Mar 24 2018

#avr Calendar

12:14 AM day__ is now known as day
03:51 AM rue_shop4: its not day till I'v slept!
04:18 AM antto: so what's the programmer for stm32?
04:19 AM antto: does it vary between different chip models?
04:21 AM tpw_rules: most of the cortex Ms use jtag or SWD
04:21 AM tpw_rules: the official stm32 programmer is the st-link. but most of their demo boards also come with a part that breaks off so you can use it as an st-link
04:21 AM tpw_rules: in theory you can use anything that does swd or jtag but it's not as plug and play with the ides and stuff
04:22 AM tpw_rules: but an official st-link is 20 bucks. or free with a demo board
04:22 AM antto: i've not used jtag ever, but i know it takes a lot of pins from the chip, and i don't like that
04:22 AM tpw_rules: what stm32 were you thinking of using?
04:23 AM tpw_rules: pretty much anything <= M4 or so will do SWD, which is five pins
04:23 AM tpw_rules: data, reset, clock, power, ground
04:23 AM antto: stm32f4xx .. currently looking at the f446 in lqfp64
04:23 AM antto: but i'm coming from xmega, for which i have just 2 pins for programming (it's PDI)
04:24 AM tpw_rules: yeah arm requires 3 from the chip
04:24 AM tpw_rules: then ground, and usually Vtarget
04:25 AM antto: does the st-link programmer have SWD?
04:25 AM tpw_rules: yeah
04:25 AM tpw_rules: http://www.st.com/en/evaluation-tools/nucleo-f446re.html i would extremely suggest something like this
04:26 AM tpw_rules: 14 bucks, with the chip you wanted and all the IO broken out, and the top bit snaps off into a standalone st-link for any future chips you ever want
04:28 AM tpw_rules: the st-link is a debugger too, with the same swd interface
04:29 AM antto: how is the programmer wired to the F446 on that board? via SWD or jtag?
04:29 AM tpw_rules: swd
04:30 AM antto: okay, so.. this looks good then
04:30 AM tpw_rules: probably? it doesn't matter much. you could snap off the programmer and wire it up the other way
04:31 AM tpw_rules: they usually also have ROM bootloaders to program them over most of their communication interfaces
04:31 AM antto: what's the fastest way to buy this nucleo if i'm in EU?
04:32 AM tpw_rules: i don't know. but at the bottom you can click "distributor availabiltiy" and see if your fav place has it
04:32 AM antto: that button doesn't work ;P~
04:33 AM tpw_rules: really? it works on my side and i'm in the EU rn
04:33 AM antto: or it uses javascript
04:33 AM antto: lemme try again
04:33 AM tpw_rules: yeah it does it's a weird popup
04:34 AM antto: so, mouser or farnell
04:34 AM tpw_rules: and yeah it has a mask rom bootloader with uart, i2c, can, spi, and usb support
04:34 AM tpw_rules: so you could just forgo the programmer entirely, but then you can't debug it
04:34 AM polprog: morning
04:35 AM antto: i'll have to buy it via the job, together with some other components
04:35 AM rue_shop3: stmF103 is CHEAP
04:35 AM tpw_rules: ok. good luck!
04:35 AM antto: tpw_rules i will need to make a custom bootloader on this
04:35 AM tpw_rules: why?
04:35 AM tpw_rules: and also, stm32cube and systemworkbench are the official free software for it. they both kinda suck, but they're very useful
04:36 AM rue_shop3: gcc and makefile
04:36 AM antto: i'm using stm32cubeMX, and Code::Blocks
04:36 AM antto: no makefiles pls :~(
04:36 AM tpw_rules: that's the eventual goal, but if you want to blink an led with a minimum of codewriting
04:36 AM tpw_rules: and with openocd you get a full-featured debugger over swd
04:37 AM antto: i've only tried/seen debugging once, with pic18F pickit3 and the terrible MPLABX ide
04:38 AM antto: it's fancy, but i tend to rely on blinking a LED and/or having a debug UART output
04:38 AM tpw_rules: fair enough. i'm definitely of the debugger persuasion
04:39 AM tpw_rules: also writing a bootloader isn't too hard
04:39 AM tpw_rules: the main bootloading is like four asm instructions. the difficulty is programming it :P
04:39 AM tpw_rules: (into the chip)
04:40 AM antto: tpw_rules i'll be adding a tcp<->usart module onto this, and the firmware must be able to be told via the server (in the high-level protocol) "reboot yourself into the bootloader" and then the bootloader must initialize the USART quickly and start talking with the server to get a new firmware..
04:41 AM tpw_rules: you could probably get one with ethernet :P
04:41 AM antto: i really don't want that
04:41 AM tpw_rules: but yeah that should be easily doable
04:41 AM antto: because this tcp<->usart module can be swapped with something else, like tcp(wifi)<->usart
04:42 AM tpw_rules: ah ok
04:43 AM _ami_: antto: which mcu are you using for this? AVR? stm32/
04:43 AM _ami_: ?
04:44 AM antto: i'm looking at stm32f446
04:44 AM antto: i need 6 U(S)ARTs
04:45 AM _ami_: so tcp/wifi module is connected to stm32f4xx via usart?
04:45 AM rue_shop3: cant use software uart?
04:45 AM antto: _ami_ yes, synchronous
04:45 AM antto: an transparent
04:45 AM rue_shop3: are you using dhcp?
04:46 AM antto: no, why?
04:46 AM rue_shop3: cause I need to set up an stm32 with dhcp
04:46 AM antto: the idea is that the stm32 will NOT have to know/care how it is connected to the server
04:47 AM rue_shop3: yea I need more 3d printers
04:48 AM rue_shop3: hey, your using windows aren't ya?
04:48 AM antto: the bootloader is probably gonna be the first thing i'll have to code on this
04:48 AM rue_shop3: how much did you pay for the irc client and which one are you using?
04:49 AM antto: i'm using both windows and debian
04:49 AM rue_shop3: for windows, which irc client?
04:49 AM dehuman: EPIC5-2.0.1 (Indolence) + LiCe v5.3.0 (rage)
04:49 AM dehuman: oh nm
04:49 AM antto: mIRC
04:49 AM rue_shop3: how much was registering it?
04:49 AM rue_shop3: $20?
04:49 AM dehuman: (no one registers it)
04:50 AM rue_shop3: you have to now I'm told,
04:50 AM antto: why? isn't the current price the important price?
04:50 AM rue_shop3: stops working after about a week?
04:50 AM antto: nah, it doesn't
04:50 AM antto: it nags you with a dialog
04:50 AM rue_shop3: casue my buddy who loves windows says it expired and wont open
04:50 AM rue_shop3: and all the other ones are pay, even hexchat!?
04:50 AM antto: oh, i'm not running the latest version tho
04:51 AM antto: wut, hexchat shouldn't be payware, oh wait
04:51 AM rue_shop3: for windows it is
04:51 AM dehuman: https://irssi.org/download/
04:51 AM antto: the windows version of hexchat had some additional difficulty and was thus payware
04:51 AM antto: just get a debian then
04:51 AM dehuman: you can get cygwin irssi
04:51 AM rue_shop3: no he hates linux
04:51 AM dehuman: use that
04:51 AM rue_shop3: no he hates linux
04:51 AM dehuman: its windows
04:52 AM rue_shop3: he wont put up with cygwin
04:52 AM rue_shop3: he would rather just say that irc is cr**
04:52 AM dehuman: kvirc
04:52 AM antto: play him an audiotape while he sleeps with a subliminal message "you love linux and you are very happy when you use it.. you love linux and.."
04:53 AM rue_shop3: never heard of it, ok
04:53 AM rue_shop3: no he really hates linux with a passion
04:53 AM dehuman: kvirc isnt bad iirc
04:53 AM rue_shop3: says that windows is the only way to go
04:53 AM antto: with a passion?! o_O
04:53 AM antto: yeah, it's the shortest way to the NSA
04:53 AM rue_shop3: so, I pointed out that as a windows user, he has to pay for programs, thats the way
04:53 AM dehuman: kvirc is free
04:53 AM dehuman: its quality too
04:54 AM rue_shop3: ok, I'll get him to try that
04:54 AM dehuman: (as far as windows irc clients go)
04:54 AM antto: bitchx has windows version ;P~
04:54 AM dehuman: ick
04:54 AM dehuman: on both counts
04:55 AM dehuman: i dont mind irssi, i've had to use it before for some odd sasl or proxy feature before once upon a time
04:55 AM rue_shop3: if I had 5 printers, I wonder if I'd still be waiting
04:55 AM dehuman: i like epic
04:56 AM dehuman: with lice of course
05:00 AM _ami_: have you guys made electronics load before?
05:01 AM _ami_: After completing this bench power supply, i am thinking to work on making an electronics load. it would come handy
05:25 AM antto: i read everywhere that stm32 chips have 96bit unique id, can this be used for ethernet MAC address?
05:34 AM rue_shop3: I did
05:34 AM rue_shop3: 5A, iirc
05:34 AM rue_shop3: I use a LARGE mosfet, heatsink, op-amp, and a large 1R resistor as a current sense
05:35 AM rue_shop3: I use an avr with a filtered pwm output
06:36 AM polprog: i have a mosfet based dummy load
06:36 AM polprog: simple source follower and a .5 ohm resistor as CCS
06:37 AM polprog: i should remake it with an external power and opamp so it can go lower than 2.5V
06:37 AM polprog: i think i have one like that but its a quick and dirty proto, no heatsink, etc
06:38 AM polprog: ive got a small heatsink from a power supply... maybe will be enough
06:39 AM polprog: if not ill add another opamp in comparator mode that lights up a warning led if the heatsink heats up too much :P
06:39 AM polprog: or just cuts everything off
06:40 AM polprog: oh wait, i have an old cpu heatsink
08:06 AM polprog: i cloned the qemu repo and tried to apply a patch from the maiking list but it fails
08:07 AM polprog: i need to find a way to checkout the commit the patch was made for
08:07 AM polprog: the avr patch
11:16 AM rue_: you can drive the fet enough at 2.5V?
11:16 AM rue_: huh
11:17 AM rue_: yea, I have extrenal power on mine
01:01 PM polprog: was it 2.5 or 4, no idea
01:02 PM polprog: its IRF20 and the resistor is actually 0.1 ohm
01:02 PM polprog: i have a .2 here as well
01:02 PM polprog: could make one with external power
01:02 PM polprog: in fact i have a neat 4 amp analogue ammeter
01:03 PM polprog: so i could put all of this in a neat metal box if i had one
01:04 PM polprog: rue_: https://puu.sh/zOEdB/d6068da46b.jpg
01:05 PM Tom_L: regulator?
01:05 PM polprog: dummy load
01:06 PM polprog: made it when i was totally new to FETs and electronics in general
01:06 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/temp/resistor2.jpg
01:06 PM Tom_L: dummy load
01:06 PM polprog: adjustable
01:06 PM polprog: by moving the ring?
01:06 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/temp/resistor1.jpg
01:06 PM Tom_L: yes
01:07 PM Tom_L: i've no idea where i got that
01:07 PM polprog: 175 watt. nice. you can heat your coffee and test a PSU at the same time
01:20 PM polprog: some die photos from my crappy usb microscope
01:20 PM polprog: https://puu.sh/zOEKP/28268c0b53.png
01:20 PM polprog: https://puu.sh/zOEL9/0282710b4e.png
01:20 PM polprog: first one is a realtek PHY
01:20 PM polprog: or the second one. i think the second one rather
01:21 PM polprog: Emil: rue_ nuxil ^
01:38 PM Emil: polprog: pretty cool
01:39 PM Emil: you could try those superimaging techniques that combine multiple images for more accurate results
01:39 PM Tom_L: is that what canned blue smoke looks like?
01:40 PM Emil: https://en.wikipedia.org/wiki/Super-resolution_imaging
01:42 PM Emil: https://petapixel.com/2015/02/21/a-practical-guide-to-creating-superresolution-photos-with-photoshop/
01:42 PM Emil: It's called stacking
01:43 PM Emil: https://photo.stackexchange.com/questions/21903/can-i-combine-several-low-quality-pics-into-one-higher-quality-picture
01:43 PM Emil: polprog: https://web.archive.org/web/20111227060740/http://auricle.dyndns.org/ALE
01:45 PM Emil: https://discuss.pixls.us/t/script-to-automate-creation-of-superresolution-images-from-a-series-of-handheld-shots/3163
01:45 PM Emil: Alrighty
01:45 PM Emil: I think you have enough links :D
01:45 PM Emil: "linux image stacking super resolution" will give more
01:46 PM Emil: polprog: try those and see if you can (I think you can) greately increase the resolution of those die shots :D
02:01 PM polprog: i am looking at proper microscopes rn
02:02 PM polprog: trying to find one that has some form of video attachmeny
02:02 PM polprog: ment*
02:02 PM polprog: or ill have to mod it a bit
02:03 PM Emil: polprog: but what if you only needed METH
02:03 PM polprog: hell, ill have to mod it anyways to add a polarizer
02:03 PM Emil: Did I say MATH I meant METH
02:03 PM polprog: and a reflected light source as most of the stufff i can get is biological ones
02:42 PM nuxil: polprog, nice
02:43 PM * nuxil yawns.
02:43 PM nuxil: i am 6hours into my print
02:43 PM nuxil: still 2 hours left :p
02:44 PM nuxil: polprog do you use a macro lense ?
02:52 PM Flecks is now known as Fleck
03:06 PM polprog: no, that was a usb microscope
03:08 PM polprog: nuxil: print?
03:14 PM nuxil: 3dprint
03:21 PM nuxil: main board runs of a atmel. thats why i bought it :p
03:21 PM nuxil: just kidding :D
03:46 PM mudkip908_ is now known as mudkip908
04:03 PM rue_: polprog, what are you using to strip them?
04:04 PM polprog: butane torch
04:04 PM polprog: no nitric acid in the house ;)
04:04 PM rue_: ??
04:05 PM rue_: huh
04:05 PM rue_: adn they dont break?
05:01 PM skz81: <Emil> polprog: but what if you only needed METH >> Walter White is comming ! Fear the walking deads :)
05:02 PM polprog: rue_: they seem to be all good.. didnt try powering it up :D
05:15 PM rue_: i mean crack
05:58 PM polprog: they dont seem to crack
06:00 PM polprog: sometimes theres plastic residue on the chip (you cant scratch that off - its like tenths of millimeters) and that probably means the plastic there didnt get hot enough to decompose/desolidify/whatever
06:10 PM polprog: okay.... revolution irc is getting really fucky when the date changes.... i cant see what i typed just a while ago
06:10 PM polprog: i only see some garbage from like last week
06:10 PM polprog: damn.. such a good client
06:10 PM polprog: ill just go back to ssh...
06:19 PM polprog: aaand were back
06:19 PM polprog: good old irssi