Signature error and flashing problems with ATmega328P through USBasp

Hey everyone,

When I try to flash it, I get an error saying the signature doesn’t match. Does anyone know how to fix it?

🇷🇺 Оригинал

Всех приветствую

При прошивке получаю ошибку что подпись не соответствует, знает кто как чинить?

Is the Arduino not from the kit?

🇷🇺 Оригинал

ардуина не из набора?

It is from the kit

I’m still reading through the messages here, maybe it’s just something weird with the fuses

🇷🇺 Оригинал

Из набора

Я тут пока сообщения читаю, мб это просто с фьюзами прикол

strange

try this in platformio.ini

[env:fuses]
board = ATmega328P
board_hardware.oscillator = external ; Oscillator type
board_hardware.uart = no_bootloader ;
; board_hardware.uart = uart0 ; Set UART to use for serial upload
board_bootloader.speed = 115200 ; Set bootloader baud rate
board_hardware.bod = 4.3v ; Set brown-out detection 4.3v 2.7v
board_hardware.eesave = yes ; Preserve EEPROM when uploading using programmer
upload_protocol = usbasp ; Use the USBasp as programmer custom usbasp
upload_flags = ; Select USB as upload port and divide the SPI clock by 8
-v
-PUSB
-B8
-F ;<<<<<<<<<<<<<Add this

hardly likely… check the marking on the chip, it’ll probably say 328PB. Chinese bastards just threw in whatever they had, and you can’t tell from the package

🇷🇺 Оригинал

странно

пробуй так в platformio.ini

[env:fuses]
board = ATmega328P
board_hardware.oscillator = external ; Oscillator type
board_hardware.uart = no_bootloader ;
; board_hardware.uart = uart0 ; Set UART to use for serial upload
board_bootloader.speed = 115200 ; Set bootloader baud rate
board_hardware.bod = 4.3v ; Set brown-out detection 4.3v 2.7v
board_hardware.eesave = yes ; Preserve EEPROM when uploading using programmer
upload_protocol = usbasp ; Use the USBasp as programmer custom usbasp
upload_flags = ; Select USB as upload port and divide the SPI clock by 8
-v
-PUSB
-B8
-F ;<<<<<<<<<<<<<Вот это добавь

едва ли… проверь на чипе маркировку, там будет 328PB скорее всего, китацы-мудачье, положили что было, а пакете и не видно

avrdude do_op() error: verification mismatch

No, it’s just a 328P

🇷🇺 Оригинал

avrdude do_op() error: verification mismatch

Не, просто 328P

hmm… then flash it as a P, no idea why it won’t flash, but double-check yourself, this usually works without issues

🇷🇺 Оригинал

хм… тогда шей как P, почему не шьется хз, но проверяй сам себя, обычно это без проблем работает

that’s the P signature [iz chata]

🇷🇺 Оригинал

это сигнатура P [iz chata]

-F ignores the signature entirely, but why it still won’t flash is the question

probably not it, but… is the programmer power set to 3.3 or 5? It really shouldn’t matter, but let’s check anyway

🇷🇺 Оригинал

-F вообще кладет на сигнатуру, а почему не шьется вопрос

оно навряд ли, но… питание на программаторе 3.3 или 5 выставлено? хоть оно и правда пофиг, но давай проверим

it most likely flashed. just again, it couldn’t verify it because the signature didn’t match.

🇷🇺 Оригинал

прошилось скорее всего. просто опять же верифицировать не удалось, сигнатура не совпала.

I won’t be able to figure it out myself =)

🇷🇺 Оригинал

Сам понять не смогу =)

stick it on the two pins at the very end closest to the connector

🇷🇺 Оригинал

в крайнее ближние к разъему два штырька пихай

🇷🇺 Оригинал

JP21 = 5v

it’s literally labeled

🇷🇺 Оригинал

JP21 = 5v

подписано жИ

it really doesn’t matter, but let it be set correctly

🇷🇺 Оригинал

оно реально без разницы но пусть будет как надо

first time I’ve seen a programmer with a reset pin header

🇷🇺 Оригинал

первый раз вижу программатор, со штырьком reset

the outer 2 [iz chata]

🇷🇺 Оригинал

крайние 2 [iz chata]

on the sides it’s in 3.3 and 5, and the center is already out

🇷🇺 Оригинал

по бокам in 3.3 и 5 а в центре уже out

I mean the back side of the board — it’s all labeled

🇷🇺 Оригинал

я про обратную сторону платы - все подписано

so it turns out no power was being supplied at all. just parasitic power over SPI

🇷🇺 Оригинал

питание вообще не подавалось получается. только паразитное по spi

avrdude: set SCK frequency to 93750 Hz
avrdude usbasp_spi_program_enable() error: program enable: target does not answer (0x01)
avrdude main() error: initialization failed, rc=-1

  • double check the connections and try again
  • use -B to set lower the bit clock frequency, e.g. -B 125kHz
  • use -F to override this check

avrdude done. Thank you.

*** [fuses] Error 1

Changed it, now apparently it can’t see the Arduino, as I understand it

🇷🇺 Оригинал

avrdude: set SCK frequency to 93750 Hz
avrdude usbasp_spi_program_enable() error: program enable: target does not answer (0x01)
avrdude main() error: initialization failed, rc=-1

  • double check the connections and try again
  • use -B to set lower the bit clock frequency, e.g. -B 125kHz
  • use -F to override this check

avrdude done. Thank you.

*** [fuses] Error 1

Поменял, сейчас видимо не видит ардуино как я понимаю