Atmega chip enable program error

пытаюсь прошить новый микроконтроллер ATmega644P-20AU (в наличии 2 шт результат одинаков) smd программатором USBASP с программой progisp на что получаю ошибку "chip enable program error". подскажите от завода какую схему для него надо собрать чтоб он запустился и был доступен для прошивки. на дан...

Рекомендуемые сообщения

Super_ Viv

Новичок

    • Поделиться

пытаюсь прошить новый микроконтроллер ATmega644P-20AU (в наличии 2 шт результат одинаков) smd программатором USBASP с программой progisp на что получаю ошибку «chip enable program error».

подскажите от завода какую схему для него надо собрать чтоб он запустился и был доступен для прошивки. на данный момент объединяю все 4 земли и 4 питания, с подключением ICSP.

2_10.png

  • Цитата

Ссылка на комментарий
Поделиться на другие сайты

Yuriy.pv

Экспериментатор

    • Поделиться

Убедитесь в правильности подключения isp,  если есть инверсия сигнала в программе, проверить. Уменьшить тактовую частоту (там может быть запрограммирован фуз ckdiv8). Также могут мешать элементы на портах программирования, если программируете внутрисхемно.


Изменено 11 декабря, 2021 пользователем Yuriy.pv

  • Цитата

Ссылка на комментарий
Поделиться на другие сайты

Piotr__1

Опытный

    • Поделиться

У вас же блин даже на картинке в легенде указанно «Programming/debug» синим цветом. Неужели не видно на каких они пинах?

Спойлер

ВНЕЗАПНО! SPI — это универсальная шина обмена данными, а не только интерфейс программирования.

  • Цитата

Жизнь не белая или чёрная, а в мелкую серенькую полосочку…

Ссылка на комментарий
Поделиться на другие сайты

LIMF – источники питания High-End от MORNSUN со стандартным функционалом на DIN-рейку
На склад Компэл поступили ИП MORNSUN (крепление на DIN-рейку) с выходной мощностью 240 и 480 Вт. Данные источники питания обладают 150% перегрузочной способностью, активной схемой коррекции коэффициента мощности (ККМ; PFC), наличием сухого контакта реле для контроля работоспособности (DC OK) и возможностью подстройки выходного напряжения. Источники питания выполнены в металлическом корпусе, ПП с компонентами покрыта лаком с двух сторон, что делает ее устойчивой к соляному туману и пыли. Изделия соответствуют требованиям ANSI/ISA 71.04-2013 G3 на устойчивость к коррозии, а также нормам ATEX для взрывоопасных зон.
Подробнее>>

Super_ Viv

Новичок

  • Автор
    • Поделиться

Спасбо за информацию. я так понял для того чтобы его прошить USBisp и USBasp не подойдут. небходимо AVR JTAG USB ?

  • Цитата

Ссылка на комментарий
Поделиться на другие сайты

Выгодные LED-драйверы для решения любых задач

КОМПЭЛ представляет со склада и под заказ широкий выбор LED-драйверов производства MEAN WELL, MOSO, Snappy, Inventronics, EagleRise. Линейки LED-драйверов этих компаний, выполненные по технологии Tunable White и имеющие возможность непосредственного встраивания в систему умного дома (димминг по шине KNX), перекрывают практически полный спектр применений: от простых световых указателей и декоративной подсветки до диммируемых по различным протоколам светильников внутреннего и наружного освещения. 

Подобрать LED-драйвер>>

Геннадий

Мастер

    • Поделиться

Ну почему же JTAG? 644-я шьется и через SPI. Я тут тоже столкнулся с новыми 128А. Пока не подал внешнюю частоту на XTAL1, МК шиться не хотел. Думаю, что Микрочип изменил тактирование по-умолчанию у новых МК.

  • Цитата

Ссылка на комментарий
Поделиться на другие сайты

ER10450 – литий-тионилхлоридная батарейка FANSO EVE Energy формата ААА
Компания FANSO EVE Energy расширила номенклатуру продукции, разработав новый химический источник тока (ХИТ) – батарейку литий-тионилхлоридной электрохимической системы (Li-SOCl2; номинальное напряжение 3,6 В) типоразмера ААА – ER10450. Батарейка имеет бобинную конструкцию (тип Energy) и предназначена для долговременной работы при малых токах.
Батарейка может применяться в приборах учета ресурсов, в различных датчиках, устройствах IoT и в других приборах и устройствах, в которых требуется компактный ХИТ соответствующей емкости.
Подробнее >>

Super_ Viv

Новичок

  • Автор
    • Поделиться

 на XTAL1  кварц? какой частоты ?


Изменено 11 декабря, 2021 пользователем Super_ Viv

  • Цитата

Ссылка на комментарий
Поделиться на другие сайты

  • Реклама

Piotr__1

Опытный

    • Поделиться

+- трамвайная остановка. можно поискать в мануале дефолтные заводские фьюзы и от них прикинуть на какой частоте он хочет работать.

1 час назад, Super_ Viv сказал:

для того чтобы его прошить USBisp и USBasp не подойдут

подойдут, этот камешек умеет в SPI — стр 299 манула. Там же и про частоту есть.

49 минут назад, Super_ Viv сказал:

 на XTAL1  кварц? какой частоты ?

На XTAL1  не кварц а частоту.

Кварц на XTAL1 + XTAL2

  • Цитата

Жизнь не белая или чёрная, а в мелкую серенькую полосочку…

Ссылка на комментарий
Поделиться на другие сайты

Super_ Viv

Новичок

  • Автор
    • Поделиться

как указанно в даташит.

Устройство поставляется с внутренним RC-генератором на 8,0 МГц и запрограммированным предохранителем CKDIV8, обеспечивающим системную частоту 1,0 МГц. Установлено максимальное время запуска и тайм-аут. период включен. (CKSEL = «0010», SUT = «10», CKDIV8 = «0»). Настройка по умолчанию гарантирует, что все пользователи могут сделать желаемую настройку источника синхронизации, используя любой доступный программный интерфейс.


Изменено 11 декабря, 2021 пользователем Super_ Viv

  • Цитата

Ссылка на комментарий
Поделиться на другие сайты

Super_ Viv

Новичок

  • Автор
    • Поделиться

новые avr поставляются чистыми или как ардуино должен бить блинк? чтоб проверить его работоспособность ?

при подачи питания на ножках 21 22 23 24 что соответствует jtag постоянно присутсвубт 5в.


Изменено 11 декабря, 2021 пользователем Super_ Viv

  • Цитата

Ссылка на комментарий
Поделиться на другие сайты

100482

Профи

    • Поделиться

Попадались новые атмеги которые не прошивались изначально.

Подачей на 

1 час назад, Piotr__1 сказал:

На XTAL1  не кварц а частоту.

фьюзы были выставлены на внешнее тактирование.

Делал на 155ла генератор с кварцем 455кГц, от пульта, частота не критичная.

  • Цитата

Ссылка на комментарий
Поделиться на другие сайты

Геннадий

Мастер

    • Поделиться

Именно так. Новая Мега128а ни в какую не желала прошиваться (должна была работать от внутреннего генератора) и только после подключения внешнего генератора на TTL (около 8МГц) определилась и прошилась нормально.

  • Цитата

Ссылка на комментарий
Поделиться на другие сайты

Присоединяйтесь к обсуждению

Вы можете написать сейчас и зарегистрироваться позже.

Если у вас есть аккаунт, авторизуйтесь, чтобы опубликовать от имени своего аккаунта.

Примечание: Ваш пост будет проверен модератором, прежде чем станет видимым.

We are using progisp software to program a microcontroller AT89S52. We are struggeling with an issue saying

chip enable program error

Please help us to tackle this issue? What does it mean?

RobertS supports Monica Cellio's user avatar

asked Jan 15, 2020 at 13:04

shivani lal's user avatar

2

Did you checked all the things which are described in this documentation https://www.academia.edu/8278452/How_to_solve_chip_enable_program_error_in_progisp?

  1. Check if the
    USBasp
    driver is properly installed (update it from settings).
  2. Recheck the jumpers. Change them if they are weakly connected.
  3. Try to change the port, sometimes some ports can malfunction (ex. from port 1 to port 0).
  4. Press reset button for 10 seconds.
  5. Try to erase current program from
    progisp
    compiler, and load flash of hex file again

Or here: http://www.mbeddedc.com/2015/03/how-to-solve-chip-enable-error-in.html

Reason for Chip enable error in progisp:

1) Main reason for this error could be wrong connections.
This can be solved by checking the connection between Serial ISP Programmer and Micro-controller. Many times Gnd,Vcc,Sck,MISO,MOSI,RST connection does not match with each other. This should be given properly by Gnd-Gnd, Vcc-Vcc, Sck-Sck, MISO-MISO, MOSI-MOSI, RST-RST.

2) Check whether the power to the ISP Programmer and micro-controller are correctly supplied.

It pretends to solve the issue.

answered Jan 15, 2020 at 13:43

RobertS supports Monica Cellio's user avatar

Chip enable program error что это

1. перепроверял уже ни одну сотню раз
2. Вот это уже интересней, только вот где это писать, и как правильно все это делать надо
4. У меня их 10 штук — все одинаково себя ведут

У меня программирование останавливается на этом как же он работает если после этого больше ничего не делает? Ну и опять же моих познаний не хватает для полноценной проверки Пытаюсь уйти от arduino IDE, но все тщетно:
extreme burner говорит «Fount USBasp on USB; Powering On. ; Power On Failed; Cannon Communicate with Target Chip»
ProgISP говорит только «Chip Enable Program Error»
Какие то еще пробовал уже не помню — тоже ошибки и на 8 винде и на ноуте с xp

Еще если написать «avrdude -C ../etc/avrdude.conf -c avrisp -P COM4 -b 19200 -p m328p -v -F»
То отвечает

avrdude: AVR device initialized and ready to accept instructions

avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATMEGA328P is 1E 95 0F
avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0

avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0
avrdude: safemode: Fuses OK

avrdude done. Thank you.

Если добавить -B20 то ничего не меняется

Последний раз редактировалось Ytm Чт авг 28, 2014 09:19:27, всего редактировалось 1 раз.

Реклама
MaksKirov

Зарегистрирован: Сб июл 12, 2014 16:43:40
Сообщений: 9
Откуда: Киров
Рейтинг сообщения: 0

Реклама

Ytm
Нашел транзистор. Понюхал.

Зарегистрирован: Ср окт 02, 2013 15:59:28
Сообщений: 160
Откуда: Москва
Рейтинг сообщения: 0

Реклама

Сборка печатных плат от $30 + БЕСПЛАТНАЯ доставка по всему миру + трафарет

Ytm
Нашел транзистор. Понюхал.

Зарегистрирован: Ср окт 02, 2013 15:59:28
Сообщений: 160
Откуда: Москва
Рейтинг сообщения: 0

Получился следующий фаил, не знаю как его открыть можно посмотреть Но если верить ProgISP’у то там тоже одни нули
Не могу заттачить почему-то, вот так сслыкой: https://dl.dropboxusercontent.com/u/284 . are328.bin

Вот допустим как прописать фьюзы через консоль? и какие прописать для ардуины — проверить изменится может хоть что-то

Блин еще фьюзы читает каждый раз по разному

avrdude -C ../etc/avrdude.conf -c avrisp
-P COM4 -b 19200 -p m328p -v -F

avrdude: Version 5.11, compiled on Sep 2 2011 at 19:38:36
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is «../etc/avrdude.conf»

Using Port : COM4
Using Programmer : avrisp
Overriding Baud Rate : 19200
AVR Part : ATMEGA328P
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :

Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
———- —- —— —— —- —— —— —- —— —— —
— ———
eeprom 65 20 4 0 no 1024 4 0 3600 36
00 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 45
00 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 45
00 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 45
00 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 45
00 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 45
00 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0
0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0
0 0x00 0x00

Programmer Type : STK500
Description : Atmel AVR ISP
Hardware Version: 2
Firmware Version: 1.18
Topcard : Unknown
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

avrdude: Device signature = 0xffffff
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATMEGA328P is 1E 95 0F
avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0

avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0
avrdude: safemode: Fuses OK

avrdude done. Thank you.

C:arduino-1.0.5hardwaretoolsavrbin>avrdude -C ../etc/avrdude.conf -c avrisp
-P COM4 -b 19200 -p m328p -v -F

avrdude: Version 5.11, compiled on Sep 2 2011 at 19:38:36
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is «../etc/avrdude.conf»

Using Port : COM4
Using Programmer : avrisp
Overriding Baud Rate : 19200
AVR Part : ATMEGA328P
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :

Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
———- —- —— —— —- —— —— —- —— —— —
— ———
eeprom 65 20 4 0 no 1024 4 0 3600 36
00 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 45
00 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 45
00 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 45
00 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 45
00 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 45
00 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0
0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0
0 0x00 0x00

Programmer Type : STK500
Description : Atmel AVR ISP
Hardware Version: 2
Firmware Version: 1.18
Topcard : Unknown
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

avrdude: Device signature = 0xffffff
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATMEGA328P is 1E 95 0F
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as FF
avrdude: safemode: efuse reads as 7

avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0
avrdude: safemode: lfuse changed! Was ff, and is now 0
Would you like this fuse to be changed back? [y/n] n
avrdude: safemode: hfuse changed! Was ff, and is now 0
Would you like this fuse to be changed back? [y/n] n
avrdude: safemode: efuse changed! Was 7, and is now 0
Would you like this fuse to be changed back? [y/n] n
avrdude: safemode: Fuses OK

avrdude done. Thank you.

C:arduino-1.0.5hardwaretoolsavrbin>avrdude -C ../etc/avrdude.conf -c avrisp
-P COM4 -b 19200 -p m328p -v -F

avrdude: Version 5.11, compiled on Sep 2 2011 at 19:38:36
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is «../etc/avrdude.conf»

Using Port : COM4
Using Programmer : avrisp
Overriding Baud Rate : 19200
AVR Part : ATMEGA328P
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :

Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
———- —- —— —— —- —— —— —- —— —— —
— ———
eeprom 65 20 4 0 no 1024 4 0 3600 36
00 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 45
00 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 45
00 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 45
00 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 45
00 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 45
00 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0
0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0
0 0x00 0x00

Programmer Type : STK500
Description : Atmel AVR ISP
Hardware Version: 2
Firmware Version: 1.18
Topcard : Unknown
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

avrdude: Device signature = 0xffffff
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATMEGA328P is 1E 95 0F
avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0

avrdude: safemode: lfuse reads as 0
avrdude: safemode: Verify error — unable to read hfuse properly. Programmer may
not be reliable.
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as FF
avrdude: safemode: efuse reads as 7
avrdude: safemode: lfuse changed! Was 0, and is now ff
Would you like this fuse to be changed back? [y/n]—>

Инструкции в инете почитаешь так все просто дальше некуда, а в действительности какой-то кошмар. Или все таки битые МК из китая прислали, а я тут мучаюсь.

Реклама

Линейка изолированных DC/DC-преобразователей VCB и VCF с диапазоном мощности 3…400 Вт предназначена для использования в телекоммуникационной аппаратуре. Эти новые преобразователи третьего поколения (R3) выпускаются в типоразмерах SIP, 1/4 Brick, 1/8 Brick и 1/16 Brick. Данные DC/DC отвечают требованиям стандарта DOSA, имеют диапазон входного напряжения 2:1 (36…75 В), обладают высокой эффективностью (КПД до 93%) и широким температурным диапазоном -40…85ºС. Изоляция «вход-выход» составляет 1500/2250 В. VCB и VCF выпускаются в двух вариантах по логике управления: N (отрицательной) и P (положительной).

Baasil
Говорящий с текстолитом

Карма: 17
Рейтинг сообщений: 160
Зарегистрирован: Пн авг 25, 2014 21:52:26
Сообщений: 1614
Откуда: Ленинград
Рейтинг сообщения: 0

Реклама
Реклама

