<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: AVReAl &#8211; ISP programmer for AVR</title>
	<atom:link href="http://real.kiev.ua/avreal/feed/langswitch_lang/en/" rel="self" type="application/rss+xml" />
	<link>http://real.kiev.ua</link>
	<description>.  ..  ..o .oO .oO       failed</description>
	<lastBuildDate>Wed, 01 Feb 2012 07:04:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: ReAl</title>
		<link>http://real.kiev.ua/avreal/comment-page-2/#comment-56182</link>
		<dc:creator>ReAl</dc:creator>
		<pubDate>Wed, 18 Jan 2012 20:54:56 +0000</pubDate>
		<guid isPermaLink="false">http://real.kiev.ua/?page_id=16#comment-56182</guid>
		<description>Где-то вблизи планов болтается поддержка протокола STK500v2. Для плат с AVR910 в имени вроде бы бывают альтернативные прошивки с поддержкой этого протокола.

Сожалею, но болтается с довольно низким приоритетом.</description>
		<content:encoded><![CDATA[<p>Где-то вблизи планов болтается поддержка протокола STK500v2. Для плат с AVR910 в имени вроде бы бывают альтернативные прошивки с поддержкой этого протокола.</p>
<p>Сожалею, но болтается с довольно низким приоритетом.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stenogriz</title>
		<link>http://real.kiev.ua/avreal/comment-page-2/#comment-56056</link>
		<dc:creator>stenogriz</dc:creator>
		<pubDate>Wed, 18 Jan 2012 14:12:28 +0000</pubDate>
		<guid isPermaLink="false">http://real.kiev.ua/?page_id=16#comment-56056</guid>
		<description>Здравствуйте!
Планируется ли добавление поддержки программаторов AVR основанных на soft-USB (например USBtinyISP, USBasp) и COM (например AVR910)? 
С уважением,
Сергей.</description>
		<content:encoded><![CDATA[<p>Здравствуйте!<br />
Планируется ли добавление поддержки программаторов AVR основанных на soft-USB (например USBtinyISP, USBasp) и COM (например AVR910)?<br />
С уважением,<br />
Сергей.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ReAl</title>
		<link>http://real.kiev.ua/avreal/comment-page-2/#comment-49561</link>
		<dc:creator>ReAl</dc:creator>
		<pubDate>Tue, 27 Dec 2011 17:10:27 +0000</pubDate>
		<guid isPermaLink="false">http://real.kiev.ua/?page_id=16#comment-49561</guid>
		<description>Увы, AVReAl не работает c I2C EEPROM.
У меня не возникало потребности программировать такую память «автономно», всю работу делает микроконтроллер в системе.</description>
		<content:encoded><![CDATA[<p>Увы, AVReAl не работает c I2C EEPROM.<br />
У меня не возникало потребности программировать такую память «автономно», всю работу делает микроконтроллер в системе.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ReAl</title>
		<link>http://real.kiev.ua/avreal/comment-page-2/#comment-49559</link>
		<dc:creator>ReAl</dc:creator>
		<pubDate>Tue, 27 Dec 2011 17:07:57 +0000</pubDate>
		<guid isPermaLink="false">http://real.kiev.ua/?page_id=16#comment-49559</guid>
		<description>«Радиотехника — наука о контактах. Два возможных класса неисправностей — нет контакта там, где он должен быть и есть контакт там, где его не должно быть» :-D</description>
		<content:encoded><![CDATA[<p>«Радиотехника — наука о контактах. Два возможных класса неисправностей — нет контакта там, где он должен быть и есть контакт там, где его не должно быть» <img src='http://real.kiev.ua/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mika222</title>
		<link>http://real.kiev.ua/avreal/comment-page-2/#comment-49472</link>
		<dc:creator>mika222</dc:creator>
		<pubDate>Tue, 27 Dec 2011 06:07:40 +0000</pubDate>
		<guid isPermaLink="false">http://real.kiev.ua/?page_id=16#comment-49472</guid>
		<description>подскажите пж, как можно прошивать банальную епром (24с04 например) через адаптер на FT232. никогда с прошивкой МК не сталкивался, а сам адаптер есть в наличии. хотелось бы задействовать.</description>
		<content:encoded><![CDATA[<p>подскажите пж, как можно прошивать банальную епром (24с04 например) через адаптер на FT232. никогда с прошивкой МК не сталкивался, а сам адаптер есть в наличии. хотелось бы задействовать.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nipochomus</title>
		<link>http://real.kiev.ua/avreal/comment-page-2/#comment-48951</link>
		<dc:creator>Nipochomus</dc:creator>
		<pubDate>Sat, 24 Dec 2011 08:08:18 +0000</pubDate>
		<guid isPermaLink="false">http://real.kiev.ua/?page_id=16#comment-48951</guid>
		<description>Проблема была в монтаже кабеля :-D
Теперь всё работает. Спасибо.</description>
		<content:encoded><![CDATA[<p>Проблема была в монтаже кабеля <img src='http://real.kiev.ua/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /><br />
Теперь всё работает. Спасибо.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nipochomus</title>
		<link>http://real.kiev.ua/avreal/comment-page-2/#comment-48811</link>
		<dc:creator>Nipochomus</dc:creator>
		<pubDate>Fri, 23 Dec 2011 08:56:45 +0000</pubDate>
		<guid isPermaLink="false">http://real.kiev.ua/?page_id=16#comment-48811</guid>
		<description>Извините, забыл про новую версию.  
Программирование с инвертором: 


D:\avr\avreal&gt;d:\avr\avreal\avreal32-1.28r9.exe +MEGA128 -aft2232:reset=~adbus3
&quot;-pd=Dual RS232 A&quot; -%  -r -ddinam.hex

avreal/WIN32  -  AVR controllers programmer by Redchuk Alexandr
v1.28r9 (Dec 20 2011 14:03:41)  http://real.kiev.ua/avreal
bug-reports, suggestions and so on mail to avreal@real.kiev.ua
Command:
  +MEGA128 -aft2232:reset=~adbus3 &quot;-pd=Dual RS232 A&quot; -% -r -ddinam.hex
        % &#039;ftd2xx.dll&#039; successfully loaded, version 3.2.4
        % FTDI driver version 2.8.14
        % FT2232 MPSSE SPI adapter created, SCK frequency 188kHz
        % Reset
        % PgmOn reply  FF FF FF FF
        % Try to resync by reset pulse  % PgmOn reply  FF FF FF FF
        % Try 1 to resync by SCK pulse  % PgmOn reply  FF FF FF FF
        % Try 2 to resync by SCK pulse  % PgmOn reply  FF FF FF FF
        % Try 3 to resync by SCK pulse  % PgmOn reply  FF FF FF FF
        % Try 4 to resync by SCK pulse  % PgmOn reply  FF FF FF FF
        % Try 5 to resync by SCK pulse  % PgmOn reply  FF FF FF FF
        % Try 6 to resync by SCK pulse  % PgmOn reply  FF FF FF FF
        % Try 7 to resync by SCK pulse  % PgmOn reply  FF FF FF FF
        % Try 8 to resync by SCK pulse  % PgmOn reply  FF FF FF FF
        % Try 9 to resync by SCK pulse  % PgmOn reply  FF FF FF FF
        % Try 10 to resync by SCK pulse % PgmOn reply  FF FF FF FF
        % Try 11 to resync by SCK pulse % PgmOn reply  FF FF FF FF
        % Try 12 to resync by SCK pulse % PgmOn reply  FF FF FF FF
        % Try 13 to resync by SCK pulse % PgmOn reply  FF FF FF FF
        % Try 14 to resync by SCK pulse % PgmOn reply  FF FF FF FF
        % Try 15 to resync by SCK pulse % PgmOn reply  FF FF FF FF
        % Try 16 to resync by SCK pulse % PgmOn reply  FF FF FF FF
        % Try 17 to resync by SCK pulse % PgmOn reply  FF FF FF FF
        % Try 18 to resync by SCK pulse % PgmOn reply  FF FF FF FF
        % Try 19 to resync by SCK pulse % PgmOn reply  FF FF FF FF
        % Try 20 to resync by SCK pulse % PgmOn reply  FF FF FF FF
        % Try 21 to resync by SCK pulse % PgmOn reply  FF FF FF FF
        % Try 22 to resync by SCK pulse % PgmOn reply  FF FF FF FF
        % Try 23 to resync by SCK pulse % PgmOn reply  FF FF FF FF
        % Try 24 to resync by SCK pulse % PgmOn reply  FF FF FF FF
        % Try 25 to resync by SCK pulse % PgmOn reply  FF FF FF FF
        % Try 26 to resync by SCK pulse % PgmOn reply  FF FF FF FF
        % Try 27 to resync by SCK pulse % PgmOn reply  FF FF FF FF
        % Try 28 to resync by SCK pulse % PgmOn reply  FF FF FF FF
        % Try 29 to resync by SCK pulse % PgmOn reply  FF FF FF FF
        % Try 30 to resync by SCK pulse % PgmOn reply  FF FF FF FF
        % Try 31 to resync by SCK pulse % PgmOn reply  FF FF FF FF
        % Try 32 to resync by SCK pulse % PgmOn reply  FF FF FF FF
Can&#039;t resync

Reset pin released

D:\avr\avreal&gt;pause=null
Для продолжения нажмите любую клавишу . . .


Без инвертора: 

D:\avr\avreal&gt;d:\avr\avreal\avreal32-1.28r9.exe +MEGA128 -aft2232:reset=adbus3 &quot;
-pd=Dual RS232 A&quot; -%  -r -ddinam.hex

avreal/WIN32  -  AVR controllers programmer by Redchuk Alexandr
v1.28r9 (Dec 20 2011 14:03:41)  http://real.kiev.ua/avreal
bug-reports, suggestions and so on mail to avreal@real.kiev.ua
Command:
  +MEGA128 -aft2232:reset=adbus3 &quot;-pd=Dual RS232 A&quot; -% -r -ddinam.hex
        % &#039;ftd2xx.dll&#039; successfully loaded, version 3.2.4
        % FTDI driver version 2.8.14
        % FT2232 MPSSE SPI adapter created, SCK frequency 188kHz
        % Reset
        % PgmOn reply  FF FF 53 00
        % GetID reply  00 30 00 1E
        % GetID reply  00 30 00 97
        % GetID reply  00 30 00 02
        % Read ID: 0x1E9702
Device connected, mega128&#124;mega128A detected
        % Read Lock     command 58 00 00 00,  reply 00 58 00 FF
Chip not locked
        % Read Osccal   command 38 00 00 00,  reply 00 38 00 B5
        % Read Osccal   command 38 00 01 00,  reply 00 38 00 B5
        % Read Osccal   command 38 00 02 00,  reply 00 38 00 AF
        % Read Osccal   command 38 00 03 00,  reply 00 38 00 AF
        % Read Fuses    command 50 00 00 00,  reply 00 50 00 BF
        % Read Fuses    command 58 00 00 00,  reply 00 58 00 FF
        % Read Fuses    command 58 08 00 00,  reply 00 58 08 CF
        % Read Fuses    command 50 08 00 00,  reply 00 50 08 FD
Fuses
  OSCCALs       = B5 B5 AF AF
_LOCK = 0xFF
  BLB1          = 3
  BLB0          = 3
_LOW = 0xBF
  BODLEVEL      = 1
  BODEN         = 0
  SUT           = 3
  CKSEL         = F
_HIGH = 0xCF
  OCDEN         = 1
  JTAGEN        = 1
  CKOPT         = 0
  EESAVE        = 1
  BOOTSZ        = 3
  BOOTRST       = 1
_EXT = 0xFD
  M103C         = 0
  WDTON         = 1
Reading DATA memory
................................................................................
................................................ done (0.82s)
Total time 1.05s
Reset pin released

D:\avr\avreal&gt;pause=null
Для продолжения нажмите любую клавишу . . .</description>
		<content:encoded><![CDATA[<p>Извините, забыл про новую версию.<br />
Программирование с инвертором: </p>
<p>D:\avr\avreal&gt;d:\avr\avreal\avreal32-1.28r9.exe +MEGA128 -aft2232:reset=~adbus3<br />
&#8220;-pd=Dual RS232 A&#8221; -%  -r -ddinam.hex</p>
<p>avreal/WIN32  &#8211;  AVR controllers programmer by Redchuk Alexandr<br />
v1.28r9 (Dec 20 2011 14:03:41)  <a href="http://real.kiev.ua/avreal" rel="nofollow">http://real.kiev.ua/avreal</a><br />
bug-reports, suggestions and so on mail to <a href="mailto:avreal@real.kiev.ua">avreal@real.kiev.ua</a><br />
Command:<br />
  +MEGA128 -aft2232:reset=~adbus3 &#8220;-pd=Dual RS232 A&#8221; -% -r -ddinam.hex<br />
        % &#8216;ftd2xx.dll&#8217; successfully loaded, version 3.2.4<br />
        % FTDI driver version 2.8.14<br />
        % FT2232 MPSSE SPI adapter created, SCK frequency 188kHz<br />
        % Reset<br />
        % PgmOn reply  FF FF FF FF<br />
        % Try to resync by reset pulse  % PgmOn reply  FF FF FF FF<br />
        % Try 1 to resync by SCK pulse  % PgmOn reply  FF FF FF FF<br />
        % Try 2 to resync by SCK pulse  % PgmOn reply  FF FF FF FF<br />
        % Try 3 to resync by SCK pulse  % PgmOn reply  FF FF FF FF<br />
        % Try 4 to resync by SCK pulse  % PgmOn reply  FF FF FF FF<br />
        % Try 5 to resync by SCK pulse  % PgmOn reply  FF FF FF FF<br />
        % Try 6 to resync by SCK pulse  % PgmOn reply  FF FF FF FF<br />
        % Try 7 to resync by SCK pulse  % PgmOn reply  FF FF FF FF<br />
        % Try 8 to resync by SCK pulse  % PgmOn reply  FF FF FF FF<br />
        % Try 9 to resync by SCK pulse  % PgmOn reply  FF FF FF FF<br />
        % Try 10 to resync by SCK pulse % PgmOn reply  FF FF FF FF<br />
        % Try 11 to resync by SCK pulse % PgmOn reply  FF FF FF FF<br />
        % Try 12 to resync by SCK pulse % PgmOn reply  FF FF FF FF<br />
        % Try 13 to resync by SCK pulse % PgmOn reply  FF FF FF FF<br />
        % Try 14 to resync by SCK pulse % PgmOn reply  FF FF FF FF<br />
        % Try 15 to resync by SCK pulse % PgmOn reply  FF FF FF FF<br />
        % Try 16 to resync by SCK pulse % PgmOn reply  FF FF FF FF<br />
        % Try 17 to resync by SCK pulse % PgmOn reply  FF FF FF FF<br />
        % Try 18 to resync by SCK pulse % PgmOn reply  FF FF FF FF<br />
        % Try 19 to resync by SCK pulse % PgmOn reply  FF FF FF FF<br />
        % Try 20 to resync by SCK pulse % PgmOn reply  FF FF FF FF<br />
        % Try 21 to resync by SCK pulse % PgmOn reply  FF FF FF FF<br />
        % Try 22 to resync by SCK pulse % PgmOn reply  FF FF FF FF<br />
        % Try 23 to resync by SCK pulse % PgmOn reply  FF FF FF FF<br />
        % Try 24 to resync by SCK pulse % PgmOn reply  FF FF FF FF<br />
        % Try 25 to resync by SCK pulse % PgmOn reply  FF FF FF FF<br />
        % Try 26 to resync by SCK pulse % PgmOn reply  FF FF FF FF<br />
        % Try 27 to resync by SCK pulse % PgmOn reply  FF FF FF FF<br />
        % Try 28 to resync by SCK pulse % PgmOn reply  FF FF FF FF<br />
        % Try 29 to resync by SCK pulse % PgmOn reply  FF FF FF FF<br />
        % Try 30 to resync by SCK pulse % PgmOn reply  FF FF FF FF<br />
        % Try 31 to resync by SCK pulse % PgmOn reply  FF FF FF FF<br />
        % Try 32 to resync by SCK pulse % PgmOn reply  FF FF FF FF<br />
Can&#8217;t resync</p>
<p>Reset pin released</p>
<p>D:\avr\avreal&gt;pause=null<br />
Для продолжения нажмите любую клавишу . . .</p>
<p>Без инвертора: </p>
<p>D:\avr\avreal&gt;d:\avr\avreal\avreal32-1.28r9.exe +MEGA128 -aft2232:reset=adbus3 &#8221;<br />
-pd=Dual RS232 A&#8221; -%  -r -ddinam.hex</p>
<p>avreal/WIN32  &#8211;  AVR controllers programmer by Redchuk Alexandr<br />
v1.28r9 (Dec 20 2011 14:03:41)  <a href="http://real.kiev.ua/avreal" rel="nofollow">http://real.kiev.ua/avreal</a><br />
bug-reports, suggestions and so on mail to <a href="mailto:avreal@real.kiev.ua">avreal@real.kiev.ua</a><br />
Command:<br />
  +MEGA128 -aft2232:reset=adbus3 &#8220;-pd=Dual RS232 A&#8221; -% -r -ddinam.hex<br />
        % &#8216;ftd2xx.dll&#8217; successfully loaded, version 3.2.4<br />
        % FTDI driver version 2.8.14<br />
        % FT2232 MPSSE SPI adapter created, SCK frequency 188kHz<br />
        % Reset<br />
        % PgmOn reply  FF FF 53 00<br />
        % GetID reply  00 30 00 1E<br />
        % GetID reply  00 30 00 97<br />
        % GetID reply  00 30 00 02<br />
        % Read ID: 0x1E9702<br />
Device connected, mega128|mega128A detected<br />
        % Read Lock     command 58 00 00 00,  reply 00 58 00 FF<br />
Chip not locked<br />
        % Read Osccal   command 38 00 00 00,  reply 00 38 00 B5<br />
        % Read Osccal   command 38 00 01 00,  reply 00 38 00 B5<br />
        % Read Osccal   command 38 00 02 00,  reply 00 38 00 AF<br />
        % Read Osccal   command 38 00 03 00,  reply 00 38 00 AF<br />
        % Read Fuses    command 50 00 00 00,  reply 00 50 00 BF<br />
        % Read Fuses    command 58 00 00 00,  reply 00 58 00 FF<br />
        % Read Fuses    command 58 08 00 00,  reply 00 58 08 CF<br />
        % Read Fuses    command 50 08 00 00,  reply 00 50 08 FD<br />
Fuses<br />
  OSCCALs       = B5 B5 AF AF<br />
_LOCK = 0xFF<br />
  BLB1          = 3<br />
  BLB0          = 3<br />
_LOW = 0xBF<br />
  BODLEVEL      = 1<br />
  BODEN         = 0<br />
  SUT           = 3<br />
  CKSEL         = F<br />
_HIGH = 0xCF<br />
  OCDEN         = 1<br />
  JTAGEN        = 1<br />
  CKOPT         = 0<br />
  EESAVE        = 1<br />
  BOOTSZ        = 3<br />
  BOOTRST       = 1<br />
_EXT = 0xFD<br />
  M103C         = 0<br />
  WDTON         = 1<br />
Reading DATA memory<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230; done (0.82s)<br />
Total time 1.05s<br />
Reset pin released</p>
<p>D:\avr\avreal&gt;pause=null<br />
Для продолжения нажмите любую клавишу . . .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nipochomus</title>
		<link>http://real.kiev.ua/avreal/comment-page-2/#comment-48809</link>
		<dc:creator>Nipochomus</dc:creator>
		<pubDate>Fri, 23 Dec 2011 08:37:49 +0000</pubDate>
		<guid isPermaLink="false">http://real.kiev.ua/?page_id=16#comment-48809</guid>
		<description>Увы, проблема остается :(
Хотя микроконтроллер точно уходит в сброшенное состояние.</description>
		<content:encoded><![CDATA[<p>Увы, проблема остается <img src='http://real.kiev.ua/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
Хотя микроконтроллер точно уходит в сброшенное состояние.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ReAl</title>
		<link>http://real.kiev.ua/avreal/comment-page-2/#comment-48369</link>
		<dc:creator>ReAl</dc:creator>
		<pubDate>Tue, 20 Dec 2011 10:22:59 +0000</pubDate>
		<guid isPermaLink="false">http://real.kiev.ua/?page_id=16#comment-48369</guid>
		<description>Я отреагировал на слово «статическое».
Если между выводом adbus3 микросхемы FT2232 и входом микроконтроллера стоит инвертор, то так и нужно писать — «на вход RESET подан проинвертированный выход adbus3»:
[cc width=&quot;auto&quot;]avreal +MEGA128 -aft2232:reset=~adbus3 “-pd=Dual RS232 A” -% -r -dinam.hex[/cc]

Что касается программирования при постоянно «задавленном» сбросе, без управления им от программатора, то успех зависит от начального состояния линии SCK и способа пересинхронизации. Для практически всех AVR у нынешнего avreal может ничего и не получиться по той причине, что он, в отличие от атмеловских же программаторов, &lt;em&gt;строго следует документации от Atmel&lt;/em&gt;.
Я как раз сейчас готовлю текст на тему пересинхронизации, собираюсь сегодня опубликовать (а завтра поменять поведение avreal :-) ).

upd:
&lt;a href=&quot;/?p=1583&quot; rel=&quot;nofollow&quot;&gt;О синхронизации программатора с микроконтроллером.&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Я отреагировал на слово «статическое».<br />
Если между выводом adbus3 микросхемы FT2232 и входом микроконтроллера стоит инвертор, то так и нужно писать — «на вход RESET подан проинвертированный выход adbus3»:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">avreal +MEGA128 -aft2232:reset=~adbus3 “-pd=Dual RS232 A” -% -r -dinam.hex</div></div>
<p>Что касается программирования при постоянно «задавленном» сбросе, без управления им от программатора, то успех зависит от начального состояния линии SCK и способа пересинхронизации. Для практически всех AVR у нынешнего avreal может ничего и не получиться по той причине, что он, в отличие от атмеловских же программаторов, <em>строго следует документации от Atmel</em>.<br />
Я как раз сейчас готовлю текст на тему пересинхронизации, собираюсь сегодня опубликовать (а завтра поменять поведение avreal <img src='http://real.kiev.ua/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  ).</p>
<p>upd:<br />
<a href="/?p=1583" rel="nofollow">О синхронизации программатора с микроконтроллером.</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nipochomus</title>
		<link>http://real.kiev.ua/avreal/comment-page-2/#comment-48362</link>
		<dc:creator>Nipochomus</dc:creator>
		<pubDate>Tue, 20 Dec 2011 08:25:07 +0000</pubDate>
		<guid isPermaLink="false">http://real.kiev.ua/?page_id=16#comment-48362</guid>
		<description>Извините, может я не так выразился микроконтроллер сбрасывается логической 1 (между программатором и контроллером стоит инвертор). Посмотрите, пожалуйста несколько отчетов. 

D:\avr\avreal&gt;d:\avr\avreal\avreal.exe +MEGA128 &quot;-pd=Dual RS232 A&quot; -%  -aft2232:
SET=~adbus3: RESET=adbus4 -r -dinam.hex

avreal/WIN32  -  AVR controllers programmer by Redchuk Alexandr
v1.28r8 (Aug 13 2011 12:11:23)  http://real.kiev.ua/avreal
bug-reports, suggestions and so on mail to avreal@real.kiev.ua
Command:
  +MEGA128 &quot;-pd=Dual RS232 A&quot; -% -aft2232:SET=~adbus3: RESET=adbus4 -r -dinam.hex
        % &#039;ftd2xx.dll&#039; successfully loaded, version 3.2.4
        % FTDI driver version 2.8.14
        % FT2232 MPSSE SPI adapter created, SCK frequency 188kHz
        % Reset
        % PgmOn reply  FF FF FF FF
        % Try 1 to resync by reset pulse        % PgmOn reply  FF FF FF FF
        % Try 2 to resync by reset pulse        % PgmOn reply  FF FF FF FF
        % Try 3 to resync by reset pulse        % PgmOn reply  FF FF FF FF
        % Try 4 to resync by reset pulse        % PgmOn reply  FF FF FF FF
Can&#039;t resync
Reset pin released

Команда, которая по аналогии должна устанавливать 1 на выходе adbus3 (reset МК), приводит к такой же ошибке.
D:\avr\avreal&gt;d:\avr\avreal\avreal.exe +MEGA128 &quot;-pd=Dual RS232 A&quot; -%  -aft2232:
SET=adbus3: RESET=adbus4 -r -dinam.hex

Однако, если переставить тот же микроконтроллер в плату без инвертора на RESET, он отлично читается как с конфигураций -aft2232:SET=adbus3, так и -aft2232:SET=~adbus3
[cc width=&quot;auto&quot;]
Command:
  +MEGA128 &quot;-pd=Dual RS232 A&quot; -% -aft2232:SET=adbus3: RESET=adbus4 -r -dinam.hex

        % &#039;ftd2xx.dll&#039; successfully loaded, version 3.2.4
        % FTDI driver version 2.8.14
        % FT2232 MPSSE SPI adapter created, SCK frequency 188kHz
        % Reset
        % PgmOn reply  FF FF 53 00
        % Synchronised after 1 try
        % GetID reply  00 30 00 1E
        % GetID reply  00 30 00 97
        % GetID reply  00 30 00 02
        % Read ID: 0x1E9702
Device connected, mega128&#124;mega128A detected
        % Read Lock     command 58 00 00 00,  reply 00 58 00 FF
Chip not locked
        % Read Osccal   command 38 00 00 00,  reply 00 38 00 B5
        % Read Osccal   command 38 00 01 00,  reply 00 38 00 B5
        % Read Osccal   command 38 00 02 00,  reply 00 38 00 AF
        % Read Osccal   command 38 00 03 00,  reply 00 38 00 AF
        % Read Fuses    command 50 00 00 00,  reply 00 50 00 BF
        % Read Fuses    command 58 00 00 00,  reply 00 58 00 FF
        % Read Fuses    command 58 08 00 00,  reply 00 58 08 CF
        % Read Fuses    command 50 08 00 00,  reply 00 50 08 FD
Fuses
  OSCCALs       = B5 B5 AF AF
_LOCK = 0xFF
  BLB1          = 3
  BLB0          = 3
_LOW = 0xBF
  BODLEVEL      = 1
  BODEN         = 0
  SUT           = 3
  CKSEL         = F
_HIGH = 0xCF
  OCDEN         = 1
  JTAGEN        = 1
  CKOPT         = 0
  EESAVE        = 1
  BOOTSZ        = 3
  BOOTRST       = 1
_EXT = 0xFD
  M103C         = 0
  WDTON         = 1
Reading CODE memory
................................................................................
................................................................................
................................................................................
................ done (23.4s)
Reading DATA memory
................................................................................
................................................ done (0.82s)
Total time 24.5s
Reset pin released
[/cc]
И &quot;нормальный&quot; лог чтения без инвертора. 
[cc width=&quot;auto&quot;]
Command:
  +MEGA128 &quot;-pd=Dual RS232 A&quot; -% -aft2232 -r -dinam.hex
        % &#039;ftd2xx.dll&#039; successfully loaded, version 3.2.4
        % FTDI driver version 2.8.14
        % FT2232 MPSSE SPI adapter created, SCK frequency 188kHz
        % Reset
        % PgmOn reply  FF FF 53 00
        % Synchronised after 1 try
        % GetID reply  00 30 00 1E
        % GetID reply  00 30 00 97
        % GetID reply  00 30 00 02
        % Read ID: 0x1E9702
Device connected, mega128&#124;mega128A detected
        % Read Lock     command 58 00 00 00,  reply 00 58 00 FF
Chip not locked
        % Read Osccal   command 38 00 00 00,  reply 00 38 00 B5
        % Read Osccal   command 38 00 01 00,  reply 00 38 00 B5
        % Read Osccal   command 38 00 02 00,  reply 00 38 00 AF
        % Read Osccal   command 38 00 03 00,  reply 00 38 00 AF
        % Read Fuses    command 50 00 00 00,  reply 00 50 00 BF
        % Read Fuses    command 58 00 00 00,  reply 00 58 00 FF
        % Read Fuses    command 58 08 00 00,  reply 00 58 08 CF
        % Read Fuses    command 50 08 00 00,  reply 00 50 08 FD
Fuses
  OSCCALs       = B5 B5 AF AF
_LOCK = 0xFF
  BLB1          = 3
  BLB0          = 3
_LOW = 0xBF
  BODLEVEL      = 1
  BODEN         = 0
  SUT           = 3
  CKSEL         = F
_HIGH = 0xCF
  OCDEN         = 1
  JTAGEN        = 1
  CKOPT         = 0
  EESAVE        = 1
  BOOTSZ        = 3
  BOOTRST       = 1
_EXT = 0xFD
  M103C         = 0
  WDTON         = 1
Reading DATA memory
................................................................................
................................................ done (0.82s)
Total time 1.14s
Reset pin released
[/cc]
Инвертор проверял, если на вход подать высокий уровень, то микроконтроллер уйдет в состояние сброса. В связи с этим появился ещё один вопрос. Можно ли запрограммировать МК, когда при подключении программатора он сброшен? Т.е. нет нужды программно сбрасывать контроллер, запуск программы будет, только при отключенном программатора. 

Заранее благодарен.</description>
		<content:encoded><![CDATA[<p>Извините, может я не так выразился микроконтроллер сбрасывается логической 1 (между программатором и контроллером стоит инвертор). Посмотрите, пожалуйста несколько отчетов. </p>
<p>D:\avr\avreal&gt;d:\avr\avreal\avreal.exe +MEGA128 &#8220;-pd=Dual RS232 A&#8221; -%  -aft2232:<br />
SET=~adbus3: RESET=adbus4 -r -dinam.hex</p>
<p>avreal/WIN32  &#8211;  AVR controllers programmer by Redchuk Alexandr<br />
v1.28r8 (Aug 13 2011 12:11:23)  <a href="http://real.kiev.ua/avreal" rel="nofollow">http://real.kiev.ua/avreal</a><br />
bug-reports, suggestions and so on mail to <a href="mailto:avreal@real.kiev.ua">avreal@real.kiev.ua</a><br />
Command:<br />
  +MEGA128 &#8220;-pd=Dual RS232 A&#8221; -% -aft2232:SET=~adbus3: RESET=adbus4 -r -dinam.hex<br />
        % &#8216;ftd2xx.dll&#8217; successfully loaded, version 3.2.4<br />
        % FTDI driver version 2.8.14<br />
        % FT2232 MPSSE SPI adapter created, SCK frequency 188kHz<br />
        % Reset<br />
        % PgmOn reply  FF FF FF FF<br />
        % Try 1 to resync by reset pulse        % PgmOn reply  FF FF FF FF<br />
        % Try 2 to resync by reset pulse        % PgmOn reply  FF FF FF FF<br />
        % Try 3 to resync by reset pulse        % PgmOn reply  FF FF FF FF<br />
        % Try 4 to resync by reset pulse        % PgmOn reply  FF FF FF FF<br />
Can&#8217;t resync<br />
Reset pin released</p>
<p>Команда, которая по аналогии должна устанавливать 1 на выходе adbus3 (reset МК), приводит к такой же ошибке.<br />
D:\avr\avreal&gt;d:\avr\avreal\avreal.exe +MEGA128 &#8220;-pd=Dual RS232 A&#8221; -%  -aft2232:<br />
SET=adbus3: RESET=adbus4 -r -dinam.hex</p>
<p>Однако, если переставить тот же микроконтроллер в плату без инвертора на RESET, он отлично читается как с конфигураций -aft2232:SET=adbus3, так и -aft2232:SET=~adbus3</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Command:<br />
&nbsp; +MEGA128 &quot;-pd=Dual RS232 A&quot; -% -aft2232:SET=adbus3: RESET=adbus4 -r -dinam.hex<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; % 'ftd2xx.dll' successfully loaded, version 3.2.4<br />
&nbsp; &nbsp; &nbsp; &nbsp; % FTDI driver version 2.8.14<br />
&nbsp; &nbsp; &nbsp; &nbsp; % FT2232 MPSSE SPI adapter created, SCK frequency 188kHz<br />
&nbsp; &nbsp; &nbsp; &nbsp; % Reset<br />
&nbsp; &nbsp; &nbsp; &nbsp; % PgmOn reply &nbsp;FF FF 53 00<br />
&nbsp; &nbsp; &nbsp; &nbsp; % Synchronised after 1 try<br />
&nbsp; &nbsp; &nbsp; &nbsp; % GetID reply &nbsp;00 30 00 1E<br />
&nbsp; &nbsp; &nbsp; &nbsp; % GetID reply &nbsp;00 30 00 97<br />
&nbsp; &nbsp; &nbsp; &nbsp; % GetID reply &nbsp;00 30 00 02<br />
&nbsp; &nbsp; &nbsp; &nbsp; % Read ID: 0x1E9702<br />
Device connected, mega128|mega128A detected<br />
&nbsp; &nbsp; &nbsp; &nbsp; % Read Lock &nbsp; &nbsp; command 58 00 00 00, &nbsp;reply 00 58 00 FF<br />
Chip not locked<br />
&nbsp; &nbsp; &nbsp; &nbsp; % Read Osccal &nbsp; command 38 00 00 00, &nbsp;reply 00 38 00 B5<br />
&nbsp; &nbsp; &nbsp; &nbsp; % Read Osccal &nbsp; command 38 00 01 00, &nbsp;reply 00 38 00 B5<br />
&nbsp; &nbsp; &nbsp; &nbsp; % Read Osccal &nbsp; command 38 00 02 00, &nbsp;reply 00 38 00 AF<br />
&nbsp; &nbsp; &nbsp; &nbsp; % Read Osccal &nbsp; command 38 00 03 00, &nbsp;reply 00 38 00 AF<br />
&nbsp; &nbsp; &nbsp; &nbsp; % Read Fuses &nbsp; &nbsp;command 50 00 00 00, &nbsp;reply 00 50 00 BF<br />
&nbsp; &nbsp; &nbsp; &nbsp; % Read Fuses &nbsp; &nbsp;command 58 00 00 00, &nbsp;reply 00 58 00 FF<br />
&nbsp; &nbsp; &nbsp; &nbsp; % Read Fuses &nbsp; &nbsp;command 58 08 00 00, &nbsp;reply 00 58 08 CF<br />
&nbsp; &nbsp; &nbsp; &nbsp; % Read Fuses &nbsp; &nbsp;command 50 08 00 00, &nbsp;reply 00 50 08 FD<br />
Fuses<br />
&nbsp; OSCCALs &nbsp; &nbsp; &nbsp; = B5 B5 AF AF<br />
_LOCK = 0xFF<br />
&nbsp; BLB1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 3<br />
&nbsp; BLB0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 3<br />
_LOW = 0xBF<br />
&nbsp; BODLEVEL &nbsp; &nbsp; &nbsp;= 1<br />
&nbsp; BODEN &nbsp; &nbsp; &nbsp; &nbsp; = 0<br />
&nbsp; SUT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 3<br />
&nbsp; CKSEL &nbsp; &nbsp; &nbsp; &nbsp; = F<br />
_HIGH = 0xCF<br />
&nbsp; OCDEN &nbsp; &nbsp; &nbsp; &nbsp; = 1<br />
&nbsp; JTAGEN &nbsp; &nbsp; &nbsp; &nbsp;= 1<br />
&nbsp; CKOPT &nbsp; &nbsp; &nbsp; &nbsp; = 0<br />
&nbsp; EESAVE &nbsp; &nbsp; &nbsp; &nbsp;= 1<br />
&nbsp; BOOTSZ &nbsp; &nbsp; &nbsp; &nbsp;= 3<br />
&nbsp; BOOTRST &nbsp; &nbsp; &nbsp; = 1<br />
_EXT = 0xFD<br />
&nbsp; M103C &nbsp; &nbsp; &nbsp; &nbsp; = 0<br />
&nbsp; WDTON &nbsp; &nbsp; &nbsp; &nbsp; = 1<br />
Reading CODE memory<br />
................................................................................<br />
................................................................................<br />
................................................................................<br />
................ done (23.4s)<br />
Reading DATA memory<br />
................................................................................<br />
................................................ done (0.82s)<br />
Total time 24.5s<br />
Reset pin released</div></div>
<p>И &#8220;нормальный&#8221; лог чтения без инвертора.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Command:<br />
&nbsp; +MEGA128 &quot;-pd=Dual RS232 A&quot; -% -aft2232 -r -dinam.hex<br />
&nbsp; &nbsp; &nbsp; &nbsp; % 'ftd2xx.dll' successfully loaded, version 3.2.4<br />
&nbsp; &nbsp; &nbsp; &nbsp; % FTDI driver version 2.8.14<br />
&nbsp; &nbsp; &nbsp; &nbsp; % FT2232 MPSSE SPI adapter created, SCK frequency 188kHz<br />
&nbsp; &nbsp; &nbsp; &nbsp; % Reset<br />
&nbsp; &nbsp; &nbsp; &nbsp; % PgmOn reply &nbsp;FF FF 53 00<br />
&nbsp; &nbsp; &nbsp; &nbsp; % Synchronised after 1 try<br />
&nbsp; &nbsp; &nbsp; &nbsp; % GetID reply &nbsp;00 30 00 1E<br />
&nbsp; &nbsp; &nbsp; &nbsp; % GetID reply &nbsp;00 30 00 97<br />
&nbsp; &nbsp; &nbsp; &nbsp; % GetID reply &nbsp;00 30 00 02<br />
&nbsp; &nbsp; &nbsp; &nbsp; % Read ID: 0x1E9702<br />
Device connected, mega128|mega128A detected<br />
&nbsp; &nbsp; &nbsp; &nbsp; % Read Lock &nbsp; &nbsp; command 58 00 00 00, &nbsp;reply 00 58 00 FF<br />
Chip not locked<br />
&nbsp; &nbsp; &nbsp; &nbsp; % Read Osccal &nbsp; command 38 00 00 00, &nbsp;reply 00 38 00 B5<br />
&nbsp; &nbsp; &nbsp; &nbsp; % Read Osccal &nbsp; command 38 00 01 00, &nbsp;reply 00 38 00 B5<br />
&nbsp; &nbsp; &nbsp; &nbsp; % Read Osccal &nbsp; command 38 00 02 00, &nbsp;reply 00 38 00 AF<br />
&nbsp; &nbsp; &nbsp; &nbsp; % Read Osccal &nbsp; command 38 00 03 00, &nbsp;reply 00 38 00 AF<br />
&nbsp; &nbsp; &nbsp; &nbsp; % Read Fuses &nbsp; &nbsp;command 50 00 00 00, &nbsp;reply 00 50 00 BF<br />
&nbsp; &nbsp; &nbsp; &nbsp; % Read Fuses &nbsp; &nbsp;command 58 00 00 00, &nbsp;reply 00 58 00 FF<br />
&nbsp; &nbsp; &nbsp; &nbsp; % Read Fuses &nbsp; &nbsp;command 58 08 00 00, &nbsp;reply 00 58 08 CF<br />
&nbsp; &nbsp; &nbsp; &nbsp; % Read Fuses &nbsp; &nbsp;command 50 08 00 00, &nbsp;reply 00 50 08 FD<br />
Fuses<br />
&nbsp; OSCCALs &nbsp; &nbsp; &nbsp; = B5 B5 AF AF<br />
_LOCK = 0xFF<br />
&nbsp; BLB1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 3<br />
&nbsp; BLB0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 3<br />
_LOW = 0xBF<br />
&nbsp; BODLEVEL &nbsp; &nbsp; &nbsp;= 1<br />
&nbsp; BODEN &nbsp; &nbsp; &nbsp; &nbsp; = 0<br />
&nbsp; SUT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 3<br />
&nbsp; CKSEL &nbsp; &nbsp; &nbsp; &nbsp; = F<br />
_HIGH = 0xCF<br />
&nbsp; OCDEN &nbsp; &nbsp; &nbsp; &nbsp; = 1<br />
&nbsp; JTAGEN &nbsp; &nbsp; &nbsp; &nbsp;= 1<br />
&nbsp; CKOPT &nbsp; &nbsp; &nbsp; &nbsp; = 0<br />
&nbsp; EESAVE &nbsp; &nbsp; &nbsp; &nbsp;= 1<br />
&nbsp; BOOTSZ &nbsp; &nbsp; &nbsp; &nbsp;= 3<br />
&nbsp; BOOTRST &nbsp; &nbsp; &nbsp; = 1<br />
_EXT = 0xFD<br />
&nbsp; M103C &nbsp; &nbsp; &nbsp; &nbsp; = 0<br />
&nbsp; WDTON &nbsp; &nbsp; &nbsp; &nbsp; = 1<br />
Reading DATA memory<br />
................................................................................<br />
................................................ done (0.82s)<br />
Total time 1.14s<br />
Reset pin released</div></div>
<p>Инвертор проверял, если на вход подать высокий уровень, то микроконтроллер уйдет в состояние сброса. В связи с этим появился ещё один вопрос. Можно ли запрограммировать МК, когда при подключении программатора он сброшен? Т.е. нет нужды программно сбрасывать контроллер, запуск программы будет, только при отключенном программатора. </p>
<p>Заранее благодарен.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

