Hello,
I recently started playing with the ATtiny85 for a project involving an LED strip with individually addressable LEDs.
My code works fine but i have bricked 3 Digi spark style boards so far.
First one got bricked when I was powering it on and off repeatedly to test for robustness.
The second one got bricked when i powered it up one time, totally random event.
The third one got bricked as a result of me trying to find the cause of this happening. I was toggling the power on and off really quickly and after a few seconds of it, it got bricked like the previous two.
I am using an external 12v supply, but these boards have an on-board V-regulator.
By bricked I mean there is nothing happening when power is connected, the power LED on the board lights up but the LED strip doesn't light up like its programmed to do.
Little bit about my configuration:
Before any of this happened, i uploaded a different bootloader to remove the startup delay, which gives you a time window to plug in the board and upload code (after this change, it is needed to short P0 and GND to upload code).
The next thing i did was disable the reset function of P5, to turn it into a GPIO pin. This was done by setting the fuses through an Arduino as an ISP and an avrdude command.
After my problem happens and i try to fix it by reuploading the bootloader, i get the error Device Signature is Invalid. I assume that it is because the reset pin is disabled, hence i can't reupload the bootloader, I realise that this could possibly be fixed with a high voltage programmer.
So, i am wondering why this is happening and how i could protect my project from it?
Has anyone seen something like this happen to them?
My project would be finished and working by now, but because there is a random chance of this happening on power-up, i see it as unstable and don't want to use it. I am thinking about going with a different MCU instead.
Any help would be appreciated!