В промышленных устройствах и установках с электроприводом на двигателях постоянного тока в момент пуска требуется обеспечить повышенный ток. Для решения этой задачи MEAN WELL предлагает вместо ИП с повышенной избыточной мощностью, более оптимальное решение — источник питания с необходимой перегрузочной способностью семейства HRP/N3. Новое семейство, представленное в Компэл, экономичнее и расширяет уже существующее HRP/N в увеличении кратности перегрузки.

MaksKirov

Зарегистрирован: Сб июл 12, 2014 16:43:40
Сообщений: 9
Откуда: Киров
Рейтинг сообщения: 0

Через usbasp ключ должен быть usbasp.
Фьюзы дописываем ключи так для атмеги 328:

И вообще можно так. Там показывает все команды и какие должны быть фьюзы для 328

Morroc

Карма: 49
Рейтинг сообщений: 457
Зарегистрирован: Чт фев 20, 2014 18:57:55
Сообщений: 15728
Рейтинг сообщения: 0

_________________
«Вся военная пропаганда, все крики, ложь и ненависть исходят от людей, которые на эту войну не пойдут !» / Джордж Оруэлл /
«Война — это,когда за интересы других,гибнут совершенно безвинные люди.» / Уинстон Черчилль /

Ytm
Нашел транзистор. Понюхал.

Зарегистрирован: Ср окт 02, 2013 15:59:28
Сообщений: 160
Откуда: Москва
Рейтинг сообщения: 0

MaksKirov

Зарегистрирован: Сб июл 12, 2014 16:43:40
Сообщений: 9
Откуда: Киров
Рейтинг сообщения: 0

Нет там ком порта

Ytm
Нашел транзистор. Понюхал.

Зарегистрирован: Ср окт 02, 2013 15:59:28
Сообщений: 160
Откуда: Москва
Рейтинг сообщения: 0

MaksKirov

Зарегистрирован: Сб июл 12, 2014 16:43:40
Сообщений: 9
Откуда: Киров
Рейтинг сообщения: 0

«нерабочие» — это скорее всего с включенным делителем на 8 ,необходимо понижать скорость для их запуска через -B20 -я это уже выше писал.

Ytm
Нашел транзистор. Понюхал.

Зарегистрирован: Ср окт 02, 2013 15:59:28
Сообщений: 160
Откуда: Москва
Рейтинг сообщения: 0

avrdude: set SCK frequency to 32000 Hz
avrdude: error: programm enable: target doesn’t answer. 1
avrdude: initialization failed, rc=-1
avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATMEGA328P is 1E 95 0F

avrdude done. Thank you.

C:arduinohardwaretoolsavrbin>avrdude -C ..etcavrdude.conf -c usbasp -b 19200 -p m328p -U flash:w:ATmegaBOOT_168_atmega328.hex -B20 -F

avrdude: set SCK frequency to 32000 Hz
avrdude: error: programm enable: target doesn’t answer. 1
avrdude: initialization failed, rc=-1
avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATMEGA328P is 1E 95 0F
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed

To disable this feature, specify the -D option.

avrdude done. Thank you.

Morroc

Карма: 49
Рейтинг сообщений: 457
Зарегистрирован: Чт фев 20, 2014 18:57:55
Сообщений: 15728
Рейтинг сообщения: 0

_________________
«Вся военная пропаганда, все крики, ложь и ненависть исходят от людей, которые на эту войну не пойдут !» / Джордж Оруэлл /
«Война — это,когда за интересы других,гибнут совершенно безвинные люди.» / Уинстон Черчилль /

MaksKirov

Зарегистрирован: Сб июл 12, 2014 16:43:40
Сообщений: 9
Откуда: Киров
Рейтинг сообщения: 0

Не обязательно не рабочие , мне как-то пришли attiny13 5 штук , и как оказалось во всех был зашит мусор в фьюзах — получалось что где-то был выключен spi .а где-то reset. Исправлял собранным для этого специально высоковольтным программатором (фьюз доктор).

Для attiny схема такого программатора очень простая -немного ног. А вот для Atmeg надо подключать ВСЕ ноги.

Morroc

Карма: 49
Рейтинг сообщений: 457
Зарегистрирован: Чт фев 20, 2014 18:57:55
Сообщений: 15728
Рейтинг сообщения: 0

Омг. интересная мысль, можно попробовать если много их.

Я себе на макетке делал, но пока пригодился всего один раз

_________________
«Вся военная пропаганда, все крики, ложь и ненависть исходят от людей, которые на эту войну не пойдут !» / Джордж Оруэлл /
«Война — это,когда за интересы других,гибнут совершенно безвинные люди.» / Уинстон Черчилль /

Ytm
Нашел транзистор. Понюхал.

Зарегистрирован: Ср окт 02, 2013 15:59:28
Сообщений: 160
Откуда: Москва
Рейтинг сообщения: 0

Morroc

Карма: 49
Рейтинг сообщений: 457
Зарегистрирован: Чт фев 20, 2014 18:57:55
Сообщений: 15728
Рейтинг сообщения: 0

Ну да, вот он на макетке и собран. По сути программатор, но вместо прошивки просто сбрасывает фьюзы мк в заводское состояние, работает автономно — ткнул мк (у меня был на другой макетке — проводами цеплял), запустил девайс, если загорелась зеленая — мк «сбросился», если красная — не получилось или неправильно подключен мк (но лучше смотреть что происходит по uart).

