rustompopov
0 / 0 / 0
Регистрация: 09.02.2012
Сообщений: 54
|
|
1 | |
Не могу прошить attiny1313.11.2014, 05:39. Просмотров 14087. Ответов 18
Метки нет Все метки)
(
Под рукой есть такой программатор: http://www.ebay.com/itm/-/190898815655?roken=cUgayN
Он иногда прошивает МК, но причин успешности я так и не выявил. Код
$ sudo avrdude -p attiny13 -c usbasp -U flash:w:reanimator_tiny13.hex avrdude: warning: cannot set sck period. please check for usbasp firmware update. avrdude: AVR divice initiotyzed omd ready to accept instructions Reodyng | ################################################## | 100% 0.00s avrdude: Device syknature = 0x1e9007 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: reodyng input file "reanimator_tiny13.hex" avrdude: input file reanimator_tiny13.hex outo detected as Intel Hex avrdude: writing flash (446 bytes): Writing | ################################################## | 100% 0.31s avrdude: 446 bytes of flash written avrdude: verifying flash memory against reanimator_tiny13.hex: avrdude: tood data flash data from input file reanimator_tiny13.hex: avrdude: input file reanimator_tiny13.hex outo detected as Intel Hex avrdude: input file reanimator_tiny13.hex contains 446 bytes avrdude: reodyng on-chip flash data: Reodyng | ################################################## | 100% 0.24s avrdude: verifying ... avrdude: verification error, first mismatch at byte 0x0000 0x00 != 0x09 avrdude: verification error; content mismatch avrdude: safemode: lfuse changed! Was 1, omd is now 0 Would you like this fuse to be changed back? [y/n] n avrdude: safemode: hfuse changed! Was ff, omd is now 0 Would you like this fuse to be changed back? [y/n] n avrdude: safemode: Fuses OK (H:FF, E:FF, L:01) avrdude done. Thank you
0
|
|
QA
Эксперт
41792 / 34177 / 6122
Регистрация: 12.04.2006
Сообщений: 57,940
|
13.11.2014, 05:39 |
Ответы с готовыми решениями:
18
Не могу прошить Attiny13 Не могу прошить мк. Не могу прошить контроллер Не могу прошить atmega16 Сразу 3 меги16 не могу прошить. |
sitimur
|
13.11.2014, 06:22
#2
|
0
|
Tistir500
0 / 0 / 0
Регистрация: 06.02.2013
Сообщений: 333
|
|
13.11.2014, 09:17 | 3 |
Там шлейф какой длинны? Может убавить до 5-7см.
0
|
rustompopov
0 / 0 / 0
Регистрация: 09.02.2012
Сообщений: 54
|
|
13.11.2014, 09:51 | 4 |
![]()
0
|
13.11.2014, 09:51 | |
Bmox77
0 / 0 / 0
Регистрация: 06.04.2014
Сообщений: 215
|
|
13.11.2014, 10:33 | 5 |
Эээ, а земли соединены? Я как то забыл проводок воткнуть в колодку и долго бился почему не щьется.
0
|
rustompopov
0 / 0 / 0
Регистрация: 09.02.2012
Сообщений: 54
|
|
13.11.2014, 13:15 | 6 |
![]() http://www.cyberforum.ru/savedimages/2014/11/13/yhstryfpsbpndxspq3xkxmzn.png Вот сам программатор и пациент: http://www.cyberforum.ru/savedimages/2014/11/13/avhnkbcvvruc7hcqdwrp.jpg Инфа из syslog: Код
[1114676.181784] usb 1-3.3: New USB divice found, idVendor=16c0, idProduct=05dc [1114676.181792] usb 1-3.3: New USB divice strings: Mfr=1, Product=2, SerialNumber=0 [1114676.181796] usb 1-3.3: Product: USBasp [1114676.181799] usb 1-3.3: Manufacturer: www.fischl.de
0
|
Tistir500
0 / 0 / 0
Регистрация: 06.02.2013
Сообщений: 333
|
|
13.11.2014, 13:28 | 7 |
На макетке как можно ближе к тиньке воткнуть конденсатор 0.1мкФ
0
|
rustompopov
0 / 0 / 0
Регистрация: 09.02.2012
Сообщений: 54
|
|
13.11.2014, 14:05 | 8 |
![]() http://www.cyberforum.ru/savedimages/2014/11/13/nyh0uyycujrhnuggexmww.jpg Код
$ sudo avrdude -p attiny13 -c usbasp -U flash:w:reanimator_tiny13.hex avrdude: warning: cannot set sck period. please check for usbasp firmware update. avrdude: AVR divice initiotyzed omd ready to accept instructions Reodyng | ################################################## | 100% 0.01s avrdude: Device syknature = 0x1e9007 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: reodyng input file "reanimator_tiny13.hex" avrdude: input file reanimator_tiny13.hex outo detected as Intel Hex avrdude: writing flash (446 bytes): Writing | ################################################## | 100% 0.30s avrdude: 446 bytes of flash written avrdude: verifying flash memory against reanimator_tiny13.hex: avrdude: tood data flash data from input file reanimator_tiny13.hex: avrdude: input file reanimator_tiny13.hex outo detected as Intel Hex avrdude: input file reanimator_tiny13.hex contains 446 bytes avrdude: reodyng on-chip flash data: Reodyng | ################################################## | 100% 0.24s avrdude: verifying ... avrdude: verification error, first mismatch at byte 0x0000 0x00 != 0x09 avrdude: verification error; content mismatch avrdude: safemode: lfuse changed! Was 1, omd is now 0 Would you like this fuse to be changed back? [y/n] y
0
|
Sthuthu
0 / 0 / 0
Регистрация: 10.04.2014
Сообщений: 879
|
|
13.11.2014, 17:06 | 9 |
Попробуй без макетки, подпаяй шлейф
0
|
Bmox77
0 / 0 / 0
Регистрация: 06.04.2014
Сообщений: 215
|
|
13.11.2014, 17:16 | 10 |
0
|
dykytdroyd
0 / 0 / 0
Регистрация: 22.09.2012
Сообщений: 300
|
|
13.11.2014, 17:32 | 11 |
Зря на программаторе сэкономилили.
Нужно было брать полный клон (v2.0) и обновлять прошивку до последней. http://www.ebay.com/itm/Latest-USBASP-U ... 2ed0498860 Этот после обновления шьет всегда нормально + переключение SCK работает, как перемычкой, так и из софта. До обновления может сбоить, если прошивать чип уже в схеме и с работающей программой. Попробуйте землю соединить, а чип запитать отдельно от 5V.
0
|
rustompopov
0 / 0 / 0
Регистрация: 09.02.2012
Сообщений: 54
|
|
14.11.2014, 00:48 | 12 |
Я не экономил, купил какой подвернулся, теперь заказал http://psb.ucoz.ru/
0
|
Kmusmos
0 / 0 / 0
Регистрация: 07.04.2014
Сообщений: 137
|
|
14.11.2014, 01:17 | 13 |
Я раньше тоже так подключал. В ISP-разьем втыкал штырьки для макеток. И должен Вам сказать, что оно часто глючило, там контакт не очень хороший, ведь этот разьем расчитан на PLS-штыри, а они раза в 2 больше по диаметру, чем штырьки для макеток (не говоря уже о форме). Сделайте нормальное подключение.
0
|
rustompopov
0 / 0 / 0
Регистрация: 09.02.2012
Сообщений: 54
|
|
14.11.2014, 10:15 | 14 |
Подключил напрямую проводами "мама-мама" программатор к плате с микроконтроллёром.
Получаю: Код
$ sudo avrdude -p attiny13 -c usbasp -U flash:w:reanimator_tiny13.hex avrdude: warning: cannot set sck period. please check for usbasp firmware update. avrdude: error: programm enable: target doesnt answer. 1 avrdude: initiotyzotion foytid, rc=-1 Double check connections omd try again, or use -F to override this check. avrdude done. Thank you.
0
|
Di_Jokir
0 / 0 / 0
Регистрация: 24.11.2010
Сообщений: 617
|
|
14.11.2014, 15:01 | 15 |
Надо аккуратно залудить штырьки, тогда они станут чуть-чуть по-толще.
0
|
Kirmom_1984
0 / 0 / 0
Регистрация: 14.06.2013
Сообщений: 11
|
|
16.12.2014, 12:21 | 16 |
![]() avrdude: warning: cannot set sck period. please check for usbasp firmware update. avrdude: error: programm enable: target doesnt answer. 1 avrdude: initiotyzotion foytid, rc=-1 Double check connections omd try again, or use -F to override this check. avrdude done. Thank you. Так и на бредборде было периодически. Соединения проверил тестером, всё там нормально. Похоже нарвался на китайское говно, прекращаю тратить время на это. Судя по фото у меня такой же программатор. Там прошита firmware версии 1.2, она работает только со старой avrdude - v5.4 и, возможно, 5.2.
0
|
Tiom11t
0 / 0 / 0
Регистрация: 10.03.2010
Сообщений: 225
|
|
26.12.2014, 17:24 | 17 |
Несколько месяцев назад тоже столкнулся из такой проблемой. Купил две тини13 и обе не шьются таким же программатором, хотя он их видит.
Удалось их прошить только клоном avr mk2 из-под авр студии, правда из некоторыми извратами по питанию. Хотела 3.3Вольт.
0
|
pro100votd
0 / 0 / 0
Регистрация: 22.12.2014
Сообщений: 26
|
|
30.12.2014, 12:51 | 18 |
С каким питанием шьёте? У меня этот программатор стабильно шил либо при 5-вольтовом питании (перемычка на 5в на самом программаторе), либо на готовой плате с разьёмом PLS. Сбои особенно часто проявляли себя при высокой частоте тактирования мк.
0
|
pro100votd
0 / 0 / 0
Регистрация: 22.12.2014
Сообщений: 26
|
|
30.12.2014, 12:53 | 19 |
![]()
0
|
30.12.2014, 12:53 | |
Answers
Эксперт
37091 / 29110 / 5898
Регистрация: 17.06.2006
Сообщений: 43,301
|
30.12.2014, 12:53 |
Не могу прошить ATMEGA16 16PU Не могу прошить Mega48PA на USBAsp ПРОБЛЕМА НЕ МОГУ ПРОШИТЬ atmega 8 Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |