@zeroflow hey I’ve been trying to get these files to flash and I’m pulling my hair out. I’ve tried researching for awhile now with no success. Everything seems like a bad connection to my programmer, but I used this same config earlier today to flash my buddies D4. Of the two Lexel drivers I got, neither would flash, and I kept getting the error
“programm enable: target doesn’t answer. 1.
Initializelation failed, rc=1.”
So I did some googling and tried using -B 32 to lower the clock speed. No avail. I cleaned the contacts, I reseted connections, I changed from 5v to 3.3v, I did everything… Eventually I used the -F command to force it to write the hex. Which it did, and then failed to verify, and the driver ceased to function when tested in the light with battery.
I thought it was the hex, so I flashed a known-good D4 hex to it, same results, flash but fail to verify.
I got the second driver out, which I had not soldered to yet, and it gave the same exact initial error. I did not use the -F command on it. I went back and forth between the two drivers, I could not get either to work with any combination of settings. Then, suddenly, the second driver flashed the h03.hex with the stock settings for avrdude,I have no idea why. It verified fine. I have not checked to see if it is functional in a light.
The first one still fails to flash. Now it is saying the device signature is wrong. And indeed, the signature does change every time. This leads me to think it’s a connection problem, but I’ve flashed a half dozen lights with this already with zero issues.
The only other thing I can think, is that I accidentally bridged the negative led terminal by the FET with the negative ring around the PCB. And when I put the light together the light came on full brightness and it took me a few seconds to figure it out. Could this have damaged the MCU? I cleared the bridge, and the stock loaded Narsilm ran fine, ramping and turbo and everything else, so it seemed to me that the MCU was fine. Could something else have burned? I can try soldering on a new MCU, but I will wait for guidance.
Also, if it’s a damaged MCU, then why did the untouched driver also fail to flash at first?? Makes no sense.
Sorry this is so long, I’ve tried helping myself here but I’m getting over my head. Any suggestions guys?
Edit: I’m using the hex files you sent me.