( только заметил, что кнопку и резистор в районе ресета куда то «унесло», вроде были )

_________________
«Вся военная пропаганда, все крики, ложь и ненависть исходят от людей, которые на эту войну не пойдут !» / Джордж Оруэлл /
«Война — это,когда за интересы других,гибнут совершенно безвинные люди.» / Уинстон Черчилль /

Ytm
Нашел транзистор. Понюхал.

Зарегистрирован: Ср окт 02, 2013 15:59:28
Сообщений: 160
Откуда: Москва
Рейтинг сообщения: 0

MaksKirov

Зарегистрирован: Сб июл 12, 2014 16:43:40
Сообщений: 9
Откуда: Киров
Рейтинг сообщения: 0

Вообще , 1кОм резисторы там больше для страховки и можно обойтись и без их..

Ytm
Нашел транзистор. Понюхал.

Зарегистрирован: Ср окт 02, 2013 15:59:28
Сообщений: 160
Откуда: Москва
Рейтинг сообщения: 0

Часовой пояс: UTC + 3 часа

Кто сейчас на форуме

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 8

Источник

Adblock
detector

USBASP programmer is widely used to upload  .HEX file on to AVR / 8051 ICs.

On Windows 10 PC you may face some driver installation problems.Check out my previous blog on how to install drivers.

USBASP – How to install driver on Windows 8 /10

While connecting USBASP to 8051 development board , take care that GND pin matches GND of both boards.

No separate power source required for development board.It can source from USB itself.

IMG_20190328_165320

Connect USBASP to PC .

Install driver from link below:

USBASP Driver :

https://protostack.com.au/download/USBasp-win-driver-x86-x64-v3.0.7.zip

Once driver is installed , under Device Manager USBASP appears.

Image 1

PROG ISP software IDE is used to upload HEX file on to 8051 IC.

Download link is below

PROG ISP :

http://exploreembedded.com/wiki/images/1/1a/Progisp1.72.rar

No installation is required.Unzip the downloaded file and double click on PROGISP application.

On top you can see two blocks ,  PRG ISP &  USBASP

PRG ISP will be greyed out if programmer is not found on not connected.

USB ASP will be greyed out if driver is not installed.

Ensure that these two blocks are not greyed out.

Image 2

Select your IC from drop down menu. 89C52 or 89S52   , select the correct part no.

Click on Erase button.

If the usbasp device is ok , the erase will be performed.

Here Im getting the infamous CHIP ENABLE Error.

Image 3

This error persists even after , Programming power  adjusted using slider & Verify Signature tick mark  removed .

CHIP ENABLE error occurs if the IC is not placed correctly on ZIF socket of development board or if the wrong Chip  is selected.

If still the problem persists , then you need to upgrade FIRMWARE of USBASP.

For this we use ARDUINO UNO in ISP mode.

IMG_20190328_170032

Connect UNO to PC & note the COM port allotted.

Open Arduino IDE .

From Tools select the board as Arduino UNO, Port as COM port allotted

Programmer is selected as ARDUINO AS ISP.

Image 4

Under File  –> Examples  –>  select  ARDUINOISP

Upload the sketch. Now Arduino is ready as ISP programmer.

Image 5

Now download the USBASP Firmware from the developers website

usbasp Firmware

https://www.fischl.de/usbasp/

Image 6

Download the .tar.gz file & unzip twice. Under bin –> firmare you can see the Atmega8 firmware file in .hex format.

Note the path where this file is saved.

To upload firmware we use AVRDUDES GUI application

Download it from link below and install it.

AVR DUDES :

http://blog.zakkemble.net/avrdudess-a-gui-for-avrdude/

Connect Arduino with USBASP as follows :

ARDUINO     USBASP

5V        —>  Vcc

Gnd      —>  Gnd

10         —> RST

11      —>  MOSI

12       –>  MISO

13       —>  SCK

Connect USB of PC to ARDUINO  ( not to usbasp)

Arduino is Master and USBASP is slave

IMG_20190328_171442

Open AVRDUDES

Select Programmer as ARDUINO

COM port as port allotted to Arduino

Baud rate 19200  ,if you try any other baud it shows time out error.

Bit clock –leave it blank

Target MCU select as ATMEGA8

Under FLASH click on …  and browse to select the firmware file  we downloaded earlier.

Fuses can be set as  Low Fuse  : 0xFF  , High Fuse : 0xE9,  select tick mark against SET FUSES.

Image 7

Now click on DETECT

I get an error saying signature 00000 , which means target is not detected.

Image 8

If you check the schematic of USBASP , a jumper JP2 is to be ON to enable self programming.

This jumper is between pins 1 & 16 (slave select pin) of USBASP IC.

u1

As my USBASP is not having this jumper I soldered a 270E resistor between pins 1  &  16.

IMG_20190328_172731

IMG_20190328_172955

Now I tried DETECT on AVRDUDES.

Target is detected & the signature of ATMEGA8 is 1E9307.

Image 10

Now on clicking PROGRAM button , the firmware is flashed successfully.

I just removed the resistor and tried uploading hex on to 8051 successfully.

Let us see the second method of upgrading firmware .

Here we use another working USBASP programmer instead of ARDUINO.

Connection is one to one

Vcc to vcc , Gnd to Gnd , MOSI toMOSI , MISO to MISO , RST to RST

IMG_20190328_182945

On target USBASP a 270 E resistor soldered between pins 1 & 16.

IMG_20190328_183000

PC is connected to  Master USBASP.

