Can't flash SP36, something wrong

5 posts / 0 new
Last post
Marios
Offline
Last seen: 1 day 14 hours ago
Joined: 11/24/2022 - 08:57
Posts: 3
Location: Egypt
Can't flash SP36, something wrong

Hi all,

I couldn’t flash my sofirn sp36 BLF, can you help me please?

Using avrdude-6.4-mingw32

Quote:
C:\AVRdude>avrdude.exe -p t85 -c usbasp -n

avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude.exe: Device signature = 0×1e930b (probably t85)

avrdude.exe: safemode: Fuses OK (E:FF, H:DE, L:E2)

avrdude.exe done. Thank you.

C:\AVRdude>avrdude.exe -c usbasp -p t85 -U flash:w:anduril.2021-12-13.sofirn-sp36.hex

avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude.exe: Device signature = 0×1e930b (probably t85)
avrdude.exe: NOTE: “flash” memory has been specified, an erase cycle will be performed To disable this feature, specify the -D option.
avrdude.exe: erasing chip
avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: reading input file “anduril.2021-12-13.sofirn-sp36.hex”
avrdude.exe: input file anduril.2021-12-13.sofirn-sp36.hex auto detected as Intel Hex
avrdude.exe: writing flash (8076 bytes):

Writing | ################################################## | 100% 9.48s

avrdude.exe: 8076 bytes of flash written
avrdude.exe: verifying flash memory against anduril.2021-12-13.sofirn-sp36.hex:
avrdude.exe: load data flash data from input file anduril.2021-12-13.sofirn-sp36.hex:
avrdude.exe: input file anduril.2021-12-13.sofirn-sp36.hex auto detected as Intel Hex
avrdude.exe: input file anduril.2021-12-13.sofirn-sp36.hex contains 8076 bytes
avrdude.exe: reading on-chip flash data:

Reading | ################################################## | 100% 8.22s

avrdude.exe: verifying …
avrdude.exe: verification error, first mismatch at byte 0×0000 0×00 != 0xab
avrdude.exe: verification error; content mismatch

avrdude.exe: safemode: lfuse changed! Was e2, and is now 0
Would you like this fuse to be changed back? [y/n] n
avrdude.exe: safemode: hfuse changed! Was de, and is now 0
Would you like this fuse to be changed back? [y/n] n
avrdude.exe: safemode: efuse changed! Was ff, and is now 0
Would you like this fuse to be changed back? [y/n] n
avrdude.exe: safemode: Fuses OK (E:00, H:00, L:00)

avrdude.exe done. Thank you.

Edited by: Marios on 11/24/2022 - 09:32
MtnDon
MtnDon's picture
Offline
Last seen: 21 hours 12 min ago
Joined: 08/27/2015 - 18:25
Posts: 4376
Location: Canuk in NM

Have you been able to flash other drivers before this?

Marios
Offline
Last seen: 1 day 14 hours ago
Joined: 11/24/2022 - 08:57
Posts: 3
Location: Egypt

No, this is my first use of the USBasp programmer.

Same error when trying to flash using my phone

screenshot

MtnDon
MtnDon's picture
Offline
Last seen: 21 hours 12 min ago
Joined: 08/27/2015 - 18:25
Posts: 4376
Location: Canuk in NM

OK. I am not expert enough to be of much help. I have to refer to my notes every time. There could be many reasons. Let’s wait and see who else can help. Best of luck with this.

Marios
Offline
Last seen: 1 day 14 hours ago
Joined: 11/24/2022 - 08:57
Posts: 3
Location: Egypt

Thank you so much MtnDon,

I don’t know what fixed it, i just re-seated the clip and added “:a” at the end of flashing command… and it worked

the weird thing is when the flashlight is off the green led inside the push button is ON and vise versa… now i have to turn the battery cap to disconnect the battery and make the switch led off… weird.

Quote:
C:\AVRdude>avrdude -p t85 -c usbasp -Uflash:w:anduril.2021-12-13.sofirn-sp36.hex:a

avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0×1e930b (probably t85)
avrdude: NOTE: “flash” memory has been specified, an erase cycle will be performed To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: reading input file “anduril.2021-12-13.sofirn-sp36.hex”
avrdude: input file anduril.2021-12-13.sofirn-sp36.hex auto detected as Intel Hex
avrdude: writing flash (8076 bytes):

Writing | ################################################## | 100% 9.99s

avrdude: 8076 bytes of flash written
avrdude: verifying flash memory against anduril.2021-12-13.sofirn-sp36.hex:
avrdude: load data flash data from input file anduril.2021-12-13.sofirn-sp36.hex:
avrdude: input file anduril.2021-12-13.sofirn-sp36.hex auto detected as Intel Hex
avrdude: input file anduril.2021-12-13.sofirn-sp36.hex contains 8076 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 8.22s

avrdude: verifying …
avrdude: 8076 bytes of flash verified

avrdude: safemode: Fuses OK (E:FE, H:DE, L:02)

avrdude done. Thank you.