<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Teensy2 USB Mass Storage with an SD card</title>
	<atom:link href="http://elasticsheep.com/2010/04/teensy2-usb-mass-storage-with-an-sd-card/feed/" rel="self" type="application/rss+xml" />
	<link>http://elasticsheep.com/2010/04/teensy2-usb-mass-storage-with-an-sd-card/</link>
	<description>Because elasticdog was already taken</description>
	<lastBuildDate>Sat, 04 Feb 2012 06:46:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Prashanth. G</title>
		<link>http://elasticsheep.com/2010/04/teensy2-usb-mass-storage-with-an-sd-card/comment-page-1/#comment-7675</link>
		<dc:creator>Prashanth. G</dc:creator>
		<pubDate>Thu, 15 Dec 2011 05:11:34 +0000</pubDate>
		<guid isPermaLink="false">http://elasticsheep.com/?p=604#comment-7675</guid>
		<description>Hi Cheif I changed the MCU, F_CPU, F_CLOCK parameters in the make file now I can read the files from the MMC but I get more number of connect and ready the sequence is as follows.
USB Disconnect
Connect
Connect
USB Disconnect
Connect
Connect
Connect
Ready
SD blocks: 0
Invalid Command
Invalid Command
more than 12 Invalid commands
then 
R 0 8
6 Invalid  Commands then it displays the usual text, it works as a read only card reader but eject section is an error 
I still have to edit the sd_raw_write_interval function 

