<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forums.obdev.at/app.php/feed/topic/1637" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2008-08-10T14:54:07+02:00</updated>

	<author><name><![CDATA[Objective Development Forums]]></name></author>
	<id>https://forums.obdev.at/app.php/feed/topic/1637</id>

		<entry>
		<author><name><![CDATA[drTuk]]></name></author>
		<updated>2008-08-10T14:54:07+02:00</updated>

		<published>2008-08-10T14:54:07+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1637&amp;p=5973#p5973</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1637&amp;p=5973#p5973"/>
		<title type="html"><![CDATA[AVR-USB: Crypto Boot with m128]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1637&amp;p=5973#p5973"><![CDATA[
But do you use Oleg (Crypto Boot) code?<br />My first important thing are the AES crypto. Understand?<br /><br />I make download of IAR AVR 5.11 and compile give me error:<br /><br />Error[e16]: Segment CODE (size: 0x1046 align: 0x1) is too long for segment definition. At least 0x6c more bytes needed. The problem occurred while processing the segment placement  <br />command &quot;-Z(CODE)CODE=(_FLASH_BASE)-_FLASH_END&quot;, where at the moment of placement the available memory ranges were  <br />&quot;CODE:1e000-1e003,CODE:1e07f-1effb,CODE:1effe-1efff,CODE:1f006-1ffdf,CODE:1fffa-1ffff&quot; <br />   Reserved ranges relevant to this placement: <br />   CODE:1e000-1e003     CODE <br />   CODE:1e004-1e070     FAR_F <br />   CODE:1e071-1e07e     INITTAB <br />   CODE:1e07f-1effb     CODE <br />   CODE:1effc-1effd     APP_VERSION <br />   CODE:1effe-1efff     CODE <br />   CODE:1f000-1f005     INTVEC <br />   CODE:1f006-1ffdf     CODE <br />   CODE:1ffe0-1fff9     SERIAL_NUMBER <br />   CODE:1fffa-1ffff     CODE <br /> <br />Total number of errors: 1 <br />Total number of warnings: 1 <br /><br /><br /><br /><div class="codebox"><p>Code: </p><pre><code>In Options/Linker/#define I use:<br />BOOT_SIZE=1000<br />FLASH_SIZE=20000<br />IVT_SIZE=8C<br />RAM_SIZE=1000<br />RAM_BASE=100<br />APP_SRAM_USAGE=41E<br />RSTACK=100<br />CSTACK=40<br /><br /><br />in bootldr.xcl I use:<br /><br />-D_INTVEC_SIZE=4       /* Vector table &#40;only the reset &quot;vector&quot; is needed&#41; */<br />-D_FLASH_BASE=1E000    /* START OF BOOTLOADER BLOCK IN FLASH MEMORY */<br />-D_FLASH_TEND=FF       /* End of tiny flash memory */<br />-D_FLASH_NEND=FFFF     /* End of near flash memory */<br />-D_FLASH_END=1FFFF     /* End of flash memory */<br />-D_SRAM_BASE=100    /* Start of ram memory */<br />-D_SRAM_TEND=100    /* End of tiny ram memory */<br />-D_SRAM_END=10FF    /* End of ram memory */<br />-D_EEPROM_END=FFF   /* End of eeprom memory */<br /><br />-D_CSTACK_SIZE=100  /* 256 bytes for auto variables and saved registers. */<br />-D_RSTACK_SIZE=40   /* 64 bytes for return addresses, equivalent to 32 */<br />                    /*    levels of calls, including interrupts. */<br />-D_HEAP_SIZE=100         /* 256 bytes of heap. */<br />-D_NEAR_HEAP_SIZE=100    /* 256 bytes of heap. */<br /><br />-ca90<br />-w29<br /><br />-Z&#40;FARCODE&#41;FAR_F=&#40;_FLASH_BASE+_INTVEC_SIZE&#41;-_FLASH_END <br />-Z&#40;CODE&#41;INITTAB=&#40;_FLASH_BASE+_INTVEC_SIZE&#41;-_FLASH_END<br />-Z&#40;CODE&#41;APP_VERSION=&#40;FLASH_SIZE-BOOT_SIZE-4&#41;-&#40;FLASH_SIZE-BOOT_SIZE-3&#41;<br />-Z&#40;CODE&#41;INTVEC=_FLASH_BASE-&#40;_FLASH_BASE+_INTVEC_SIZE-1&#41;<br />-Z&#40;CODE&#41;SERIAL_NUMBER=&#40;FLASH_SIZE-20&#41;-&#40;FLASH_SIZE-7&#41;<br />-Z&#40;CODE&#41;CODE=&#40;_FLASH_BASE&#41;-_FLASH_END<br />-Z&#40;CODE&#41;NEAR_F=_INTVEC_SIZE-_FLASH_NEND <br />-Z&#40;CODE&#41;NEAR_ID=_INTVEC_SIZE-_FLASH_NEND<br />-Z&#40;DATA&#41;TINY_Z=_SRAM_BASE-_SRAM_TEND<br />-Z&#40;DATA&#41;NEAR_C,NEAR_I=_SRAM_BASE-_SRAM_END<br />-Z&#40;DATA&#41;NEAR_Z=_SRAM_BASE-_SRAM_END<br /></code></pre></div><br /><br />please if somebody know how to solve it, please post a reply. Regards<br /><br />DrTk<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1257">drTuk</a> — Sun Aug 10, 2008 2:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[apollononnno]]></name></author>
		<updated>2008-08-10T05:55:57+02:00</updated>

		<published>2008-08-10T05:55:57+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1637&amp;p=5971#p5971</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1637&amp;p=5971#p5971"/>
		<title type="html"><![CDATA[AVR-USB: Crypto Boot with m128]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1637&amp;p=5971#p5971"><![CDATA[
I make an example &quot;USBaspLoader.2008-02-05\firmware&quot;. <br />I do the name of the file to intend for precisely. <br />Wrong &quot;XXcfg.h&quot; that it is next, right &quot;bootloaderconfig.h.&quot;<br /><br />/* ---bootloaderconfig.h------- Hardware Config ---------------------------- */<br />#define USB_CFG_IOPORTNAME      D<br />#define USB_CFG_DMINUS_BIT      1<br />#define USB_CFG_DPLUS_BIT       0<br /><br />/* ---Makefile----------------------------------- */<br />F_CPU = 12000000<br />DEVICE = atmega128<br /><br />As a result of having been provided.<br />C:\avrs\USBaspLoader.2008-02-05\USBaspLoader.2008-02-05\128firmware&gt;make<br />rm -f main.hex main.eep.hex<br />avr-objcopy -j .text -j .data -O ihex main.bin main.hex<br />avr-size main.hex<br />   text    data     bss     dec     hex filename<br />      0    2392       0    2392     958 main.hex<br /><br />I did it in the same way and tried &quot;168p&quot;. <br />As a result of having been provided.<br /><br />/* ---bootloaderconfig.h------ Hardware Config ---------------------------- */<br />#define USB_CFG_IOPORTNAME      C<br />#define USB_CFG_DMINUS_BIT      1<br />#define USB_CFG_DPLUS_BIT       0<br />/* ---Makefile----------------------------------- */<br />F_CPU = 16000000<br />DEVICE = atmega168<br /><br />C:\avrs\USBaspLoader.2008-02-05\USBaspLoader.2008-02-05\168firmware&gt;make<br />rm -f main.hex main.eep.hex<br />avr-objcopy -j .text -j .data -O ihex main.bin main.hex<br />avr-size main.hex<br />   text    data     bss     dec     hex filename<br />      0    2392       0    2392     958 main.hex<br /><br />I compiled &quot;AVRminiProg&quot; with mega128. <br />I do not really confirm the movement.<br />/* ---app_cfg.h------ function Config ---------------------------- */<br />// Include this if use AVRminiProg_Full<br />#include &quot;app_cfg_Full.h&quot;<br />/* ---app_cfg_Full.h- Hardware Config ---------------------------- */<br />/*************************** AVRUSB *****************************/<br />#define USB_CFG_IOPORTNAME      D<br />#define USB_CFG_DMINUS_BIT      1<br />#define USB_CFG_DPLUS_BIT       0<br /><br />C:\avrs\64fullAVRminiProg&gt;make<br />make -C default all<br />make[1]: Entering directory `C:/avrs/64fullAVRminiProg/default'<br />avr-objcopy -O ihex -R .eeprom  AVRminiProg.elf AVRminiProg.hex<br /><br />AVR Memory Usage<br />----------------<br />Device: atmega64<br /><br />Program:   14610 bytes (22.3% Full)<br />(.text + .data + .bootloader)<br /><br />Data:        501 bytes (12.2% Full)<br />(.data + .bss + .noinit)<br /><br /><br />make[1]: Leaving directory `C:/avrs/64fullAVRminiProg/default'<br /><br /><!-- m --><a class="postlink" href="http://2.suk2.tok2.com/user/nonnno-protok2/img/2008-08-04-0.JPG">http://2.suk2.tok2.com/user/nonnno-prot ... 8-04-0.JPG</a><!-- m --><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1231">apollononnno</a> — Sun Aug 10, 2008 5:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[drTuk]]></name></author>
		<updated>2008-08-09T17:44:25+02:00</updated>

		<published>2008-08-09T17:44:25+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1637&amp;p=5968#p5968</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1637&amp;p=5968#p5968"/>
		<title type="html"><![CDATA[AVR-USB: Crypto Boot with m128]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1637&amp;p=5968#p5968"><![CDATA[
hi kyoji,<br /><br />I make some modifications..but when I tried to comile the code using winavr I got errors from compile, change some things but don´t solve the error about this line<br /><br />extern void puts_P_nr(char __flash *s );<br /><br />the error are as this:<br /><br />error: expected ';', ',' or ')' before '*' token<br /><br /><br />I don´t know how to solve this. Then I will try today download IAR from web and compile it with my needs(crypto working under m128). But my all project are in Winavr and I like work with gcc, I never work with another IDE like IAR or CODEVISION... If I get sucess I post here the solution, but if somebody have a crypto firmware compiled with winavr (with changes to compile correctly) and can share it it´s great!<br /><br />Regards!<br /><br />DrTk<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1257">drTuk</a> — Sat Aug 09, 2008 5:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[apollononnno]]></name></author>
		<updated>2008-08-10T05:30:49+02:00 </updated>

		<published>2008-08-09T17:34:46+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1637&amp;p=5967#p5967</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1637&amp;p=5967#p5967"/>
		<title type="html"><![CDATA[Re: AVR-USB: Crypto Boot with m128]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1637&amp;p=5967#p5967"><![CDATA[
I make an example &quot;USBaspLoader.2008-02-05\firmware&quot;. <br />I do the name of the file to intend for precisely. <br />Wrong &quot;XXcfg.h&quot; that it is next, right &quot;bootloaderconfig.h.&quot;<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1231">apollononnno</a> — Sat Aug 09, 2008 5:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[drTuk]]></name></author>
		<updated>2008-08-08T23:06:41+02:00</updated>

		<published>2008-08-08T23:06:41+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1637&amp;p=5962#p5962</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1637&amp;p=5962#p5962"/>
		<title type="html"><![CDATA[AVR-USB: Crypto Boot with m128]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1637&amp;p=5962#p5962"><![CDATA[
Hi for all!<br /><br /><br />I make the Avrusbboot into my circuit with a ATmega128, but, I have some doubts.<br />I need a solution like this <!-- m --><a class="postlink" href="http://avrusb.wikidot.com/project:crypto-boot">http://avrusb.wikidot.com/project:crypto-boot</a><!-- m --> <br />That peoples can updating they hardwares but can´t took the unprotected .hex file.<br />I want that from the first firmware are protected.<br />Atmel´s AES use only serial bootloader.<br />Crypto from Oleg work with usb like your avrusbboot.<br />My problem is to port Oleg code to m128 and winavr. Because have some erros and don´t sucess with it.<br /><br />Somebody know or have some solution (like Oleg´s code) for use AVRusb boot solution with AES security and m128 ?<br /><br /> <br /><br />Regards!<br /><br /> <br />DrTk<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1257">drTuk</a> — Fri Aug 08, 2008 11:06 pm</p><hr />
]]></content>
	</entry>
	</feed>
