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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2007-10-07T21:16:27+02:00</updated>

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

		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2007-10-07T21:16:27+02:00</updated>

		<published>2007-10-07T21:16:27+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=807&amp;p=2632#p2632</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=807&amp;p=2632#p2632"/>
		<title type="html"><![CDATA[AVR-CDC Issues]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=807&amp;p=2632#p2632"><![CDATA[
Have you tried this on another operating system, e.g. Linux or Mac OS X?<br /><br />The most likely cause for your problem is that Windows has stalled the bulk endpoint after an error. The error could be that an USB packet was lost due to high CPU load (and long interrupt disable time) on the AVR. Other operating systems don't stall the endpoint if an error occurs. If it works with (e.g.) Linux, this is the most likely cause.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Sun Oct 07, 2007 9:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2007-10-02T18:04:20+02:00</updated>

		<published>2007-10-02T18:04:20+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=807&amp;p=2600#p2600</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=807&amp;p=2600#p2600"/>
		<title type="html"><![CDATA[AVR-CDC Issues]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=807&amp;p=2600#p2600"><![CDATA[
The AVR-CDC project seems to be running correctly on my micro (ATMega88).  <br /><div class="codebox"><p>Code: </p><pre><code>        /*    rs232c -&gt; usb:  transmit char        */<br />        if&#40; usbInterruptIsReady&#40;&#41; &#41; &#123;<br />            uchar bytesRead, *data;<br /><br />         SETBIT&#40;PORTC,1,1&#41;;  //I added<br /><br />            bytesRead = uartRxBytesAvailable&#40;&amp;data&#41;;<br />            if&#40;bytesRead &gt; 0 || sendEmptyFrame&#41;&#123;<br />                if&#40;bytesRead &gt;= HW_CDC_BULK_IN_SIZE&#41; &#123;<br />                    bytesRead = HW_CDC_BULK_IN_SIZE;<br />                   /* send an empty block after last data block to indicate transfer end */<br />                    sendEmptyFrame  = 1;<br />                &#125;<br />                else<br />                    sendEmptyFrame  = 0;<br />                usbSetInterrupt&#40;data, bytesRead&#41;;<br />                uartRxDidReadBytes&#40;bytesRead&#41;;<br />            &#125;<br />        &#125;<br /><br />      SETBIT&#40;PORTC,1,0&#41;;  //I Added<br /></code></pre></div><br />this is a code snippet of the int main() in the AVR-CDC 2007-07-07 release.<br /><br />The light will not come on.  If I put the SETBIT on before the if statement it will come on.<br /><br /> I have another atmega88 hooked up to this one transmitting &quot;Hello World\n&quot;.  Shouldn't the usb interrupt become ready at some time?  It is not.  I know for a fact that the SETBIT macro works fine, it is not the issue, the only issue is why will it not see the data coming from the other micro.  I also tried SnoopyPro to send the other way and I get some info that it looks like it is sending to the CDC micro, and it seems to send a response, but I don't get data out of the CDC micro from the pc.<br /><br />I would appreciate your help.<p>Statistics: Posted by Guest — Tue Oct 02, 2007 6:04 pm</p><hr />
]]></content>
	</entry>
	</feed>
