Hi,
I lost one of my Attiny13a’s trying to set the fuses. Something inexplicable happened.
This is my platformio.ini
[env:attiny13a]
platform = atmelavr
board = attiny13a
framework = arduino
upload_protocol = atmelice_isp
upload_flags = -e
upload_port = usb
board_build.f_cpu = 8000000L
; Factory default is lfuse 0x6A with clock div 8, and hfuse FF
board_fuses.hfuse = 0x7A ; Turned off clock div 8
board_fuses.lfuse = 0xFF
I lost the terminal output unfortunately, but it said something along the lines of “Writing to lfuse… reading back… 0xFA is different from 0x7A”.
I dont get it, why the hell did the chip fuse end up with the 0xFA value? i.e. with its SPI programming disabled??
The PIO Set fuse process never returned too. I had to type ctrl+c to kill the terminal process.
Anyone knows if disabling SPIEN from the lfuse is a safety procedure from atmel in case of something going wrong? If so, what could I have done wrong?? I have been using my atmel ICE to program them since forever!
Thank you!
edit:
Just seen this too, might explain the problem?
******************************************************************************************************************************
Obsolete PIO Core v6.1.5 is used (previous was 6.1.6a3)
Please remove multiple PIO Cores from a system:
https://docs.platformio.org/en/latest/core/installation/troubleshooting.html
******************************************************************************************************************************