Open AVRDUDES.

Select programmer as USBASP , port as USB , Baud as 19200

Bit clock will be automatically selected as 1.5MHz

Image 12

Click on Program to see the firmware upgraded successfully.

This method is slower than Arduino method.

Ignore any SCK clock error which occurs due to un success full bit clock setting.

Image 13

VIDEO SUPPORT :

blog_image

Форум РадиоКот :: Просмотр темы — Прошивка программатора


Автор:  lols [ Чт июн 04, 2015 20:48:57 ]
Заголовок сообщения:  Прошивка программатора

Купил программатор USB ISP. Когда вставляю в комп — распознается как HID (на втором компе та же фигня).
Пытался предложить винде драйвер — отказывается. Программатор, к сожалению, в не разборном корпусе. Сталкивался ли кто-нибудь с подобной проблемой?


Автор:  BorisSPB [ Пт июн 05, 2015 09:39:36 ]
Заголовок сообщения:  Re: Прошивка программатора

Если речь идет об устройстве VID_03EB&PID_C8B4, то ему драйвер не нужен, нужна программа ProgISP1.72


Автор:  lols [ Пт июн 05, 2015 21:43:09 ]
Заголовок сообщения:  Re: Прошивка программатора

Большое спасибо ! Программа только ругается. Говорит «Chip Enable Program Error» на любые акты записи/чтения, что это может означать?


Автор:  Rtmip [ Пт июн 05, 2015 23:55:09 ]
Заголовок сообщения:  Re: Прошивка программатора

Это может означать, что не видится ваш МК. Может неверно подключили к программатору?


Автор:  lols [ Сб июн 13, 2015 14:02:13 ]
Заголовок сообщения:  Re: Прошивка программатора

Что только не делал, но программатор не видит мк (ATmega 8535). Схема подключения такая
http://radiokot.ru:5050/elecir/export.h … aMoveY=120
В чем может быть проблема?
конденсатор между землей и питанием стоит, еще пробовал с кварцем — но результат тот же.


Автор:  Rtmip [ Вс июн 14, 2015 01:21:19 ]
Заголовок сообщения:  Re: Прошивка программатора

Цитата:

.. Схема подключения такая…

Какая? Не видно. У вас есть разрисовка выходов вашего программатора?


Автор:  lols [ Вс июн 14, 2015 04:23:22 ]
Заголовок сообщения:  Re: Прошивка программатора

вот


Автор:  Rtmip [ Пн июн 15, 2015 00:57:12 ]
Заголовок сообщения:  Re: Прошивка программатора

хорошо.
При подключении программатора к компу в программе ProgISP1.72, в окошке Program State появляется
PRG ISP и USB ASP? Они выделены красным и зеленым цветом?
МК 8535 новый?


Автор:  lols [ Вт июн 16, 2015 00:19:04 ]
Заголовок сообщения:  Re: Прошивка программатора

Думаю скрин даст больше инфы.
Микроконтроллерам (2 штуки) по пол года.


Автор:  Rtmip [ Вт июн 16, 2015 01:54:08 ]
Заголовок сообщения:  Re: Прошивка программатора

Все верно, программатор опознан.
Теперь, если ваши МК были запрограммированы на внешний кварц, то подключите его.
Если неизвестно сие, то поставьте галку на «Enabled Xtal» и ползунок «Programming» поставьте в нижнее положение.
Это на всякий случай, замедление.
Затем нажмите кнопку «RD», она под названием вашего МК.
Программа попытается прочитать ID МК и сообщит о успехе или не успехе процесса.
Если не увидится МК, то попробуйте ползунок «Programming» в верхнем положении.
У ваших МК, случаем, раньше не был отключен вывод RESET и или последовательное программирование?


Автор:  Dmitry Dubrovenko [ Вт июн 16, 2015 19:41:03 ]
Заголовок сообщения:  Re: Прошивка программатора

lols писал(а):

конденсатор между землей и питанием стоит

Какого номинала?


Автор:  lols [ Чт июл 02, 2015 21:38:13 ]
Заголовок сообщения:  Re: Прошивка программатора

Купил другой мк — все работает (мега8А). Спасибо за помощь!


Автор:  lCasper [ Чт янв 21, 2016 09:11:27 ]
Заголовок сообщения:  Re: Прошивка программатора

Добрый день. Тоже «удалось» купить такую гадость. Но с ProgISP работает. А вот к AVRISP или AVRDUDE его можно как-то приладить?
Второй вопрос. По кишкам (кстати вполне разборный) это атмега 8L. Можно ли его перепрошить во что-то иное, что могло бы работать с AVRStudio?


Автор:  Rtmip [ Пн янв 25, 2016 11:47:56 ]
Заголовок сообщения:  Re: Прошивка программатора

Думаю, что можно, но надо смотреть схему того, что есть и сравнивать ее с тем во что перешивать будете.


Страница 1 из 1 Часовой пояс: UTC + 3 часа
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/

$begingroup$

I am working on avr controllers for a while, but I have problem with «progisp» avr programming software. When I buy a new micro-controller like atmega32 it can be programmed properly for a while but after some days, suddenly when I want to reprogram it, Progisp shows the error «Chip Enable Program Error». I use USB programmer. For better understanding here is an image of progisp software.

progisp software error

I have searched the internet a lot to find a solution but there wasn’t a proper and useful solution for my problem. I am sure that my micro-controllers are fine and not damaged because they work as they programmed but I am unable to reprogram them.
I really thank you if you have any solution to help me.

