<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум Guardant &mdash; Загрузка кода в ключ]]></title>
	<link rel="self" href="https://forum.guardant.ru/feed/atom/topic/205" />
	<updated>2012-09-11T13:59:55Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.guardant.ru/topic/205/</id>
		<entry>
			<title type="html"><![CDATA[Re: Загрузка кода в ключ]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/1035/#p1035" />
			<content type="html"><![CDATA[<p>Здравствуйте.<br /></p><div class="quotebox"><cite>Jungle пишет:</cite><blockquote><p>Пытаюсь загрузить код в ключ Code Time. При импорте bin-файла возникает ошибка<br /></p><div class="codebox"><pre><code>---------------------------
Ошибка!
---------------------------
Ошибка загрузки файла с кодом в образ
---------------------------
ОК   
---------------------------</code></pre></div><p>Не очень информативно. Как узнать причину?</p></blockquote></div><p>Уточните, пожалуйста, загружаемый bin-файл это самостоятельно написанный модуль или, например, стандартный отладочный?<br />Если это подготовленный вами для загрузки в ключ код, то пришлите нам на почту (hotline@guardant.ru) любой тестовый bin-файл при загрузке которого воспроизводится указанная ошибка.</p>]]></content>
			<author>
				<name><![CDATA[Антон Тихиенко]]></name>
				<uri>https://forum.guardant.ru/user/31/</uri>
			</author>
			<updated>2012-09-11T13:59:55Z</updated>
			<id>https://forum.guardant.ru/post/1035/#p1035</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Загрузка кода в ключ]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/1033/#p1033" />
			<content type="html"><![CDATA[<p>Пытаюсь загрузить код в ключ Code Time. При импорте bin-файла возникает ошибка<br /></p><div class="codebox"><pre><code>---------------------------
Ошибка!
---------------------------
Ошибка загрузки файла с кодом в образ
---------------------------
ОК   
---------------------------</code></pre></div><p>Не очень информативно. Как узнать причину?</p>]]></content>
			<author>
				<name><![CDATA[Jungle]]></name>
				<uri>https://forum.guardant.ru/user/441/</uri>
			</author>
			<updated>2012-09-11T12:27:15Z</updated>
			<id>https://forum.guardant.ru/post/1033/#p1033</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Загрузка кода в ключ]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/1002/#p1002" />
			<content type="html"><![CDATA[<p>Совершенно верно. Подробнее об этом можно узнать в нашей краткой <a href="https://www.guardant.ru/download/manual/info_Guardant_Code_NG.pdf">инструкции по миграции</a>.</p>]]></content>
			<author>
				<name><![CDATA[Кирилл Ковлежов]]></name>
				<uri>https://forum.guardant.ru/user/9/</uri>
			</author>
			<updated>2012-08-14T07:53:53Z</updated>
			<id>https://forum.guardant.ru/post/1002/#p1002</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Загрузка кода в ключ]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/1001/#p1001" />
			<content type="html"><![CDATA[<p>Такая ошибка бывает, когда в ключ нового поколения пытаются загрузить код, скомпилированый для ключей старого поколения. Или наоборот.</p>]]></content>
			<author>
				<name><![CDATA[romik]]></name>
				<uri>https://forum.guardant.ru/user/14/</uri>
			</author>
			<updated>2012-08-14T03:21:28Z</updated>
			<id>https://forum.guardant.ru/post/1001/#p1001</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Загрузка кода в ключ]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/1000/#p1000" />
			<content type="html"><![CDATA[<p>Здравствуйте, когда пытаюсь записать код на ключ все время вылетает ошибка </p><p><strong>Процессор: Intel(R) Core(TM) i7 CPU X 990 @ 3.47GHz<br />Материнская плата: Gigabyte Technology Co., Ltd. G1.Sniper<br />Операционная система: Microsoft Windows 7 Ultimate Edition Service Pack 1 (Build 7601) (X64)<br />Версия драйвера Guardant: 6.00.101<br />Версия комплекта разработчика: 6.00 (Релиз: 07.06.2012) </strong></p><p><span style="color:blue">WinARM был скачен с: <a href="http://www.siwawi.arubi.uni_kl.de/avr_projects/arm_projects/WinARM_20060606.zip">http://www.siwawi.arubi.uni_kl.de/avr_p … 060606.zip</a> (guardant_code_old.pdf)</span><br /><strong><br /># ------------------------------------------------------------------------------<br /># Main Configuration<br /># ------------------------------------------------------------------------------<br /># If you modified this section, you must call &quot;make template&quot;!<br /># C-code entry point name:<br />CFG_ENTRYPOINT_NAME&nbsp; &nbsp; &nbsp; = main<br /># ROM configuration:<br />CFG_PROGRAM_ADDR&nbsp; &nbsp; &nbsp; &nbsp; = 0x00020000<br />CFG_PROGRAM_SIZE&nbsp; &nbsp; &nbsp; &nbsp; = 0x00008000<br /># RAM configuration:<br />CFG_RAM_ADDR&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 0x40003000<br />CFG_RAM_SIZE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 0x00004FE0<br /># Input-output buffers configuration<br /># PC-&gt;KEY buffer name and size:<br />CFG_INPUT_BUFFER_NAME&nbsp; &nbsp;= iodata<br />CFG_INPUT_BUFFER_SIZE&nbsp; &nbsp;= 0x400<br /># KEY-&gt;PC buffer name and size:<br />CFG_OUTPUT_BUFFER_NAME&nbsp; = iodata<br />CFG_OUTPUT_BUFFER_SIZE&nbsp; = 0x400<br /># Program stack size allocate:<br />CFG_STACK_SIZE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 0x800<br /># Path of GrdAPI.h and GcaAPI.h files:<br />CFG_INCLUDE_DIR&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= ../../../../Include<br /># Path of library:<br />CFG_LIB_DIR&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= ../../../../Lib<br /># Path of service utils:<br />CFG_SYS_DIR&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= ../../../../Bin<br /># Output file name:<br />CFG_TARGET_NAME&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= SAMPLE<br /># ------------------------------------------------------------------------------<br /># End Main Configuration<br /># ------------------------------------------------------------------------------</strong></p><p><strong><br /># ------------------------------------------------------------------------------<br /># main.c<br /># ------------------------------------------------------------------------------</strong></p><p><strong>#ifdef __ARM__<br />&nbsp; &nbsp; #include &lt;stdint.h&gt;<br />&nbsp; &nbsp; #define DBG(...)<br />#else<br />&nbsp; &nbsp; #include &lt;stdio.h&gt;<br />&nbsp; &nbsp; #include &lt;windows.h&gt;<br />&nbsp; &nbsp; #define DBG(a ...)&nbsp; &nbsp; printf(a ...)<br />#endif</strong></p><p><strong>#include &quot;GrdAPI.h&quot; <br />#include &quot;GcaAPI.h&quot;</strong></p><p><strong>extern struct<br />{<br />&nbsp; &nbsp; BYTE buffer[1024];<br />} iodata ALIGNED;</strong></p><p><strong>DWORD func1(dwInDataLng, dwOutDataLng)<br />{<br />&nbsp; &nbsp; // Логика работы 1<br />&nbsp; &nbsp; return 101;<br />}<br />DWORD func2(dwInDataLng, dwOutDataLng)<br />{<br />&nbsp; &nbsp; // Логика работы 2<br />&nbsp; &nbsp; return 102;<br />}<br />DWORD func3(dwInDataLng, dwOutDataLng)<br />{<br />&nbsp; &nbsp; // Логика работы 3<br />&nbsp; &nbsp; return 103;<br />}</strong></p><p><strong>DWORD main(DWORD dwInDataLng, DWORD dwOutDataLng, DWORD dwP1)<br />{<br />&nbsp; &nbsp; switch (dwP1)<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; case 0x01:<br />&nbsp; &nbsp; &nbsp; &nbsp; return func1(dwInDataLng, dwOutDataLng);<br />&nbsp; &nbsp; case 0x02:<br />&nbsp; &nbsp; &nbsp; &nbsp; return func2(dwInDataLng, dwOutDataLng);<br />&nbsp; &nbsp; case 0x03:<br />&nbsp; &nbsp; &nbsp; &nbsp; return func3(dwInDataLng, dwOutDataLng);<br />&nbsp; &nbsp; case 0x04:<br />&nbsp; &nbsp; &nbsp; &nbsp; // ...<br />&nbsp; &nbsp; default:<br />&nbsp; &nbsp; &nbsp; &nbsp; return -1;<br />&nbsp; &nbsp; }<br />}</strong></p><p>Скрин ошибки</p><p><span class="postimg"><a class="fancybox fancybox.image" rel="group" href="https://forum.guardant.ru/uploads/legacy/0/1000/1000/p174gc9hr9fejqe1sbkasq1hqt1.jpg"><img class="fb_img" src="https://forum.guardant.ru/uploads/legacy/0/1000/1000/thumb/p174gc9hr9fejqe1sbkasq1hqt1.jpg" alt="" /></a></span></p>]]></content>
			<author>
				<name><![CDATA[BrainIce]]></name>
				<uri>https://forum.guardant.ru/user/430/</uri>
			</author>
			<updated>2012-08-13T16:35:04Z</updated>
			<id>https://forum.guardant.ru/post/1000/#p1000</id>
		</entry>
</feed>
