#avr Logs

Jul 21 2017

#avr Calendar

12:18 AM day_ is now known as daey
12:56 AM Thrashbarg_ is now known as Thrashbarg
01:37 AM aaa_: Hi am getting verification error, first mismatch at byte 0x0000 0xff != 0x1d avrdude.exe: verification error; content mismatch what may be the problem
01:38 AM aaa_: am using usbasp programmer.....it is controller issue or programmer issue
01:54 AM Haohmaru: aaa_, usbasp never managed to "verify" for me
01:55 AM Haohmaru: yet, when i dump the flash contents to a file - it's all there, and it matches the original hex
01:56 AM Haohmaru: aaa_, dump the contents to a file
01:57 AM aaa_: I didnt disable verify so it is doing that but now its not even programming :(
01:57 AM Haohmaru: do note that while your original hex file might be small, the dumped hex will most likely contain the whole flash area, thus it'll be bigger
01:58 AM Haohmaru: aaa_, if you programmed some fuse incorrectly - you might have bricked the chip
01:58 AM Haohmaru: otherwise usbasp is usually unreliable
01:58 AM Haohmaru: so it may be that too
01:59 AM aaa_: Fuse bits are wrongly read everytime ,when i give one fuse value it gives other value when i read
02:00 AM Haohmaru: that's also how it went for me with usbasp
02:00 AM aaa_: so problem is with the controller or programmer
02:00 AM Haohmaru: fuses never read back properly, yet they were getting programmed, most of the time
02:00 AM Haohmaru: well, there are piles of atmel microcontrollers, they generally "work" fine
02:01 AM aaa_: so better to change programmer or controller
02:01 AM Haohmaru: on the other hand, usbasp is a lousy programmer, and the fact that yours is probably one of the many lousy quality chinese clones makes it slightly worse even
02:02 AM aaa_: yeah its local made one
02:02 AM Haohmaru: stick around in this channel, you'll see the repeating pattern of people having issues with usbasp
02:02 AM Haohmaru: me included ;P~
02:03 AM Haohmaru: everybody who had problems with usbasp and threw it away - raise your hands
02:03 AM aaa_: ok let me try with other usbasp then
02:04 AM Haohmaru: if you happen to have a parallel port on your computer - you can easily make a very cheap programmer via just a DB25 connector, some cables and optionally a few resistors
02:04 AM Haohmaru: that's what i did, and it just works
02:05 AM Haohmaru: it works for the SPI-based chips (most atmegas)
02:06 AM Haohmaru: so sadly i can't use it for xmegas, which use PDI
02:06 AM Haohmaru: :~(
02:06 AM Haohmaru: but there's avrisp2 clone for that
02:10 AM Haohmaru: a measurement tool which fools you is much worse than a non-working one IMO
02:11 AM Haohmaru: i never ever expected that the reason for verification to fail to be because the programmer doesn't read back properly
02:12 AM Haohmaru: like you don't expect your ruler to be incorrectly scaled, yet there are such rulers on the market
02:18 AM aaa_: <Haohmaru> yes you r right
02:33 AM Emil: Haohmaru: usbasp is fine
02:35 AM * Haohmaru corrupts Emil
02:36 AM Haohmaru: Emil, tell me why mine doesn't work
02:36 AM Haohmaru: or the one at the office
03:03 AM Emil: Have you updated the firmware?
03:03 AM Emil: Are you using it on Winshit?
03:03 AM Emil: Do you use a port that's fine with vksb
03:03 AM Emil: vusb*
03:09 AM Haohmaru: 1) yes, 2) both windows and linux, 3) wat?
03:10 AM Haohmaru: do i also have to stand on one leg and face south while using it?
03:10 AM Haohmaru: what else
04:55 AM Snert: sacrificing a virgin is always a plus
05:31 AM Emil: Haohmaru: lol
05:31 AM Emil: Haohmaru: with that comment I have no doubt the problem is pebkac ;)
05:32 AM Emil: Haohmaru: not all ports support vusb properly
05:32 AM Emil: you might need to change the port you are using
05:32 AM Emil: on Windows you need to install the driver yourself, Windows doesn't do it for oyu
05:32 AM Emil: on Linux you might need to play with permissions or udev rules (usually not)
05:33 AM Emil: If these don't work you have a broken product or you don't know how to use avrdude
05:45 AM Haohmaru: Emil, do i look so stupid?
05:45 AM Emil: Haohmaru: your comment was
05:45 AM Emil: ;)
05:46 AM Haohmaru: you talk as if i expect windows xp to magically do something for me
05:46 AM Haohmaru: of course i installed the driver myself
05:46 AM Haohmaru: it worked.. it was flashing
05:46 AM Haohmaru: it was reading too
05:47 AM Haohmaru: it just wasn't verifying after flash
05:47 AM Haohmaru: and then, one day, it stopped working
05:47 AM Haohmaru: of course i tried all the USB ports i have
05:47 AM Haohmaru: i certainly had permission on the linux computer, but that wasn't the problem
05:48 AM Emil: wait
05:48 AM Emil: you are using xp
05:48 AM Haohmaru: i built the stk200 programmer and flashed it with the newest firmware, the atmega in that usbasp works, and still works today probably
05:49 AM Emil: I have lost all faith in you
05:49 AM Haohmaru: shadap
05:49 AM Emil: Burn the luddite
05:49 AM Haohmaru: what do YOU use? win10? huhuhu
05:49 AM Emil: I'll have you know I use Debian
05:49 AM Haohmaru: so do i
05:49 AM Emil: But the fact that you are using Winshit XP
05:50 AM Emil: which is comparable to sticking to like Debian 5 because lol
05:50 AM Emil: All faith
05:50 AM Emil: into the trash it went :D
05:50 AM Emil: Jartza:
05:50 AM Emil: what amplifier did you order for it?
05:50 AM Haohmaru: the stupid usbasp suddenly looses its sh*t and the OS goes crazy, it thinks the usb device vanishes, and then reappers, or appears as an unrecognized USB device or so
05:51 AM Emil: Sounds like a broken device
05:51 AM Haohmaru: so you plug it in, 2 out of 10 times it gets properly recognized
05:51 AM Haohmaru: you go on to flash a hex.. it starts.. and somewhere a bunch of bytes later - it stops, and dies
05:52 AM Haohmaru: yeah, so what should i have done? purchase a whole batch of usbasps and hope that at least one of them is good?
05:52 AM Emil: Purchase a new one
05:52 AM Emil: and stop whining :D
05:53 AM Emil: or make your own
05:53 AM Haohmaru: i made my own
05:53 AM Haohmaru: but i guess you weren't here a bunch of years ago when there were people having usbasp issues almost everyday on #avr
05:53 AM Emil: How the fuck are these thermocoupleamplifiers so god dan expensive
05:53 AM Haohmaru: or you don't remember
05:54 AM Emil: Probably because they used the outdated software
05:54 AM Emil: firmware
05:54 AM Haohmaru: you know what changed when i flashed the newest firmware?
05:54 AM Haohmaru: nuffin'
05:54 AM Emil: All the usbasps I have used (like 10 different) have worked just fine for the past 3 years
05:55 AM Haohmaru: mine also worked a few months
05:55 AM Emil: And ten different because I keep misplacing my own and borrow one from the lab share
05:55 AM Haohmaru: maybe yours are not as chinese as mine
05:56 AM Emil: They are so Chinese I can mine chinesium off of them
05:56 AM Emil: You know what's annoying
05:57 AM Emil: when Mouser lists on order when you select stocked
05:58 AM Haohmaru: between the time you saw "stocked" and ordered your stuff - someone else must have clicked
06:00 AM Haohmaru: usb data is full-duplex, right?
06:02 AM Emil: What the actual fuck
06:02 AM Emil: who keeps buying all the fucking avrs
06:02 AM Emil: Haohmaru: no
06:02 AM Emil: Haohmaru: it's half duplex
06:04 AM LeoNerd: A USB connection is a half-duplex differential signalling line
06:04 AM Emil: WHO THE FUCK BUYS ALL THE AVRS
06:04 AM Emil: WHAT IS THIS A FUCKING CONSPIRACY
06:05 AM LeoNerd: Emil: Having trouble getting those 328PBs still?
06:05 AM Haohmaru: the avr-eating-monster?
06:05 AM Emil: LeoNerd: someone just ordered over 600 of them :D
06:05 AM Emil: LeoNerd: Mouser had a nice stock of them and then it vanished
06:05 AM Emil: If I just ordered on Monday like I was planning to T.T
06:06 AM LeoNerd: Ah. Yeah I've had times like that
06:08 AM Emil: This is a fucking conspiracy
06:08 AM Emil: I fucking swear it
06:08 AM Haohmaru: sh*t happens(TM)
06:13 AM Lambda_Aurigae: Haohmaru, usbasp uses v-usb which is software implemented usb hack which may or may not work reliably(or at all) on any given usb port. There are several different hardware implementation styles for v-usb which may or may not work on a given usb port. usbasp relies on v-usb. older versions fo the usbasp software were really,,,bad.
06:14 AM Haohmaru: tell that to mr. Emil
06:14 AM Lambda_Aurigae: my stk200 clone(parallel port programmer) had just worked from day one...same one I first built in 2002 or so is still working today.
06:14 AM Haohmaru: or imma slap him with a broken usbasp
06:14 AM Lambda_Aurigae: generally, if you are able to update to the latest firmware they are ok.
06:14 AM Emil: Haohmaru: it's the same thing I told you
06:14 AM Lambda_Aurigae: I wouldn't rely on one.
06:15 AM Haohmaru: yes, i made mine iirc after your recommendation, mine also works, i even made another one for at work
06:15 AM Lambda_Aurigae: some people have good luck with them.
06:15 AM Haohmaru: they should buy a lottery ticket
06:15 AM Lambda_Aurigae: I have one here that I test on various usb ports and have about a 30%-ish unreliability rate.
06:16 AM Lambda_Aurigae: and there's no rhyme or reason to them....on this particular laptop it works on one usb port and not on the other two...but if I hook it up through a cheap usb2.0 hub it works on any of them.
06:17 AM Emil: Sigh
06:17 AM Lambda_Aurigae: if I use my expensive usb3.0 hub it may or may not, seeming at random, go active.
06:17 AM Emil: Should I just move to arm
06:17 AM LeoNerd: They are generally pretty terrible
06:17 AM Haohmaru: Emil, if your car was like that - you'd walk
06:17 AM Emil: but they have so shit sdk
06:17 AM Haohmaru: or ride a donkey
06:17 AM LeoNerd: Get a proper programmer. E.g. Pololu makes one
06:17 AM Emil: Make your own programmer
06:18 AM Emil: Mama I don't want to move to arms but I want
06:18 AM Haohmaru: that's what we did, we ride the stk200 donkey
06:18 AM Lambda_Aurigae: Emil, all depends on what you are doing as to what platform to use.
06:18 AM Lambda_Aurigae: I moved to pic32 myself for most of the heavy lifting stuff
06:18 AM Lambda_Aurigae: not as powerful as arm but moreso than atmega
06:18 AM Emil: PIC has no gcc am I correct?
06:19 AM Emil: And the tools are shite
06:19 AM Lambda_Aurigae: pic32 does.
06:19 AM Lambda_Aurigae: the compiler is gcc
06:19 AM Emil: Interestin
06:19 AM Lambda_Aurigae: it's a mips32 processor with pic peripherals.
06:19 AM LeoNerd: PIC32s also have the IO crossbar switch :
06:19 AM LeoNerd: *ahem* no AVR does yet :(
06:19 AM Lambda_Aurigae: the version you get from microchip is limited though.
06:19 AM Emil: That's nice
06:19 AM Lambda_Aurigae: unless you pay for it.
06:19 AM Lambda_Aurigae: but
06:19 AM Haohmaru: LeoNerd, what's that?
06:19 AM Emil: I'm not about to become a PIC shill
06:19 AM Lambda_Aurigae: you can get the source, fix the limitation, and compile it yourself.
06:19 AM LeoNerd: Haohmaru: A huge digital crossbar between all the peripherals and the actual IO pins
06:20 AM Lambda_Aurigae: Haohmaru, move peripherals around on different i/o pins
06:20 AM LeoNerd: So none of that silly peripheral-clash that you get on AVRs
06:20 AM Haohmaru: ah
06:20 AM Lambda_Aurigae: nice if you screw up your board and need to move the spi over somewhere else.
06:20 AM LeoNerd: Like the /really stupid shit/ on 32U4
06:21 AM Lambda_Aurigae: or, just want to simplify routing for your implementation...move the needed peripheral over to the pins closest to wherever the traces get routed.
06:21 AM LeoNerd: That can be useful, but that's just the cherry on the cake
06:21 AM Haohmaru: that would be nice for many-legged chips
06:21 AM LeoNerd: The main reason is to stop having to mux functions together on the same pin when you need both
06:22 AM LeoNerd: E.g. the 32U4 has four INT lines. Two of them shared with the I²C module (so, useless if you want to use any I²C chips with interrupt pins.. i.e. most of them), and the other two shared with the USART
06:22 AM LeoNerd: ... so, again, pretty useless
06:22 AM Haohmaru: buy two atmegas then
06:23 AM Emil: Haohmaru: lol
06:23 AM Haohmaru: ;]
06:23 AM LeoNerd: Hah
06:23 AM Emil: LeoNerd: thatä's super shitty
06:23 AM Haohmaru: on the xmega, each port has two usarts and one spi/i2c
06:24 AM Haohmaru: if you use the spi/i2c - you loose one of the usarts
06:24 AM Lambda_Aurigae: Haohmaru, you've no idea how many times I've used multiple smaller chips for specific functionality when a single larger would have been better if I could have moved things around to split stuff off.
06:24 AM Haohmaru: surely
06:24 AM Lambda_Aurigae: I still love avr....it's the easiest to use microcontroller I've ever found.
06:25 AM Lambda_Aurigae: both hardware and software wise.
06:25 AM Haohmaru: hell yeah
06:25 AM Haohmaru: xmega ftw
06:25 AM LeoNerd: Haohmaru: Yah I've seen. It's a shame nobody really makes nice Xmega breakout boards though :/
06:25 AM Lambda_Aurigae: which is why it's my first go to for teaching kids microcontrollers, electronics, and robotics.
06:25 AM * LeoNerd become quite a fan of the ATmega328PB though
06:25 AM Lambda_Aurigae: atmega1284p here.
06:26 AM Haohmaru: atmega2561 on my home project
06:26 AM Haohmaru: atxmega128a3u at work ;P~
06:27 AM Haohmaru: as well as atxmega32a4u
06:27 AM LeoNerd: 8K of RAM? Wow, positively generous by Atmel standards
06:27 AM Haohmaru: 8K RAM? you'll never see this on a pic18
06:27 AM Haohmaru: not even 4K
06:28 AM LeoNerd: Hah. A slight typo on the web page for it:
06:28 AM LeoNerd: RAM Bytes
06:28 AM LeoNerd: 8
06:28 AM LeoNerd: ^-- I think they mean KiBytes, .. or 8192
06:28 AM Haohmaru: yiz, it's 8KB
06:28 AM Haohmaru: quite nice
06:28 AM Lambda_Aurigae: atmega1284p,,,16K ram!
06:29 AM Haohmaru: the 1284p has 16KB
06:29 AM Lambda_Aurigae: pic32mx270f256b, 64K ram....256k flash...and ability to run code from flash or ram.
06:29 AM LeoNerd: Shocking
06:29 AM Lambda_Aurigae: in a 28 pin dip
06:29 AM Lambda_Aurigae: with hardware usb
06:29 AM Haohmaru: i bet when microchip fans saw that - their eyes melted
06:29 AM Emil: Lambda_Aurigae: stop stop stop it sounds too good
06:29 AM LeoNerd: Yeah but it has too many digits in its name :P
06:29 AM LeoNerd: It's worse even than the STM32s
06:29 AM Lambda_Aurigae: Emil, hehe....50MHz/83dmips...pipelined processor.
06:30 AM Lambda_Aurigae: Haohmaru, I have a couple dozen of them here in various thingies.
06:30 AM Emil: Lambda_Aurigae: to use PICs
06:30 AM Haohmaru: i got just one at home, in a drum machine
06:30 AM Emil: Lambda_Aurigae: can I just apt-get?
06:30 AM Haohmaru: but i haven't coded for it
06:31 AM Emil: Is the interface much different from AVRs?
06:31 AM Emil: I wonder if I should just become a PIC shill
06:31 AM Haohmaru: i almost bet you have to obtain the compiler from microchip
06:32 AM Emil: Lambda_Aurigae: https://emil.fi/avr
06:32 AM Emil: Lambda_Aurigae: do you have something like that for PICs?
06:32 AM Emil: PIC32s*
06:33 AM Lambda_Aurigae: like that page? simple how to use? not really.
06:34 AM Emil: Lambda_Aurigae: what do I need to do to get started with PICs?
06:34 AM Lambda_Aurigae: pic32 compiler is available from microchip.
06:34 AM Lambda_Aurigae: Emil, a programmer, compiler, and, if you like, ide...mplabX and xc32 compiler....for programmer I bought a pickit3
06:34 AM Lambda_Aurigae: not super cheap...I got mine on sale for 25 dollars.
06:34 AM Emil: That's expensive as fuuuuuuc
06:35 AM Lambda_Aurigae: no super simple programmers like for avr unfortunately.
06:35 AM Haohmaru: pickit3
06:35 AM Emil: But you can burn a bootloader, right?
06:35 AM * Haohmaru vomits
06:35 AM Lambda_Aurigae: I have 4 other pic programmers, for other sets of pics.
06:35 AM Lambda_Aurigae: yes, you can burn a bootloader.
06:35 AM Lambda_Aurigae: I have a usb bootloader on many of the chips here.
06:35 AM Lambda_Aurigae: working on an sd card bootloader too.
06:36 AM Lambda_Aurigae: Haohmaru, it works...not cheap, not super good, but it works for pretty much every pic out there.
06:36 AM Emil: If I can't install it from the repos
06:36 AM Lambda_Aurigae: microchip used something like 7 differen programming protocols over the years.
06:36 AM Emil: it's not worth having
06:36 AM Lambda_Aurigae: no, you cant install it from repos...
06:37 AM Lambda_Aurigae: I have compiled the xc32 from source twice now...pain in the arse.
06:37 AM Haohmaru: Lambda_Aurigae, sure.. it's just so annoying to use
06:37 AM Lambda_Aurigae: from what I see you can use sdcc too.
06:37 AM Lambda_Aurigae: I have sdcc for it but never used it.
06:37 AM Haohmaru: it's solid, the one at work has survived all kinds of abuse
06:37 AM Lambda_Aurigae: or gcc for mips...but you have to add some pic32 stuff to it for to make it useful.
06:37 AM Haohmaru: but the software side of it just sux beyond this dimension
06:38 AM Haohmaru: i use sdcc
06:38 AM Lambda_Aurigae: there are multiple paths.
06:38 AM Lambda_Aurigae: unfortunately sdcc is not real,,,,mature...
06:38 AM Haohmaru: for pic18.. pic12 and pic14 are more problematic with sdcc
06:38 AM Lambda_Aurigae: been around a while but not real actively developed.
06:38 AM Emil: I abandoned ship
06:38 AM Emil: No PIC for me
06:38 AM Lambda_Aurigae: hehe.
06:38 AM Emil: A moment of darkness
06:38 AM Emil: I almost slipped
06:39 AM Lambda_Aurigae: I slipped and fell about 3 years ago.
06:39 AM Emil: But it felt so good listening to those specs
06:39 AM Haohmaru: i absolutely hate my pic experience
06:39 AM Haohmaru: wish i never knew
06:39 AM Haohmaru: :~(
06:39 AM Lambda_Aurigae: Haohmaru, for 8bit and 16bit pic, I agree...it sucks.
06:39 AM * Haohmaru hugs the xmega
06:39 AM Lambda_Aurigae: for 32bit pic, I've had good luck.
06:40 AM Lambda_Aurigae: building xc32 from sources took me almost 2 weeks the first time.
06:40 AM Lambda_Aurigae: has lots of dependencies added into the base gcc.
06:40 AM Emil: Wait
06:40 AM Emil: did I just win
06:40 AM Lambda_Aurigae: probably.
06:40 AM Lambda_Aurigae: just accept it and keep going.
06:40 AM Lambda_Aurigae: [:
06:45 AM Emil: YESH
06:46 AM Emil: I FOUND A FUCKING SOURCE
06:47 AM Haohmaru: tme?
06:47 AM Emil: Nah
06:48 AM Emil: I'll link it soon
06:58 AM Lambda_Aurigae: source for what?
06:58 AM Tom_L: the Nile
06:59 AM Lambda_Aurigae: oh, just ask the Queen of De-Nile
06:59 AM Tom_L: nobody really knows
07:03 AM Emil: Lambda_Aurigae: for Atmega328PBs
07:14 AM Lambda_Aurigae: what do you call it when a redhead goes crazy and kills a bunch of people?
07:14 AM Lambda_Aurigae: Ginger Snaps!
07:20 AM Haohmaru: america?
07:21 AM Lambda_Aurigae: "Where I growed up in the deep south we just shot cans. Mexicans and Africans and Puerto Ricans....."
07:25 AM Emil: Like so
07:25 AM Emil: MicroShit Direct
07:25 AM Lambda_Aurigae: yeah...microchip direct usually has lots of stuff.
07:26 AM Lambda_Aurigae: When going to the mall, always hold your wife's hand. It might look romantic but it's really economic. If you let her go she will start shopping.
07:27 AM Haohmaru: and then BOOM - instaBroke
07:27 AM Emil: Per piece price went up to 1.65eur
07:27 AM Emil: But that's still an okay price
07:28 AM Lambda_Aurigae: I need to see what they will do with samples for avr these days.
07:28 AM Lambda_Aurigae: microchip used to be awesome for samples.
07:28 AM Lambda_Aurigae: haven't ordered any in over a year though.
07:29 AM Haohmaru: they are too busy buying atmel ;P~
07:29 AM Lambda_Aurigae: the buyout is done.
07:29 AM Lambda_Aurigae: they own, lock, stock, and barrel
07:29 AM Haohmaru: i know.. now they are too busy planning how to ruin atmel
07:29 AM Lambda_Aurigae: that was a done deal a long time ago.
07:30 AM _ami_: Lambda_Aurigae: i think you need to hv univ. or company email id to facilate samples from microchip!
07:30 AM Lambda_Aurigae: engineering is dumping pic and avr chips in a big blender and mixing them up.
07:30 AM Lambda_Aurigae: _ami_, never did before....
07:30 AM Lambda_Aurigae: but, I have company email easily enough.
07:30 AM Lambda_Aurigae: rmoore@premier-iowa.com is what I've used for them in the past.
07:31 AM _ami_: i hv tried registering my company email id but i did not get registeration email yet. :P
07:31 AM Emil: hv?
07:31 AM Emil: High volume?
07:31 AM Lambda_Aurigae: hv/have
07:31 AM Haohmaru: high viscosity
07:31 AM Lambda_Aurigae: I've been learning to read idiot-shorthand.
07:31 AM Emil: why the heck would you shorten it like that :D
07:31 AM _ami_: i did have to write to webmaster email id to actually cancel my pending subscription.
07:31 AM Emil: Lambda_Aurigae: don't
07:31 AM Emil: Lambda_Aurigae: you'll fall yourself!"
07:32 AM _ami_: hv is have! :)
07:32 AM Lambda_Aurigae: Emil, had to drop my IQ by like 80 points.
07:32 AM Lambda_Aurigae: _ami_, no....hv is hv...have is have...the two are NOT the same word and do NOT have the same meaning.
07:32 AM Haohmaru: now you can sp33k 1337
07:32 AM Emil: hv is high voltage
07:32 AM Lambda_Aurigae: unless you are still linked to your AOL account and are paying by the byte for internet access.
07:32 AM _ami_: :)
07:32 AM _ami_: ok
07:33 AM Lambda_Aurigae: and on that note. I'm off to w*rk.
07:33 AM Haohmaru: yes, censor that bad word
07:33 AM _ami_: its friday evening here :)
07:33 AM _ami_: so that w*rk thing is already passed ;)
07:34 AM Haohmaru: are you in australia or somethin?
07:34 AM Emil: Haohmaru: india
07:34 AM Emil: iirc
07:34 AM _ami_: S. Korea now actually! :)
07:34 AM Emil: Nice
07:35 AM Emil: Try to get on Solfa
07:35 AM Emil: and spread the word of our god and saviour AVR
07:35 AM _ami_: lol :)
07:37 AM _ami_: does adafuit nice enough to accept improvements on their libraries?
07:37 AM _ami_: i think all of adafruit libraries on github so i guess they support open source thing more than anyone i know.
07:38 AM _ami_: https://github.com/adafruit/Adafruit_nRF8001/pull/23/commits/43674960f25b404474ca4ee680901f18b664e128
10:01 AM day_ is now known as daey
10:50 AM Tom_L: 4 0 z
10:50 AM Tom_L: 7
11:50 AM JanC is now known as Guest32366
12:47 PM day_ is now known as daey
01:06 PM CORDIC: Emil: What do You think: http://wiki.pinguino.cc/index.php/Cheap_DIY_PIC32_Programmer https://www.olimex.com/dev/pic32-pinguino-micro.html ?
01:52 PM Emil: 3
01:53 PM Emil: CORDIC: that's pretty nice
01:53 PM Emil: It's beyond comical, though, using an avr as a pic programmer :D
01:56 PM dan3wik is now known as dan2wik
02:02 PM Lambda_Aurigae: aaand, off w*rk for the day.
02:02 PM Lambda_Aurigae: Emil, I use a pic as an avr programmer sometimes too...
02:02 PM Lambda_Aurigae: used a pic16f1454...hardware usb, can do usb without a crystal.
02:03 PM Lambda_Aurigae: kinda like the attiny85 does with v-usb, syncing to the usb clock.
02:17 PM Emil: <3
02:18 PM LeoNerd: Emil: Funny story...
02:18 PM LeoNerd: You know how you were complaining about 328PBs being out of stock everywhere, and I bought a load? Turns out there *is* a world shortage
02:18 PM Emil: LeoNerd: I'm listening, operator
02:18 PM LeoNerd: I just got an email from someone asking to buy some stock off me ;)
02:18 PM Emil: :DDD
02:18 PM Emil: LeoNerd: niiceee
02:18 PM Emil: LeoNerd: I should probably make another purchase to Microshit direct :D
02:19 PM Emil: Everyone is panicking because an avr chip is not available
02:19 PM Emil: and they are buying all the stock :D
02:19 PM LeoNerd: Hah maybe
02:19 PM LeoNerd: Well anyway I think I have 15 of them here
02:19 PM LeoNerd: So.. mm.. I should consider my prices
02:19 PM Emil: 26 on my way
02:19 PM Emil: LeoNerd: lol
02:19 PM Emil: LeoNerd: what else did you hear from that guy?
02:19 PM LeoNerd: If I'd known I'd have bought some more and opened a shop ;)
02:20 PM Emil: ikr
02:20 PM Emil: Oh tqfp is out
02:21 PM LeoNerd: Both seem to be out, now. At least, Mouser.co.uk has totally none of anything any more
02:21 PM Emil: Yeah I was about to make my order
02:21 PM Emil: and BOOM
02:21 PM Emil: https://www.microchipdirect.com/ProductSearch.aspx?Keywords=ATMEGA328PB-MN
02:21 PM Emil: if you want to stock up
02:22 PM Emil: LeoNerd: did you hear anything else from the guy who wanted to buy your stock?
02:22 PM LeoNerd: Not a lot
02:22 PM LeoNerd: He only wants one or two, seems to be a hobbiest person I suspect
02:23 PM Emil: Aren't we all
02:23 PM Emil: Mostly
02:23 PM Emil: If I was a real company, this kind of "lol we have no stock" would be unacceptable and ARMs are better in every single way (expect development)
02:24 PM LeoNerd: Eh.. I'm a sortof-hobbiest who happens to make a bit of a profit on selling things I made
02:24 PM LeoNerd: Does that make me a professional? I don't know
02:24 PM Emil: No
02:24 PM Emil: You are still a hobbyist
03:47 PM Jartza: Emil: max31855
04:25 PM Tom_L: -
04:30 PM Jartza: +
05:00 PM day_ is now known as daey
05:18 PM xentrac: Emil: "lol we have no stock" is the reason distributors exist in the first place; it's a huge problem since forever
05:19 PM xentrac: ARMs aren't immune
05:30 PM NoHitWonder^: ARMs aren't immune indeed
05:30 PM day_ is now known as daey
05:30 PM Emil: Jartza: so god damn expensive on eBay wtf :D
05:31 PM Emil: The chip's only like 3€ in small quantities from mouser
05:39 PM HelloShitty: Hello
05:39 PM HelloShitty: I need some help with some avr-gcc commands
05:40 PM AndrevS: hello again
05:40 PM HelloShitty: I've been away for a while and forgot some commands
05:40 PM HelloShitty: heheh AndrevS
05:40 PM HelloShitty: I want to compile a .c file
05:40 PM HelloShitty: to AtMega328PU
05:41 PM HelloShitty: I was trying to use avr-gcc-4.9.2 -mcpu=atmega328p
05:41 PM HelloShitty: but it says that it cannot recognize -mcpu=atmega328p option
05:42 PM NoHitWonder^: its a new chip i think
05:42 PM AndrevS: It's been a while since I've compiled for atmel, been using arm mcu's lately. Let' see ... how did it work again
05:42 PM NoHitWonder^: Emil can help you
05:42 PM AndrevS: 328p ain't that new.... the 328pb is new-ish
05:42 PM HelloShitty: I used to have a file with the 3 commands I needed
05:43 PM HelloShitty: but I deleted that file
05:43 PM HelloShitty: now I'm struggling to find the correct commands
05:43 PM HelloShitty: I have used this site in the past to start compiling my small testing programs
05:43 PM HelloShitty: https://cse537-2011.blogspot.com.br/2011/01/compiling-and-burning-code-for-avr.html
05:44 PM HelloShitty: avr-gcc -mmcpu=atmega328p leds.c -o leds.out
05:45 PM HelloShitty: but this is not working anymore, at least with the version of avr-gcc I have
05:46 PM AndrevS: it's -mmcu I believe
05:46 PM HelloShitty: hum, ok, let me try
05:46 PM HelloShitty: yeah
05:47 PM HelloShitty: Now I need to solve other problems
05:49 PM AndrevS: good luck
06:08 PM HelloShitty: Emil:
06:22 PM day_ is now known as daey
06:32 PM Emil: Hmm?
06:32 PM Emil: HelloShitty:
06:33 PM Emil: https://emil.fi/avr
06:33 PM Emil: the correct one is -mmcu
06:34 PM Emil: But I see you figured it out
06:34 PM Emil: But I'm here if you need moar help
07:49 PM day_ is now known as daey
08:46 PM day is now known as daey
09:58 PM day is now known as daey
11:17 PM thehungus: apologies if off topic, is there a chan for avr-gcc stuff? am getting "cannot find crtatxmega128a1u.o" and "cannot find -latxmega128a1u" when linking an existing project with a new install of avr-gcc 5.4.0. project builds fine with an old copy of avr-gcc 4.7.2 for windoze I have knocking around...
11:17 PM Tom_itx: not ot but you may have to wait for an answer
11:18 PM thehungus: have figured out that crtatxmega128a1u.o should probably be crtx128a1u.o (which does exist) but have never heard of a libatxmega128a1u.a or similar... almost goes without saying that I haven't explicitly linked against either of these in my Makefile, can only assume the linker script or something has hooked them in
11:18 PM thehungus: Tom_itx: thanks, will wait patiently / check back later :)
11:46 PM day is now known as daey