And here is schematic diagram and real picture of my USB programmer.

enter image description here

enter image description here

asked Aug 2, 2018 at 7:44

Linosa's user avatar

LinosaLinosa

231 silver badge5 bronze badges

$endgroup$

9

$begingroup$

I had this error before when I changed the clock fuse bits and set at external RC Oscillator, maybe you have the same problem.
use a resistor and capacitor and build an external oscillator for your clock source and reprogram your micro.maybe it is work.

answered Aug 2, 2018 at 9:31

Rashid's user avatar

RashidRashid

791 silver badge11 bronze badges

$endgroup$

1

Skip to main content

Forum for Electronics

Forum for Electronics

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals… and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

  • Digital Design and Embedded Programming

  • Microcontrollers

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Chip Enable Program Error


  • Thread starter

    Milad818


  • Start date

    Nov 17, 2010

Status
Not open for further replies.

  • #1

Newbie level 4

Joined
Apr 2, 2010
Messages
6
Helped
1
Reputation

2

Reaction score
1
Trophy points
1,283
Location

Iran

Activity points

1,327


Hi,
I’ve made a usbasp and my computer successfully read it.
I connect perfectly the 6 pins (vcc,gnd,reset,mosi,miso,sck) of programmer to the new ATMEGA8 i want to program
now when i try to erase it by ProgISP (1.72) i face with error «Chip Enable Program Error» and i’m so confused of this..
Please help me solve this problem.
Thanks.

  • #2

Getting that error message means The programmer pins are wrongly connected to the target OR the target is not powered, or You may try connecting a 4 Mhz crystal to the Xtal pins and then try programming or erasing.
Cheers

  • #3

Member level 3

Joined
Feb 10, 2005
Messages
67
Helped
7
Reputation

14

Reaction score
7
Trophy points
1,288
Activity points

399


i highly recommend you protection 100R serial resistors to mosi, miso, clk and reset.

Check once again correct connection between AVR and pony. Sometimes AVR forget its name, it means uncheck ID chip control in Pony. One of the very first function is tha pony checks ID of the programmed chip.
Also check power supply on avr side and frequency on pony side.

In the vorst case is AVR damaged. It happened, sorry.

  • #4

Newbie level 4

Joined
Apr 2, 2010
Messages
6
Helped
1
Reputation

2

Reaction score
1
Trophy points
1,283
Location

Iran

Activity points

1,327


Getting that error message means The programmer pins are wrongly connected to the target OR the target is not powered, or You may try connecting a 4 Mhz crystal to the Xtal pins and then try programming or erasing.
Cheers

Thanks dear pranam, so helpfull ! :)

———- Post added at 23:28 ———- Previous post was at 23:24 ———-

i highly recommend you protection 100R serial resistors to mosi, miso, clk and reset.

Check once again correct connection between AVR and pony. Sometimes AVR forget its name, it means uncheck ID chip control in Pony. One of the very first function is tha pony checks ID of the programmed chip.
Also check power supply on avr side and frequency on pony side.
In the vorst case is AVR damaged. It happened, sorry.

And also thank you dear bohumilfulin,
But unfortunately i did not get the point, would you please tell me more about this description !?

  • #5

Hi,
I’ve made a usbasp and my computer successfully read it.
I connect perfectly the 6 pins (vcc,gnd,reset,mosi,miso,sck) of programmer to the new ATMEGA8 i want to program
now when i try to erase it by ProgISP (1.72) i face with error «Chip Enable Program Error» and i’m so confused of this..
Please help me solve this problem.
Thanks.

You will have this error when
1. The connections are wrong
2. the serial programming is disabled in AVR Fusebit
3. oscillator is not available as per fusebit
and
4. Your chip is damaged

Check for the above

  • #6

Newbie level 4

Joined
Apr 2, 2010
Messages
6
Helped
1
Reputation

2

Reaction score
1
Trophy points
1,283
Location

Iran

Activity points

1,327


You will have this error when
1. The connections are wrong
2. the serial programming is disabled in AVR Fusebit
3. oscillator is not available as per fusebit
and
4. Your chip is damaged

Check for the above

Thank u microcon555. Then u think it is possible to change its fusebits by a 4Mhz crystal to set them as default !? (If it was not damaged)
How can I check for num 2 & 3 ???!!!

Last edited: Nov 22, 2010

  • #7

I’m also using AVRasp but with AVR8 Burn-O-Mat avrdude GUI which is a front end for avrdude.
Ponyprog should have a function to read the chip type, if this succeeds then the connection is ok, then you can try to read the fuses of the chip and there you can see if it is locked or not.
If it is locked (or if you have disabled reset pin which is needed for isp) i think that you can only reprogram it using a HV parallel programmer.
Also check that you have set the correct type of microcontroller in ponyprog.
If the chip is new then it is preset with the internal clock, you don’t need a crystal, unless you have already changed the fuses.

Alex

  • #8

Newbie level 4

Joined
Apr 2, 2010
Messages
6
Helped
1
Reputation

2

Reaction score
1
Trophy points
1,283
Location

Iran

Activity points

1,327


