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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2011-02-26T09:53:44+02:00</updated>

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

		<entry>
		<author><name><![CDATA[Augend]]></name></author>
		<updated>2011-02-26T09:53:44+02:00</updated>

		<published>2011-02-26T09:53:44+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17712#p17712</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17712#p17712"/>
		<title type="html"><![CDATA[Re: #error &quot;You must define USB_CFG_IOPORTNAME in usbconfig.h..&quot;]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17712#p17712"><![CDATA[
An advice:   I have spent many years of my life insisting on Assembly and things like AVRStudio and spoilng every second in codes.  I really advise you to use WinAVR. you can also use it in Visual Studio and benefit from its strong Intellisense and so on.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=4965">Augend</a> — Sat Feb 26, 2011 9:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[madscientist]]></name></author>
		<updated>2011-02-17T16:22:07+02:00</updated>

		<published>2011-02-17T16:22:07+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17640#p17640</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17640#p17640"/>
		<title type="html"><![CDATA[Re: #error &quot;You must define USB_CFG_IOPORTNAME in usbconfig.h..&quot;]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17640#p17640"><![CDATA[
I managed to build the project with &quot;make hex&quot;, and I could program the .hex from AVRStudio.<br /><br />I tried AVR Poject IDE from Frank of USnooBie and managed to compile the code again. However, the mouse in this compilation behaves differently, which could be related to the math function and it's interpretation at compile time.<br /><br />AVRStudio is still giving me errors no matter what I do.<br /><br />Unfortunately I am getting sidetracked with other firmwares, but I will definitely play around and do more research on this V-USB/AVRStudio combination.<br /><br />Thanks!<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=4913">madscientist</a> — Thu Feb 17, 2011 4:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[maxi]]></name></author>
		<updated>2011-02-14T00:00:10+02:00</updated>

		<published>2011-02-14T00:00:10+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17603#p17603</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17603#p17603"/>
		<title type="html"><![CDATA[Re: #error &quot;You must define USB_CFG_IOPORTNAME in usbconfig.h..&quot;]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17603#p17603"><![CDATA[
A quick search for the keyword &quot;Studio&quot; would have uncovered this recent thread <a href="http://forums.obdev.at/viewtopic.php?f=8&amp;t=5290&amp;start=0&amp;hilit=studio" class="postlink">http://forums.obdev.at/viewtopic.php?f=8&amp;t=5290&amp;start=0&amp;hilit=studio</a> where I advised the OP to check out the AVR-CDC project that comes with AVRStudio project files. Maybe you can see where you went wrong.<br /><br />BTW there is a big hint in the last paragraph of the passage I quoted from the readme <img class="smilies" src="./../../../images/smilies/icon_wink.gif" alt=";)" title="Wink" /><br /><br />Hope it helps.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2570">maxi</a> — Mon Feb 14, 2011 12:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[madscientist]]></name></author>
		<updated>2011-02-13T23:44:41+02:00</updated>

		<published>2011-02-13T23:44:41+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17602#p17602</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17602#p17602"/>
		<title type="html"><![CDATA[Re: #error &quot;You must define USB_CFG_IOPORTNAME in usbconfig.h..&quot;]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17602#p17602"><![CDATA[
Believe me maxi, I did search for the problems, in fact I searched for too specific problems and didn't come across that topic.<br /><br />I will try different things when I get some time on the weekend and see where it gets me.<br /><br />Thank you for your comments!<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=4913">madscientist</a> — Sun Feb 13, 2011 11:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[maxi]]></name></author>
		<updated>2011-02-13T18:34:58+02:00</updated>

		<published>2011-02-13T18:34:58+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17599#p17599</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17599#p17599"/>
		<title type="html"><![CDATA[Re: #error &quot;You must define USB_CFG_IOPORTNAME in usbconfig.h..&quot;]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17599#p17599"><![CDATA[
With respect, this is a support forum for V-USB, not AVRStudio. It amazes me why so many people insist on using it when they clearly do not know how to set it up properly.<br /><br />The advice I have given would atleast confirm that this is indeed an AVRStudio setup issue and not a problem with V-USB or your compiler.<br /><br />For help with AVRStudio in general you could try here <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewforum&amp;f=7" class="postlink">http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewforum&amp;f=7</a> where, incidentally, someone posted a very similar question only yesterday.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2570">maxi</a> — Sun Feb 13, 2011 6:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[madscientist]]></name></author>
		<updated>2011-02-13T02:19:56+02:00</updated>

		<published>2011-02-13T02:19:56+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17595#p17595</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17595#p17595"/>
		<title type="html"><![CDATA[Re: #error &quot;You must define USB_CFG_IOPORTNAME in usbconfig.h..&quot;]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17595#p17595"><![CDATA[
Others have successfully used AVRStudio without makefiles, I would like to do the same. <br /><br />I'm positive that this problem can be solved without going in circles around it. If I can't use V-USB with AVRStudio, I'm afraid I won't use it at all.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=4913">madscientist</a> — Sun Feb 13, 2011 2:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[maxi]]></name></author>
		<updated>2011-02-12T21:45:37+02:00</updated>

		<published>2011-02-12T21:45:37+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17592#p17592</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17592#p17592"/>
		<title type="html"><![CDATA[Re: #error &quot;You must define USB_CFG_IOPORTNAME in usbconfig.h..&quot;]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17592#p17592"><![CDATA[
You need to run the makefile from a console (eg MSYS) as the ones provided are <strong class="text-strong">not</strong> intended for use with AVRStudio.  I suggest you forget about AVRStudio for now, start again with a fresh copy of V-USB and follow the instructions in Readme.txt.<br /><blockquote class="uncited"><div>BUILDING THE FIRMWARE<br />=====================<br />Change to the &quot;firmware&quot; directory and modify Makefile according to your<br />architecture (CPU clock, target device, fuse values) and ISP programmer. Then<br />edit usbconfig.h according to your pin assignments for D+ and D-. The default<br />settings are for the metaboard hardware.<br /><br />Type &quot;make hex&quot; to build main.hex, then &quot;make flash&quot; to upload the firmware<br />to the device. Don't forget to run &quot;make fuse&quot; once to program the fuses. If<br />you use a prototyping board with boot loader, follow the instructions of the<br />boot loader instead.<br /><br />Please note that the first &quot;make hex&quot; copies the driver from the top level<br />into the firmware directory. If you use a different build system than our<br />Makefile, you must copy the driver by hand.<br /></div></blockquote><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2570">maxi</a> — Sat Feb 12, 2011 9:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[madscientist]]></name></author>
		<updated>2011-02-12T04:35:50+02:00</updated>

		<published>2011-02-12T04:35:50+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17589#p17589</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17589#p17589"/>
		<title type="html"><![CDATA[Re: #error &quot;You must define USB_CFG_IOPORTNAME in usbconfig.h..&quot;]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17589#p17589"><![CDATA[
I started everything from the beginning, using the makefile I get this:<br /><br /><div class="codebox"><p>Code: </p><pre><code>Loaded plugin STK500<br />Loaded plugin AVR GCC<br />Loaded partfile: C:\Program Files\Atmel\AVR Tools\PartDescriptionFiles\<br />Error Code: -2147467259: <br />gcc plug-in: Error: Object file not found on expected location C:\MouseTest\MouseTest.elf<br />Make sure your makefile specifies the output .elf file as MouseTest.elf</code></pre></div><br /><br /><br />Setting up the compiler for Atmega16, 12MHz, -0s:<br /><br /><div class="codebox"><p>Code: </p><pre><code>rm -rf MouseTest_main.o usbdrvasm.o usbdrv.o  MouseTest.elf dep/* MouseTest.hex MouseTest.eep MouseTest.lss MouseTest.map<br />Build succeeded with 0 Warnings...<br />avr-gcc  -mmcu=atmega16 -Wall -gdwarf-2 -std=gnu99         -DF_CPU=12000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT MouseTest_main.o -MF dep/MouseTest_main.o.d  -c  ../MouseTest_main.c<br />../MouseTest_main.c: In function 'main':<br />../MouseTest_main.c:160: warning: implicit declaration of function 'usbInterruptIsReady'<br />../MouseTest_main.c:164: warning: implicit declaration of function 'usbSetInterrupt'<br />../MouseTest_main.c:167: warning: function declared 'noreturn' has a 'return' statement<br />avr-gcc  -mmcu=atmega16 -mmcu=atmega16 -Wall -gdwarf-2 -std=gnu99         -DF_CPU=12000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT usbdrvasm.o -MF dep/usbdrvasm.o.d  -x assembler-with-cpp -Wa,-gdwarf2 -c  ../usbdr<br />v/usbdrvasm.s<br /><br />In file included from ../usbdrv/usbdrvasm.s:20:<br />../usbdrv/usbdrv.h:539:3: error: #error &quot;You must define USB_CFG_IOPORTNAME in usbconfig.h, see usbconfig-prototype.h&quot;<br />make: *** &#91;usbdrvasm.o&#93; Error 1<br />Build failed with 1 errors and 3 warnings...</code></pre></div><br /><br />I also tried defining it before the error message in usbdrv.h:<br /><div class="codebox"><p>Code: </p><pre><code>#ifndef USB_CFG_IOPORTNAME<br />   #define USB_CFG_IOPORTNAME      D<br />   #error &quot;You must define USB_CFG_IOPORTNAME in usbconfig.h, see usbconfig-prototype.h&quot;<br />#endif</code></pre></div><br /><br />Thank you for the prompt reply!<br /><br /><br /><br />Also: copying or moving the #define to usbdrv.h, I get the same assembler error:<br /><br /><div class="codebox"><p>Code: </p><pre><code>../usbdrv/usbdrvasm12.inc: Assembler messages:<br />../usbdrv/usbdrvasm12.inc:57: Error: constant value required<br />...<br />../usbdrv/usbdrvasm12.inc:312: Error: constant value required<br />make: *** &#91;usbdrvasm.o&#93; Error 1<br />Build failed with 1 errors and 3 warnings...</code></pre></div><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=4913">madscientist</a> — Sat Feb 12, 2011 4:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[maxi]]></name></author>
		<updated>2011-02-12T00:25:18+02:00</updated>

		<published>2011-02-12T00:25:18+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17588#p17588</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17588#p17588"/>
		<title type="html"><![CDATA[Re: #error &quot;You must define USB_CFG_IOPORTNAME in usbconfig.h..&quot;]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17588#p17588"><![CDATA[
<blockquote><div><cite>madscientist wrote:</cite>I commented out the error message in usbdrv.h, which revealed a load of assembler errors:<br />../usbdrv/usbdrvasm12.inc: Assembler messages:<br />../usbdrv/usbdrvasm12.inc:57: Error: constant value required</div></blockquote><br />Commenting out debug messages is really not a good idea! The assembler *errors* are because, among other things, you must define USB_CFG_IOPORTNAME in usbconfig.h. I can only guess that Studio is not reading all of usbconfig.h (or not the right one) properly, perhaps a mis-placed /* somewhere?<br /><br />Try instead to #define USB_CFG_IOPORTNAME at the top of usbdrv.h and tell us what the compiler reports then. Also, just try compiling using the makefile instead of AVR Studio and see if that makes any difference. (See Readme.txt)<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2570">maxi</a> — Sat Feb 12, 2011 12:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[madscientist]]></name></author>
		<updated>2011-02-11T21:21:43+02:00</updated>

		<published>2011-02-11T21:21:43+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17585#p17585</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17585#p17585"/>
		<title type="html"><![CDATA[Re: #error &quot;You must define USB_CFG_IOPORTNAME in usbconfig.h..&quot;]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5447&amp;p=17585#p17585"><![CDATA[
I commented out the error message in usbdrv.h, which revealed a load of assembler errors:<br /><br />../usbdrv/usbdrvasm12.inc: Assembler messages:<br />../usbdrv/usbdrvasm12.inc:57: Error: constant value required<br />...<br />../usbdrv/usbdrvasm12.inc:393: Error: constant value required<br />make: *** [usbdrvasm.o] Error 1<br />Build failed with 1 errors and 0 warnings...<br /><br />All these errors correlate to USBMINUS, USBDDR, USBOUT, and USBIN macros.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=4913">madscientist</a> — Fri Feb 11, 2011 9:21 pm</p><hr />
]]></content>
	</entry>
	</feed>
