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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2010-08-17T21:02:56+02:00</updated>

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

		<entry>
		<author><name><![CDATA[Arzhel]]></name></author>
		<updated>2010-08-17T21:02:33+02:00</updated>

		<published>2010-08-17T21:02:33+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4741&amp;p=15555#p15555</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4741&amp;p=15555#p15555"/>
		<title type="html"><![CDATA[Re: Strange setting for USB_CFG_CLOCK_KHZ]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4741&amp;p=15555#p15555"><![CDATA[
Thanks for the hint.<br />The problem was with the Eclipse plugin.<br /><br />In order to compile .S source files, i have added an extra parameter for avr-gcc:<br />Properties/ C/C++Build/ Settings/ Tool Settings/ AVR Assembler/ General/<br />where Other GCC Flags is set to -DF_CPU=${AVRTARGETFCPU}<br /><br />The compile was then successful.<br /><br />Others settings :<br />- add include path for usb.h (in my case on linux, the package libusb-dev put the file in /usr/include )<br />- add usbconfig.h in folder usbdrv<br />- add include path on usbdrv.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=4235">Arzhel</a> — Tue Aug 17, 2010 9:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[frank26080115]]></name></author>
		<updated>2010-08-16T18:25:59+02:00</updated>

		<published>2010-08-16T18:25:59+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4741&amp;p=15539#p15539</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4741&amp;p=15539#p15539"/>
		<title type="html"><![CDATA[Re: Strange setting for USB_CFG_CLOCK_KHZ]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4741&amp;p=15539#p15539"><![CDATA[
I don't use Eclipse, but it sounds like it's a defect with the plugin<br />so... I'd personally suggest use something else for compiling the project<br />give this a shot? <!-- m --><a class="postlink" href="http://code.google.com/p/avr-project-ide/">http://code.google.com/p/avr-project-ide/</a><!-- m --><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2426">frank26080115</a> — Mon Aug 16, 2010 6:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arzhel]]></name></author>
		<updated>2010-08-17T21:02:56+02:00 </updated>

		<published>2010-08-15T19:07:13+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4741&amp;p=15526#p15526</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4741&amp;p=15526#p15526"/>
		<title type="html"><![CDATA[Strange setting for USB_CFG_CLOCK_KHZ (solved)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4741&amp;p=15526#p15526"><![CDATA[
Hi<br /><br />I am trying to compile a sample project and i have the following error while dealing with usbdrvasm.S :<br />../src/usbdrv/usbdrvasm.S:391:9: erreur: #error &quot;USB_CFG_CLOCK_KHZ is not one of the supported non-crc-rates!&quot;<br /><br />I don't use make but Eclipse with the avr-plugin.<br /><br />In usbdrvasm.S, USB_CFG_CLOCK_KHZ is normally set to F_CPU/1000.<br />F_CPU comes from the project's settings in Eclipse (Properties/AVR/Target Hardware) where MCU Clock Frequency is set to 12000000 Hz.<br />What is strange is that the value affected to USB_CFG_CLOCK_KHZ seems to be different from 12000 <br /><br />I have tried to put global settings for the compiler via Properties/ C/C++ Build/Behavior where incremental build is set to <br />MMCU=${AVRTARGETMCU} F_CPU=${AVRTARGETFCPU} all<br />I got the same error.<br /><br />Surely, i could redefine F_CPU in usbdrvasm.S, but this will be an horrible hack.<br /><br />Any help would be greatly appreciated<br /><br />Best regards,<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=4235">Arzhel</a> — Sun Aug 15, 2010 7:07 pm</p><hr />
]]></content>
	</entry>
	</feed>