Regards,
Prashanth. G</description>
		<content:encoded><![CDATA[<p>Hi Cheif I changed the MCU, F_CPU, F_CLOCK parameters in the make file now I can read the files from the MMC but I get more number of connect and ready the sequence is as follows.<br />
USB Disconnect<br />
Connect<br />
Connect<br />
USB Disconnect<br />
Connect<br />
Connect<br />
Connect<br />
Ready<br />
SD blocks: 0<br />
Invalid Command<br />
Invalid Command<br />
more than 12 Invalid commands<br />
then<br />
R 0 8<br />
6 Invalid  Commands then it displays the usual text, it works as a read only card reader but eject section is an error<br />
I still have to edit the sd_raw_write_interval function </p>
<p>Regards,<br />
Prashanth. G</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Chief Sheep</title>
		<link>http://elasticsheep.com/2010/04/teensy2-usb-mass-storage-with-an-sd-card/comment-page-1/#comment-7666</link>
		<dc:creator>The Chief Sheep</dc:creator>
		<pubDate>Wed, 14 Dec 2011 16:52:49 +0000</pubDate>
		<guid isPermaLink="false">http://elasticsheep.com/?p=604#comment-7666</guid>
		<description>Hi Prashanth,

The USB communication does not seem to work correctly. You should only see one Connect followed by one Ready.
You are not reaching the moment where the PC tries to read or write from the SD card.

Have you changed the values for your target in the project Makefile ?
MCU = at90usb162
F_CPU = 8000000
F_CLOCK = 8000000

BR,
Mathieu</description>
		<content:encoded><![CDATA[<p>Hi Prashanth,</p>
<p>The USB communication does not seem to work correctly. You should only see one Connect followed by one Ready.<br />
You are not reaching the moment where the PC tries to read or write from the SD card.</p>
<p>Have you changed the values for your target in the project Makefile ?<br />
MCU = at90usb162<br />
F_CPU = 8000000<br />
F_CLOCK = 8000000</p>
<p>BR,<br />
Mathieu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prashanth. G</title>
		<link>http://elasticsheep.com/2010/04/teensy2-usb-mass-storage-with-an-sd-card/comment-page-1/#comment-7657</link>
		<dc:creator>Prashanth. G</dc:creator>
		<pubDate>Wed, 14 Dec 2011 12:22:50 +0000</pubDate>
		<guid isPermaLink="false">http://elasticsheep.com/?p=604#comment-7657</guid>
		<description>Hi Chief,
             My at90usb162 works as a read only MMC card reader with the changes you suggested and in addition to that, I changed the configuration of endpoints which were double bank to single bank, it doesn&#039;t work with ejecting the card,

Prashanth. G</description>
		<content:encoded><![CDATA[<p>Hi Chief,<br />
             My at90usb162 works as a read only MMC card reader with the changes you suggested and in addition to that, I changed the configuration of endpoints which were double bank to single bank, it doesn&#8217;t work with ejecting the card,</p>
<p>Prashanth. G</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prashanth. G</title>
		<link>http://elasticsheep.com/2010/04/teensy2-usb-mass-storage-with-an-sd-card/comment-page-1/#comment-7603</link>
		<dc:creator>Prashanth. G</dc:creator>
		<pubDate>Mon, 12 Dec 2011 14:15:01 +0000</pubDate>
		<guid isPermaLink="false">http://elasticsheep.com/?p=604#comment-7603</guid>
		<description>Hi Chief,
           Thanks for the previous reply for at90usb162 I tried SD_RAW_SAVE_RAM to 1 and SD_RAW_WRITE_SUPPORT to 0, I had the write functions undefined removed the SDCardManager_WriteBlocks function call and compiled the same code, the card is detected by the controller but the MMC device doesnot mount on ubuntu never tried with a different OS, so should I change something on the OS side, and my at90usb162 runs at 8Mhz not 16 MHz
 the messages that I get on minicom (serial port is as follows) when the MMC card is connected, for single restart.

Connect
Connect
Connect
Connect
Connect
Ready
Connect
Connect
Ready
Connect
Connect
Ready
Connect
Connect
Ready
Connect
Connect
Ready 

and when the MMC card is not connected I get this message continuously on my serial port

MMC/SD initialization failed

Any further help greatly appreciated thanks in advance,

Prashanth. G</description>
		<content:encoded><![CDATA[<p>Hi Chief,<br />
           Thanks for the previous reply for at90usb162 I tried SD_RAW_SAVE_RAM to 1 and SD_RAW_WRITE_SUPPORT to 0, I had the write functions undefined removed the SDCardManager_WriteBlocks function call and compiled the same code, the card is detected by the controller but the MMC device doesnot mount on ubuntu never tried with a different OS, so should I change something on the OS side, and my at90usb162 runs at 8Mhz not 16 MHz<br />
 the messages that I get on minicom (serial port is as follows) when the MMC card is connected, for single restart.</p>
<p>Connect<br />
Connect<br />
Connect<br />
Connect<br />
Connect<br />
Ready<br />
Connect<br />
Connect<br />
Ready<br />
Connect<br />
Connect<br />
Ready<br />
Connect<br />
Connect<br />
Ready<br />
Connect<br />
Connect<br />
Ready </p>
<p>and when the MMC card is not connected I get this message continuously on my serial port</p>
<p>MMC/SD initialization failed</p>
<p>Any further help greatly appreciated thanks in advance,</p>
<p>Prashanth. G</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Chief Sheep</title>
		<link>http://elasticsheep.com/2010/04/teensy2-usb-mass-storage-with-an-sd-card/comment-page-1/#comment-7475</link>
		<dc:creator>The Chief Sheep</dc:creator>
		<pubDate>Tue, 06 Dec 2011 22:09:26 +0000</pubDate>
		<guid isPermaLink="false">http://elasticsheep.com/?p=604#comment-7475</guid>
		<description>Hi Prashanth,

By default, the sd-reader library caches the last read or written SD card sector in memory and thus can not work with the AT90USB162 as a sector is 512 bytes.
You can use less memory by setting SD_RAW_SAVE_RAM to 1 in sd_raw_config.h. You must also set SD_RAW_WRITE_SUPPORT to 0, because buffering is mandatory for write operations.
With this configuration, you should be able to use the AT90USB162 as a read-only card reader.

Because the Mass Storage profile is block oriented, you could implement block writing without buffering. It would require modifying the sd_raw_write_interval function to send a CMD_WRITE_SINGLE_BLOCK command to the SD card and then get the data from a callback that would read directly 16-byte packets from the USB endpoint, like it is done in SDCardManager_WriteBlockHandler.

I had not the courage to implement this for the Teensy1 and switched to the Teensy2 instead when I built my demo code ;)
BR,
Mathieu</description>
		<content:encoded><![CDATA[<p>Hi Prashanth,</p>
<p>By default, the sd-reader library caches the last read or written SD card sector in memory and thus can not work with the AT90USB162 as a sector is 512 bytes.<br />
You can use less memory by setting SD_RAW_SAVE_RAM to 1 in sd_raw_config.h. You must also set SD_RAW_WRITE_SUPPORT to 0, because buffering is mandatory for write operations.<br />
With this configuration, you should be able to use the AT90USB162 as a read-only card reader.</p>
<p>Because the Mass Storage profile is block oriented, you could implement block writing without buffering. It would require modifying the sd_raw_write_interval function to send a CMD_WRITE_SINGLE_BLOCK command to the SD card and then get the data from a callback that would read directly 16-byte packets from the USB endpoint, like it is done in SDCardManager_WriteBlockHandler.</p>
<p>I had not the courage to implement this for the Teensy1 and switched to the Teensy2 instead when I built my demo code <img src='http://elasticsheep.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
BR,<br />
Mathieu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prashanth. G</title>
		<link>http://elasticsheep.com/2010/04/teensy2-usb-mass-storage-with-an-sd-card/comment-page-1/#comment-7467</link>
		<dc:creator>Prashanth. G</dc:creator>
		<pubDate>Tue, 06 Dec 2011 13:02:35 +0000</pubDate>
		<guid isPermaLink="false">http://elasticsheep.com/?p=604#comment-7467</guid>
		<description>Hi,
    I tried running this application using the at90usb162 but it doesn&#039;t work as the memory card, I reduced the buffer size that&#039;s used to access  the memory card, then it shows the device connected as a USB MassStorage device but the device is not mounted.
My question is will the buffer of 256 bytes is ok to access the data from MMC, is there any way that I could use at90usb162(with 512 bytes SRAM) as a card reader.

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
    I tried running this application using the at90usb162 but it doesn&#8217;t work as the memory card, I reduced the buffer size that&#8217;s used to access  the memory card, then it shows the device connected as a USB MassStorage device but the device is not mounted.<br />
My question is will the buffer of 256 bytes is ok to access the data from MMC, is there any way that I could use at90usb162(with 512 bytes SRAM) as a card reader.</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gabriel</title>
		<link>http://elasticsheep.com/2010/04/teensy2-usb-mass-storage-with-an-sd-card/comment-page-1/#comment-4857</link>
		<dc:creator>gabriel</dc:creator>
		<pubDate>Mon, 25 Jul 2011 05:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://elasticsheep.com/?p=604#comment-4857</guid>
		<description>Thanks for the reply, 

The idea bascially is:

- Make the teensy a composite USB = Flashdrive + Keyboard
- Connect this to the host
- Make the &quot;Keyboard&quot; copy the files in the &quot;Flashdrive&quot; to the computer
- Dissmount the &quot;Flashdrive&quot;
- Execute the files

Keep up the good work !</description>
		<content:encoded><![CDATA[<p>Thanks for the reply, </p>
<p>The idea bascially is:</p>
<p>- Make the teensy a composite USB = Flashdrive + Keyboard<br />
- Connect this to the host<br />
- Make the &#8220;Keyboard&#8221; copy the files in the &#8220;Flashdrive&#8221; to the computer<br />
- Dissmount the &#8220;Flashdrive&#8221;<br />
- Execute the files</p>
<p>Keep up the good work !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Chief Sheep</title>
		<link>http://elasticsheep.com/2010/04/teensy2-usb-mass-storage-with-an-sd-card/comment-page-1/#comment-4698</link>
		<dc:creator>The Chief Sheep</dc:creator>
		<pubDate>Tue, 12 Jul 2011 21:29:55 +0000</pubDate>
		<guid isPermaLink="false">http://elasticsheep.com/?p=604#comment-4698</guid>
		<description>Hi Gabriel,

Do you mean driving cmd.exe from a USB keyboard profile in the Teensy2 ? Yes it could be done with a composite USB profile.

But I think the malicious potential (like in &lt;a href=&quot;http://hackaday.com/2011/06/28/teensy-avrs-used-in-penetration-testing/&quot; rel=&quot;nofollow&quot;&gt;Teensy AVRs used in penetration testing&lt;/a&gt;) could limit the usefulness of the idea.

BR
Mathieu</description>
		<content:encoded><![CDATA[<p>Hi Gabriel,</p>
<p>Do you mean driving cmd.exe from a USB keyboard profile in the Teensy2 ? Yes it could be done with a composite USB profile.</p>
<p>But I think the malicious potential (like in <a href="http://hackaday.com/2011/06/28/teensy-avrs-used-in-penetration-testing/" rel="nofollow">Teensy AVRs used in penetration testing</a>) could limit the usefulness of the idea.</p>
<p>BR<br />
Mathieu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gabriel</title>
		<link>http://elasticsheep.com/2010/04/teensy2-usb-mass-storage-with-an-sd-card/comment-page-1/#comment-4485</link>
		<dc:creator>gabriel</dc:creator>
		<pubDate>Mon, 27 Jun 2011 21:33:22 +0000</pubDate>
		<guid isPermaLink="false">http://elasticsheep.com/?p=604#comment-4485</guid>
		<description>So this gave me the great idea of activating the &quot;flashdrive&quot; (SD Card adaptor) - copy the files to the PC via CMD and then disable the SD card adaptor.</description>
		<content:encoded><![CDATA[<p>So this gave me the great idea of activating the &#8220;flashdrive&#8221; (SD Card adaptor) &#8211; copy the files to the PC via CMD and then disable the SD card adaptor.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Chief Sheep</title>
		<link>http://elasticsheep.com/2010/04/teensy2-usb-mass-storage-with-an-sd-card/comment-page-1/#comment-2887</link>
		<dc:creator>The Chief Sheep</dc:creator>
		<pubDate>Thu, 06 Jan 2011 10:16:45 +0000</pubDate>
		<guid isPermaLink="false">http://elasticsheep.com/?p=604#comment-2887</guid>
		<description>Hi Paul,

It depends on your application requirements.

The Teensy++ 2.0 uses an AT90USB1286 microcontroller with 128KB of Flash memory.

If your storage needs are within this capacity, it is indeed easier to store your data as const arrays in your flash memory (small pictures, LCD fonts...). But as soon as you want to use audio media in your application or big data files (1MB, 10MB...), an external SD card is much more practical. For a WAV audio playback application, you could store more than 3 hours of CD-quality audio (44.1kHz stereo 16 bits) on a 2GB SD card...

Another solution is to use an external serial Flash memory device integrated in your design, but it will lack the removable media practicality for your user.

Mathieu</description>
		<content:encoded><![CDATA[<p>Hi Paul,</p>
<p>It depends on your application requirements.</p>
<p>The Teensy++ 2.0 uses an AT90USB1286 microcontroller with 128KB of Flash memory.</p>
<p>If your storage needs are within this capacity, it is indeed easier to store your data as const arrays in your flash memory (small pictures, LCD fonts&#8230;). But as soon as you want to use audio media in your application or big data files (1MB, 10MB&#8230;), an external SD card is much more practical. For a WAV audio playback application, you could store more than 3 hours of CD-quality audio (44.1kHz stereo 16 bits) on a 2GB SD card&#8230;</p>
<p>Another solution is to use an external serial Flash memory device integrated in your design, but it will lack the removable media practicality for your user.</p>
<p>Mathieu</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Object Caching 312/312 objects using disk: basic

Served from: elasticsheep.com @ 2012-02-05 16:40:50 -->
