Guide: how to flash ATtiny13a based drivers (NANJG, QLITE, etc.) with custom firmware

It’s still in the mail from China, but my guess is the same.

On my first clip the posts were too close as well. But that’s no problem, just bend 2 connectors down a little, and the colored ribbon connects just fine.

Edit: better picture

Added the cheap clip to the OP.

(Users should take note that it requires a small modification: bending the pins)

Yeah, I must admit… It was one hell of a mod :sunglasses:

Really appreciate you did this thread Hoop, may not have said it before, but Thanks!!

If I’ve never agreed with Tom on anything before I agree with him here. Thanks Hoop. Man of many talents. :slight_smile:

Just thought I’d check back in in case anyone runs into this issue. I ordered a V2 programmer. It solved my problems flashing the qlite.

Top: bad
Bottom: great

That's so weird - I was assuming it's a v1, but maybe it's something else. I just went thru two eves of hell with getting USBASP downloading to work. The computer would not even recognize the USBASP, and the red light would not go on. Turns out it was a couple of solder bridges on the driver caused all that. I went to the back of the computer trying other USB ports, tried moving USB cables around, even ordered a USB extender cable and a USB hub, thinking it was something there, even power reset the computer a couple times, updated the USPASP drivers, etc.. Stupid me, left the driver board plugged in. I even disconnected the wires from the USBASP, then it worked fine, both dongles I have. Isolated it to the driver, and found 2 bad solder shorts - fixed them, and no more problems...

Weird that shorts on the driver board cause the USBASP to not even be recognized by the computer.

Driver programming - fun but also potentially extremely frustrating!

If you connect the clip upside down on the Attiny you get the same result. Red light on the USBasp won’t come on. I guess its some kind of safety…

If any of its data pins are grounded, it can’t send or receive any data on those pins. So it can’t even identify the chip.

I guess I'm so paranoid about the computer's USB ports, I kind of suspected that first, wasted a lot of time as a result. Well, I'll have an extender cable and hub coming by tomorrow, so that should help. I still don't have a working computer down in my office/shop, so it's frustrating going upstrairs/dnstairs to do the programming.

You don’t even need a short on the driver. I just put my clip the wrong way around on the MCU and the light on the USBASP wouldn’t even come on. I was scared it was blown for a few seconds there.

Tried to install Atmel Studio 7 on my windows 7 pc and it fails to install because of a lack of a certain windows update; an update which is not applicable to my PC according to Microsoft.

I grabbed version 6 of Atmel Studio and that installed fine. I got it from software.informer. (direct dl link)

So I’ve finally decided that learning to program drivers is too fun to miss out & that I should learn to do so. The issue is that I’ve only been running linux on my main computer for years (linux mint) & have no desire to dual boot or use any other OS. I haven’t yet used Wine to run Windows programs in linux yet but I have no doubt that it will do just fine for that purpose. HOWEVER I do not know it will allow me to use/install any windows drivers that I may need.

So my question (or what I asking for help is) -> do any blf members here that flash/program their drivers do so exclusively with solely a linux computer? & if so what is your setup please? Thanks in advance!

Be well,
AZ

ToyKeeper does use Linux, or some derivative, for all her firmware development. I don't know any details though, but she has done a lot of the drivers and driver baselines we all use.

Thx for the 411 Tom. I won’t bug her with a PM yet. I’m sure she’s busy but when I get knee deep into this stuff -> no guarantees. :disappointed: She’ll probably ended up blocking my PM’s cause I end up pestering her so much…

I use linux for all the work I do with bistro, I could never get atmel studio to play nice with it. Toykeeper has a lot of scripts to take care of the compiling and flashing assuming you have the correct binary’s installed.

I like Atom for the actual coding itself.

While I like linux, I am also a gamer at heart and use some programs on a daily basis that only run on windows so windows is still my main system. in fact I generally just use linux in a virtual machine, actually booting up the linux machine and using it is usually more work then whatever change I wanted to make to the code lol.

Portable virtual box FTW.

Heck portable everything, I only install firefox, adobe, DXO, office, drivers and a few specialty programs now days, everything else is setup as a portable app. Makes windows SOOO much more stable. Oh, and screw windows 10.

I solely use linux for my dev. I run a headless box (server), but it would work even better with a desktop distro like Mint.

I loosely followed these instructions to get up and going. It’s been long enough ago that I don’t remember all of the details; I think there’s a lot of that stuff that I didn’t do. Main thing is to get gcc and the appropriate libraries set up for avr and have avrdude installed.

I use a Raspberry Pi 3 or an Orange Pi PC to flash light drivers, works like a charm! The only issue is avrdude requires sudo on Raspbian, not sure why?

The usb programmers are just plug&play, no drivers required - at least on both Debian based Pis.

To get around that sudo requirement, just check out this post from TK. Worked like a charm for me.