#avr Logs

Oct 29 2017

#avr Calendar

01:01 AM day__ is now known as daey
07:14 AM Emil: http://signalsandsorcery.com/
07:19 AM Thrashbarg: 'music'
08:05 AM splud: I'm running into trouble trying to reflash an ATtiny13A.
08:07 AM _ami_: splud: what are the erros are you getting while flashing?
08:07 AM _ami_: and which programmer are you using?
08:07 AM cehteh: and fucked up the fuses?
08:07 AM splud: uC is an SOIC8 in a spring carrier. Functions with existing flash in circuit (well, in-dev code, but uC flashes a status LED on startup, and that's happening), so the IC isn't completely toast.
08:08 AM splud: lemme do the info dump, then I'll respond to questions.
08:09 AM splud: Dev platform is linux. Have arduino IDE 1.8.4, though I'm compiling this from shell with makefile.
08:10 AM splud: Three programmers: Arduino-as-ISP (flashed with the code in the referenced IDE) running on an UNO. Another UNO with an HV fuse resetter, and a chinese usbasp device.
08:11 AM splud: I've fabbed a number of devices with tinys in the past, complete with ICSP headers. This isn't alien stuff.
08:12 AM splud: I know the USBASP works - I can read and write flash/eeprom/fuse bits on both of the uno devices (straight off the ICSP headers).
08:12 AM splud: In an ICSP carrier I fabbed, I can read fuse bits and (blank) flash/eeprom from a fresh ATTiny85 IC.
08:14 AM splud: Insert SOIC8-DIP8 spring carrier with Tiny13A in it (yes, pin1 oriented correctly), and the usbasp won't communicate with the IC. Have tried two Tiny13A ics, and yea, using the 't13' mcu type parameter.
08:15 AM splud: Same carrier and ICSP base socketed into a breadboard with LED, switch, power, flashes the LED, so the spring carrier isn't defective.
08:16 AM splud: Same spring carrier in the HV fuse resetter will report the fuse bits fine,
08:16 AM splud: Not using external clock. Have CLKDIV8 set (standard fuse bit value), reset is enabled.
08:16 AM cehteh: another tiny works?
08:17 AM cehteh: quite rare, but it may be defective somehow,
08:17 AM splud: Not programming the ATTiny85 for this project, but the usbasp will successfully communicate with it.
08:18 AM splud: I've used _two_ different ATTiny13A devices. Shuffling some things around here to get current outputs from commands.
08:19 AM splud: Oh, and the Tiny13As came from different sources - I specifically used ones from different batches because I questioned if it was a source issue.
08:22 AM splud: If I try to read using avrdude and avrisp @ 19200, it comms with the avrisp (Arduino-as-ISP) but complains about device signature 0xffffff
08:24 AM cehteh: sometimes cheap sources avrs are preprogrammed, with bad fuses
08:25 AM splud: pop the ZIF open, swap out the spring carrier with the tiny13 and pop in a tiny85, rerun the read command with appropriate mcu type, and it shows default fuses of 62 df ff (lhe)
08:25 AM cehteh: nd on another note: bad usb cable can also cause issues, but looks not the case here
08:25 AM splud: current output from hv fuse resetter coming up...
08:25 AM cehteh: if other tiny13 work, then just throw the non working one away
08:26 AM splud: You didn't pick up that I've already tried two from different sources?
08:26 AM splud: I'm not interested in burning through a bunch.
08:28 AM cehteh: there can be only few cases which prevent flashing: bad cabling (usb and isp), bad fuses, faulty chip, program isnt 'suitable' (but then you should comminicate at least)
08:30 AM cehteh: dunno what your fuse resetter does, just double check if it does the right thing, and some fuses are latched, you need to powercycle to see the effects
08:31 AM cehteh: after all i wont waste too much effort on a single tiny13, if others work, if the whole batch looks broken then i'd investigate further
08:32 AM cehteh: so tried another one from the same batch?
08:48 AM splud: Sorry, was kind of hoping to find some suggestions as to what might cause inability to comm with USBASP/AVRISP, yet be able to view/reset fuse I'm not looking to fry more ICs just to see that I can.
08:50 AM cehteh: try another tiny13 from the same batch wiithout trying to reset the fuse
08:51 AM cehteh: just communication and querying status should work when the fuses are at default
08:52 AM cehteh: sometimes avrdudes -B option to slow things down works with bad fuse settings too
08:52 AM cehteh: as long you dont try to program fuses you wont fuck it up
08:53 AM Ameisen: cehteh - switced my work over to my printer firmware for a bit
08:53 AM Ameisen: since I'd like to be able to use my printer
08:53 AM cehteh: :)
08:53 AM Ameisen: hoping to have a somewhat stable build today
08:53 AM cehteh: too bad, clang for avr would be definately nice
08:54 AM Ameisen: I mean, it's there now, it just sucks
08:54 AM Ameisen: :P
08:54 AM Ameisen: all of my work so far is on github anywho
08:54 AM cehteh: yeah i mean it should be on par or better than gcc to be useable
08:55 AM Ameisen: In a few areas it's better than GCC, in others it is still drastically worse
08:55 AM cehteh: yes
08:55 AM cehteh: drastically is bad, slightly worse may be ok, you get the llvm benefits at leasts
08:55 AM Ameisen: I wish writing lowering code wasn't so tedious
08:56 AM cehteh: i dont want to do it :D
08:56 AM Ameisen: https://github.com/ameisen/avr-llvm
09:00 AM Ameisen: shouldn't be too much work to stabilize the firmware anyways
09:00 AM Ameisen: the old thermal code doesn't play nicely with the new thermal code, and keeps ending up thinking that it's overheating
09:00 AM Ameisen: It's not, though.
10:07 AM day__ is now known as daey
10:28 AM day__ is now known as daey
12:36 PM polprog: I rearranged my desk: https://puu.sh/ya0al/cfb5a27e83.jpg
12:37 PM Ameisen: your desk is different than mine
12:37 PM Ameisen: mainly in that it has a laptop, fewer monitors
12:37 PM Ameisen: and no cat
12:37 PM polprog: i used to have space for two screens
12:38 PM polprog: they were on a pedestal so they fit over the old speakers (the speakers were the height of the amplifier)
12:38 PM polprog: i rearranged it mostly so i could fit a second screen but im still short of several inches
12:38 PM polprog: i have a 4:3 and 5:4 screen i could put in place of this 16:9
12:39 PM polprog: but thats not really an improvement
12:40 PM Ameisen: I have 2 1440p 27" screens
12:40 PM Ameisen: I'd rather have 3
12:40 PM Ameisen: I tend to run out of room when working on large code projects
12:40 PM polprog: wow
12:40 PM Ameisen: so many visual c++ windows
12:40 PM Ameisen: even working on Clang
12:40 PM polprog: ides can be pretty space filling
12:41 PM polprog: eclipse especially
12:41 PM polprog: often i plug an external monitor to the laptop (the 5:4 one, old dell) so i can place datasheet and analyzer traces there
12:44 PM polprog: Ameisen: https://puu.sh/ya0yO/95853cd2fe.jpg
12:44 PM Ameisen: Burmese?
12:44 PM polprog: yes
12:44 PM polprog: burmese
12:44 PM Ameisen: we have two siamese
12:45 PM Ameisen: Burmese, Siamese, and Himalayan are all closely related
12:45 PM Ameisen: and all act apparently the same
12:45 PM Ameisen: like tiny labradors
12:45 PM polprog: its a cat that behaves like a dog, likes people
12:46 PM Ameisen: yup
12:46 PM Ameisen: my wife calls them meowing labrador retrievers
12:57 PM Ameisen: if you see random letters get typed
12:57 PM Ameisen: it's one of my cats
12:58 PM Tom_L: likely story
12:58 PM Ameisen: ]\\\\\\\\\\\\\\\\\\\y766666666uuuuuuuuuuuuuuuuunbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
12:58 PM polprog: lol
12:58 PM Ameisen: he literally walked on my keyboard right after I said that
12:58 PM Ameisen: He was actually already on my mousepad beforehand, easy to predict
12:58 PM Ameisen: he wants attention
12:58 PM polprog: mine sleeps now
12:59 PM polprog: doesnt often walk on keyboard
12:59 PM Ameisen: he walks on keyboards if the keyboard is between himself and what he wants
01:11 PM polprog: if i had two screens i could put youtube on one and irc on another one
01:11 PM polprog: i used to have 3 screens
01:11 PM polprog: the third one was a crt but it was impractical
01:11 PM polprog: and it died after i tried to crank up the refresh rate
01:34 PM tpw_rules: Ameisen: he wants internet pornography?