<?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/1501" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2011-02-28T15:41:07+02:00</updated>

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

		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2011-02-28T15:41:07+02:00</updated>

		<published>2011-02-28T15:41:07+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1501&amp;p=17740#p17740</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1501&amp;p=17740#p17740"/>
		<title type="html"><![CDATA[Re: BootloadHID questions]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1501&amp;p=17740#p17740"><![CDATA[
It is possible and I have seen code which shares the USB driver between boot loader and main code. Can't remember the reference, though.<br /><br />However, in general, I'd really recommend against this solution. That's because most of V-USB's features are compile time constants. You would have to ensure that you need the same configuration in the boot loader AND in the main code. Furthermore, you are locked to a particular version of V-USB in the main code, since you can't change the boot loader via the boot loader. This is definitely not what you want.<br /><br />You would save ca. 1.2 kB of code in the best case. If you move compile-time options to run-time (e.g. provide descriptors via functions), that will even be less because these functions are duplicate in the boot loader and in the main code.<br /><br />In general, I'd recommend a chip with more memory. Unless this is really large scale production. And IF this is large scale production, I'd recommend against locking the code to a particular V-USB version.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Mon Feb 28, 2011 3:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2011-02-28T08:48:54+02:00</updated>

		<published>2011-02-28T08:48:54+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1501&amp;p=17731#p17731</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1501&amp;p=17731#p17731"/>
		<title type="html"><![CDATA[Re: BootloadHID questions]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1501&amp;p=17731#p17731"><![CDATA[
Just upgrade your chip... <br /><br />What you are asking for is probably not possible, V-USB includes and excludes code depending on each project configuration.<p>Statistics: Posted by Guest — Mon Feb 28, 2011 8:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[erasmospunk]]></name></author>
		<updated>2011-02-26T21:43:59+02:00</updated>

		<published>2011-02-26T21:43:59+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1501&amp;p=17718#p17718</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1501&amp;p=17718#p17718"/>
		<title type="html"><![CDATA[Re: BootloadHID questions]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1501&amp;p=17718#p17718"><![CDATA[
Hello!<br /><br />This is the first time post in this forum. I like a lot v-usb and bootloadHID projects. I come from Arduino and Java worlds.<br /><br />I have a project that I use ATmega8 and on in I run the bootloader. My main application code + V-USB is around 6kb and I am desperate for an extra kb!!<br /><br />Is there a possibility to point us to the right direction to share the bootloader's V-USB driver with the main application??<br /><br />Thanks in advance!!<br /><br />er<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=4908">erasmospunk</a> — Sat Feb 26, 2011 9:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-06-05T18:48:03+02:00</updated>

		<published>2008-06-05T18:48:03+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1501&amp;p=5500#p5500</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1501&amp;p=5500#p5500"/>
		<title type="html"><![CDATA[BootloadHID questions]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1501&amp;p=5500#p5500"><![CDATA[
Re (1): I have seen no chip which fails at 3.3 V, although it's outside the spec. Even the 10 MHz devices work. So I assume that it's safe. USB devices and hosts can't be damaged with 5 V levels, the spec demands that. However, some hosts simply don't work with 5 V on D+ and D-.<br /><br />Re (2): In principle, that would be possible. But it's not worth the effort. Since the driver has a lot of compile-time options, both, the main software and the boot loader would have to use the same options. You would only save ~ 1200 bytes. The rest is application layer code which can't be shared.<br /><br />Re (3): See AVR-Doper and the avrdebug tool. Or AVR-CDC.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Thu Jun 05, 2008 6:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[alexn]]></name></author>
		<updated>2008-06-05T14:01:51+02:00</updated>

		<published>2008-06-05T14:01:51+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1501&amp;p=5494#p5494</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1501&amp;p=5494#p5494"/>
		<title type="html"><![CDATA[BootloadHID questions]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1501&amp;p=5494#p5494"><![CDATA[
I am trying to make a board using BootloadHID. So far it works well, and I managed to compile it with the latest version of the driver. I have several questions, however.<br /><br />1. What is better - to use 3.3v for ATMEGA8 and risk that it will not work or use 5v for USB and risk it will be damaged ? Currently I placed ONE diode, so there is 4.5 volts on ATMEL.<br /><br />2. Is it possible to fool C runtime and use USB routines at the bootloader from the main program, thus saving 2 kb of memory ? <br /><br />3. I need a sort of a terminal to communicate with the board. Did someone already try to make such a thing over HID USB connection ?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1135">alexn</a> — Thu Jun 05, 2008 2:01 pm</p><hr />
]]></content>
	</entry>
	</feed>
