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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2012-08-23T11:29:06+02:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2012-08-23T11:29:06+02:00</updated>

		<published>2012-08-23T11:29:06+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6424&amp;p=22526#p22526</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6424&amp;p=22526#p22526"/>
		<title type="html"><![CDATA[Re: won't compile - variable must be const]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6424&amp;p=22526#p22526"><![CDATA[
i had this problem and i did what u did....but the problem is that the circuit isnt working <br />i check my circuit like 200 times ..... i tried every possible circuit and still no changes ...<br />could it be because of the &quot;const&quot;...!!?!<br />i mean i even bought another MCU &quot;atmega8&quot; instead of the one i have &quot;atmega32A&quot;.... and still nothing is working ??!<br />it keeps saying ::<br />-----------------------------------------------------------------------------------------------------------------------------------<br />-------------------------------------------------&quot;USB Device not Recognized&quot;-------------------------------------------------<br />-----------------------------------------------------------------------------------------------------------------------------------<br />i'm really kind of desperate right now !!....<br />do u have any suggestion .....?!<br />im not using the makeFile .... does this effects my code  ....?!<br /><br />hope u've got any new ideas i can benefit of ... <img class="smilies" src="./../../../images/smilies/icon_smile.gif" alt=":)" title="Smile" /><br />thanks in advance.<p>Statistics: Posted by Guest — Thu Aug 23, 2012 11:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2012-08-13T03:30:05+02:00</updated>

		<published>2012-08-13T03:30:05+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6424&amp;p=22439#p22439</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6424&amp;p=22439#p22439"/>
		<title type="html"><![CDATA[Re: won't compile - variable must be const]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6424&amp;p=22439#p22439"><![CDATA[
Thanks!  Just had the same problem.<p>Statistics: Posted by Guest — Mon Aug 13, 2012 3:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[funkenregen]]></name></author>
		<updated>2012-02-06T19:37:58+02:00</updated>

		<published>2012-02-06T19:37:58+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6424&amp;p=20898#p20898</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6424&amp;p=20898#p20898"/>
		<title type="html"><![CDATA[Re: won't compile]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6424&amp;p=20898#p20898"><![CDATA[
i fixed it myself with some help of the trusty interwebs.<br /><br />newer avr-gcc versions demand that everything put in progmem is defined const [1].<br />so i just put a const in front of every PROGMEM line where the compiler complained. changes were necessary in usbdrv.h, usbdrv.c and the main program (the usbHidReportDescriptor is in progmem too). <br /><br />now everything works fine. <br />i think this change would be very easy to implement and would not break backwards compatibility.<br /><br />i hope this helps anyone who encounters this problem sometime in the future.<br /><br />regards, funkenregen<br /><br />----<br />[1] <!-- m --><a class="postlink" href="http://old.nabble.com/VUSB-problem-td32560584.html">http://old.nabble.com/VUSB-problem-td32560584.html</a><!-- m --><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6345">funkenregen</a> — Mon Feb 06, 2012 7:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[funkenregen]]></name></author>
		<updated>2012-02-06T19:38:58+02:00 </updated>

		<published>2012-02-04T18:19:25+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6424&amp;p=20877#p20877</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6424&amp;p=20877#p20877"/>
		<title type="html"><![CDATA[won't compile - variable must be const]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6424&amp;p=20877#p20877"><![CDATA[
hi i am trying to compile an example but i get errors when executing 'make hex'.<br />the machine is fedora f16, avr-gcc (Fedora 4.6.2-1.fc16) 4.6.2<br /><br />output:<br /><br /><div class="codebox"><p>Code: </p><pre><code><br />&#91;...&#93;vusb-20120109/examples/hid-data/firmware % make hex<br />avr-gcc -Wall -Os -DF_CPU=16500000    -Iusbdrv -I. -DDEBUG_LEVEL=0 -mmcu=attiny45 -c usbdrv/usbdrv.c -o usbdrv/usbdrv.o<br />In file included from usbdrv/usbdrv.c:12:0:<br />usbdrv/usbdrv.h:455:6: error: variable 'usbDescriptorDevice' must be const in order to be put into read-only section by means of '__attribute__((progmem))'<br />usbdrv/usbdrv.h:461:6: error: variable 'usbDescriptorConfiguration' must be const in order to be put into read-only section by means of '__attribute__((progmem))'<br />usbdrv/usbdrv.h:467:6: error: variable 'usbDescriptorHidReport' must be const in order to be put into read-only section by means of '__attribute__((progmem))'<br />usbdrv/usbdrv.h:473:6: error: variable 'usbDescriptorString0' must be const in order to be put into read-only section by means of '__attribute__((progmem))'<br />usbdrv/usbdrv.h:479:5: error: variable 'usbDescriptorStringVendor' must be const in order to be put into read-only section by means of '__attribute__((progmem))'<br />usbdrv/usbdrv.h:485:5: error: variable 'usbDescriptorStringDevice' must be const in order to be put into read-only section by means of '__attribute__((progmem))'<br />usbdrv/usbdrv.h:491:5: error: variable 'usbDescriptorStringSerialNumber' must be const in order to be put into read-only section by means of '__attribute__((progmem))'<br />usbdrv/usbdrv.c:70:14: error: variable 'usbDescriptorString0' must be const in order to be put into read-only section by means of '__attribute__((progmem))'<br />usbdrv/usbdrv.c:80:14: error: variable 'usbDescriptorStringVendor' must be const in order to be put into read-only section by means of '__attribute__((progmem))'<br />usbdrv/usbdrv.c:89:14: error: variable 'usbDescriptorStringDevice' must be const in order to be put into read-only section by means of '__attribute__((progmem))'<br />usbdrv/usbdrv.c:111:14: error: variable 'usbDescriptorDevice' must be const in order to be put into read-only section by means of '__attribute__((progmem))'<br />usbdrv/usbdrv.c:142:14: error: variable 'usbDescriptorConfiguration' must be const in order to be put into read-only section by means of '__attribute__((progmem))'<br />make: *** &#91;usbdrv/usbdrv.o&#93; Error 1<br /></code></pre></div><br /><br />is this a beginners mistake or is something broken on my machine?<br /><br />thanks in advance, <br />funkenregen<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6345">funkenregen</a> — Sat Feb 04, 2012 6:19 pm</p><hr />
]]></content>
	</entry>
	</feed>