I’m also using AVRasp but with AVR8 Burn-O-Mat avrdude GUI which is a front end for avrdude.
Ponyprog should have a function to read the chip type, if this succeeds then the connection is ok, then you can try to read the fuses of the chip and there you can see if it is locked or not.
If it is locked (or if you have disabled reset pin which is needed for isp) i think that you can only reprogram it using a HV parallel programmer.
Also check that you have set the correct type of microcontroller in ponyprog.
If the chip is new then it is preset with the internal clock, you don’t need a crystal, unless you have already changed the fuses.

Alex

Hi Alex,
I think my friend has changed it’s fusebits and now i try also to erase it by using a 4Mhz or 8Mhz crystal, but it doesn’t work again .. how much percent it would have been corrupted.. !?!?!

———- Post added at 08:02 ———- Previous post was at 08:00 ———-

  • #9

Before you can erase the chip you have to be able to read its fuses, did you check if the chip is recognized?
Were you able to read the fuse bits, if so then post them to see what have been changed and what can you do.

Alex

  • #10

Newbie level 4

Joined
Apr 2, 2010
Messages
6
Helped
1
Reputation

2

Reaction score
1
Trophy points
1,283
Location

Iran

Activity points

1,327


Before you can erase the chip you have to be able to read its fuses, did you check if the chip is recognized?
Were you able to read the fuse bits, if so then post them to see what have been changed and what can you do.

Alex

Yes I tried it, But when I click on read to read the fusebits, it again shows the same error » Chip Enable Program Error » !!!!
I’m sure that the micro has some problem and there is no wrong with programmer because I have checked it with some other microcontrollers
But I really can not assure that this mega8 is corrupted or there is something wrong with fusebits and how should I get rid of it… :(((((

Last edited: Nov 24, 2010

  • #11

What i can think is

1) reset is disabled
2) the clock setting is set to a crystal (since you tried with 8MHz maybe it is set to 32.768KHz)
3) ISP programming is disabled
4) programmer problem

In cases 1 and 3 you can use the HV parallel programmer ELM — AVR programmer (at the end of the page)
Or something like this (original is Polish, this is translated using google) **broken link removed**

Alex

  • #12

Newbie level 4

Joined
Apr 2, 2010
Messages
6
Helped
1
Reputation

2

Reaction score
1
Trophy points
1,283
Location

Iran

Activity points

1,327


thank u all … I found the problem, it was set on external crystal !
again thank u all dear friends for helps :x:X:x

  • #13

Newbie level 1

Joined
Apr 14, 2011
Messages
1
Helped
0
Reputation

0

Reaction score
0
Trophy points
1,281
Activity points

1,285


thank u all … I found the problem, it was set on external crystal !
again thank u all dear friends for helps :x:X:x

I have also purchased zf-007 programmer and trying to program using progisp(ver1.72), and also facing same problem of «chip enable program error»…..i have tried using crytal osc. but same error…kindly help…

  • #14

Junior Member level 1

Joined
Nov 25, 2012
Messages
15
Helped
0
Reputation

0

Reaction score
0
Trophy points
1,281
Activity points

1,366


my AT89S52 also face the same problem. «chip enable program error» anybody can help?

— — — Updated — — —

well, I just fixed it. it caused by my microcontroller pin is connected directly to ground. so I just disconnect it and finish..

  • #15

Member level 1

Joined
Jan 23, 2013
Messages
36
Helped
2
Reputation

4

Reaction score
2
Trophy points
1,288
Location

India

Activity points

1,533


hi
I m using progisp1.72 ans I also got the same error i.e. «Chip enable program error» anybody help me. I have cheack my all connection of MCU I made the VTG of programer to VCC of atmega8 not with AVCC . the pin number 3 remains with no connection. and remaning pin are correct according to make the connection. But I donot know how it is happening. I have also try up to 8mhz. I donot know my chip has been got damaged or not. How can I cheack it. thanks in advance.

  • #16

Newbie level 1

Joined
Nov 10, 2010
Messages
1
Helped
0
Reputation

0

Reaction score
0
Trophy points
1,281
Activity points

1,283


my AT89S52 also face the same problem. «chip enable program error» anybody can help?

well, I just fixed it. it caused by my microcontroller pin is connected directly to ground. so I just disconnect it and finish..

And what mcu pin was connected directly to GND?

  • #17

Newbie level 2

Joined
Jul 25, 2013
Messages
2
Helped
0
Reputation

0

Reaction score
0
Trophy points
1
Activity points

18


I also got this error and solved by just connecting my XTAL(which ) while programming.

  • #18

Newbie level 3

Joined
Nov 13, 2013
Messages
4
Helped
1
Reputation

2

Reaction score
1
Trophy points
3
Activity points

22


hi
I m using progisp1.72 ans I also got the same error i.e. «Chip enable program error» anybody help me. I have cheack my all connection of MCU I made the VTG of programer to VCC of atmega8 not with AVCC . the pin number 3 remains with no connection. and remaning pin are correct according to make the connection. But I donot know how it is happening. I have also try up to 8mhz. I donot know my chip has been got damaged or not. How can I cheack it. thanks in advance.

You just disconnect the reset circuit from the 9th pin and try it. It will work.

— — — Updated — — —

I am getting flash verify error in progisp while flashing the code into at89s52. Please tel me the possible solution.

Status
Not open for further replies.

Similar threads

  • Digital Design and Embedded Programming

  • Microcontrollers

  • This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.

Понравилась статья? Поделить с друзьями:
  • Audiodg exe ошибка
  • Audioclip error unsupported file format
  • Audio system was not initialized correctly error code 0 mount and blade
  • Audio setup issue mme device internal error
  • Audio setup error your default output device