<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>ColdFire/68K Microcontrollers and Processors中的主题 Re: MCF5485EVB and MMC over SPI</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214157#M10704</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm still trying to get the MMC over SPI driver working on my 5485 board. I found something strange when this driver is registered in the spi bus driver tree (call to spi_register_master). If I understand well, calling this function causes the probe driver function to be called. With the MMC over SPI driver, the probe function is never called by the kernel when the driver is initialized.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there somebody here who used this driver and encountered the same problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Sep 2009 14:29:42 GMT</pubDate>
    <dc:creator>schiller</dc:creator>
    <dc:date>2009-09-08T14:29:42Z</dc:date>
    <item>
      <title>MCF5485EVB and MMC over SPI</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214156#M10703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use a SDCard with my MCF5485EVB board and the Linux 2.6.25 BSP from Freescale.&lt;/P&gt;&lt;P&gt;I plugged in a custom SDCard connector on the J26 connector of the LOGIC motherboard.&lt;/P&gt;&lt;P&gt;On the software side, I enabled these options in the Linux kernel :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CONFIG_SPI=y&lt;BR /&gt;CONFIG_SPI_MASTER=y&lt;BR /&gt;CONFIG_SPI_DSPI=y&lt;/P&gt;&lt;P&gt;CONFIG_MMC=y&lt;BR /&gt;CONFIG_MMC_DEBUG=y&lt;BR /&gt;CONFIG_MMC_BLOCK=y&lt;BR /&gt;CONFIG_MMC_BLOCK_BOUNCE=y&lt;BR /&gt;CONFIG_MMC_SPI=y&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The compilation was successful. The SPI driver is loaded and ready to work.&lt;/P&gt;&lt;P&gt;I also compiled and successfully ran the spidevtest.c SPI test program following the "Help/software/device_drivers/DSPI_M547X_8X.htm" file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I plug the SDcard, nothing happens (the hardware connector has been tested). I tried to debug the SPI and MMC layers and I think that the SDCard is not correctly (or not at all) probed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyboby here had the same problem using a MMC/SDCard over SPI?&lt;/P&gt;&lt;P&gt;Is there a solution to get those cards working over SPI on a 5485?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm really waiting for your help !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 22:09:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214156#M10703</guid>
      <dc:creator>schiller</dc:creator>
      <dc:date>2009-09-04T22:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5485EVB and MMC over SPI</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214157#M10704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm still trying to get the MMC over SPI driver working on my 5485 board. I found something strange when this driver is registered in the spi bus driver tree (call to spi_register_master). If I understand well, calling this function causes the probe driver function to be called. With the MMC over SPI driver, the probe function is never called by the kernel when the driver is initialized.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there somebody here who used this driver and encountered the same problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 14:29:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214157#M10704</guid>
      <dc:creator>schiller</dc:creator>
      <dc:date>2009-09-08T14:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5485EVB and MMC over SPI</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214158#M10705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Schiller,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you have to create and register a device in linux\arch\m68k\coldfire\m547x_8x-devices.&lt;/P&gt;&lt;P&gt;In attached file, the device uses a driver defined in modalias member (.modalias = "mmc_spi").&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For more information see "linux\Documentation\driver-model" in your kernel source.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jiri Sindelar&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.etech.cz/en/" target="test_blank"&gt;http://www.etech.cz/en/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/community_files/CFCOMM/7669_m547x_8x_devices.c" rel="nofollow" target="_self"&gt;m547x_8x_devices.c&lt;/A&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-09-10&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;04:59 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 13:39:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214158#M10705</guid>
      <dc:creator>shindy2m</dc:creator>
      <dc:date>2009-09-10T13:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5485EVB and MMC over SPI</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214159#M10706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jiri,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is exactly what I found yesterday by searching how the "spidev" driver was able to load its probe function.&lt;/P&gt;&lt;P&gt;I did what you're saying and I'm now able to probe and use my SDCard as a mass storage device.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you use SDCard with the 5485 ? If yes, could you please give me the transfer rate (read/write) you have ? I find write access are very slow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 14:37:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214159#M10706</guid>
      <dc:creator>schiller</dc:creator>
      <dc:date>2009-09-10T14:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5485EVB and MMC over SPI</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214160#M10707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use SD Card with 5475.&lt;/P&gt;&lt;P&gt;I did'n measure the transfer rate exactly, but I found write access is very slow too. When I measured communication on SPI lines, I found out that problem is in very slow SPI driver (only 10 - 20% SPI bus utilisation).&lt;/P&gt;&lt;P&gt;I'm going to optimize the SPI driver in a future, because it doesn't use interrupts and DMA properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 15:34:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214160#M10707</guid>
      <dc:creator>shindy2m</dc:creator>
      <dc:date>2009-09-10T15:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5485EVB and MMC over SPI</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214161#M10708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;I'm going to optimize the SPI driver in a future, because it doesn't use interrupts and DMA properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&amp;nbsp;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;I've also noticed some strange configuration in the SPI driver (dspi_mcf.c). For example, the DSPI_FIFO_SIZE define set to 16. In the MCF5485 reference manual, it is written that the receive FIFO size is 4 entries depth (chapter 28-1). By leaving the DSPI_FIFO_SIZE to 16, I noticed that I missed data in th Rx FIFO. Setting the DSPI_FIFO_SIZE to 4 solved this problem. Did you have this problem ?&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;I did not check how the interrupts are managed. Do you have some advice or direction to optimise the SPI driver ?&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;One other question : did you check if this slow write access is not due to the "MMC over SPI" layer or even the MMC block layer ?&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 15:48:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214161#M10708</guid>
      <dc:creator>schiller</dc:creator>
      <dc:date>2009-09-10T15:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5485EVB and MMC over SPI</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214162#M10709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I had to set DSPI_FIFO_SIZE to 4 too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) These functions are called when sending data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; transfer() --&amp;gt; pump_messages()--&amp;gt;pump_transfers()--&amp;gt;write()&lt;/P&gt;&lt;P&gt;2) write() prepares only DSPI_FIFO_SIZE*4 bytes for DMA transfer and starts DMA&lt;/P&gt;&lt;P&gt;3) dspi_interrupt() --&amp;gt; read() ; write()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe, it will be better to prepare complete buffer for sending and then use these interrupts (or DMA requests).&lt;/P&gt;&lt;P&gt;— Tx FIFO is not full (TFFF)&lt;BR /&gt;— Rx FIFO is not empty (RFDF)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For more information see MCF5475 (5485) datasheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is all I know. I'm only a beginner in Linux, interrupts and DMA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 16:27:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214162#M10709</guid>
      <dc:creator>shindy2m</dc:creator>
      <dc:date>2009-09-10T16:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5485EVB and MMC over SPI</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214163#M10710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok... Im' gonna try to see what I can do. I'll tell you if I have relevant results.&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 18:41:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214163#M10710</guid>
      <dc:creator>schiller</dc:creator>
      <dc:date>2009-09-10T18:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5485EVB and MMC over SPI</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214164#M10711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm still working on the MMC over SPI code to understand why the write access are so slow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I played with the SPI clock frequency. After severals tires, I noticed that switching the clock around 2Mhz allow me to have faster write access. With a 25Mhz clock, I got a 50kB/s write access. With a 2Mhz clock, I got a 75 kB/s rate.&lt;/P&gt;&lt;P&gt;Any idea about this curious results ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 20:15:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214164#M10711</guid>
      <dc:creator>schiller</dc:creator>
      <dc:date>2009-09-14T20:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5485EVB and MMC over SPI</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214165#M10712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks, &amp;nbsp;I am trying to get an SD card up on MMC+SPI on a MCF 5475/5485 unit. &amp;nbsp;I have performed the kernel configuration as noted in your first email and added the&amp;nbsp;additional&amp;nbsp;platform device stuff and got a few log messages on boot. &amp;nbsp;However, no /dev/mmc device can be found after boot. &amp;nbsp;What am I doing wrong? &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are the steps to access a SD card filesystem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a snippet of my logs:&lt;/P&gt;&lt;P&gt;﻿...dmesg output...&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;DSPI: Coldfire master initialized&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mice: PS/2 mouse device common for all mice&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;i2c /dev entries driver&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;i2c-algo-mcf.o: I2C ColdFire algorithm module is loaded.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc_spi spi1.0: ASSUMING SPI bus stays unshared!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc_spi spi1.0: ASSUMING 3.2-3.4 V slot power&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc0: clock 0Hz busmode 0 powermode 0 cs 0 Vdd 0 width 0 timing 0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc_spi spi1.0: SD/MMC host mmc0, no DMA, no WP, no poweroff&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc0: clock 0Hz busmode 2 powermode 1 cs 1 Vdd 21 width 0 timing 0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc_spi spi1.0: mmc_spi: power up (21)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc0: clock 400000Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc_spi spi1.0: mmc_spi: power on (21)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;Bad message or transfer state handler. &lt;SPAN style="white-space: pre;"&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;IRQ status = c2020000&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc_spi spi1.0: mmc_spi: &amp;nbsp;clock to 400000 Hz, 0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc0: starting CMD0 arg 00000000 flags 000000c0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc_spi spi1.0: &amp;nbsp; mmc_spi: CMD0, resp R1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc0: req done (CMD0): -110: 00000000 00000000 00000000 00000000&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc0: starting CMD8 arg 000001aa flags 000002f5&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc_spi spi1.0: &amp;nbsp; mmc_spi: CMD8, resp R3/R4/R7&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc0: req done (CMD8): -110: 00000000 00000000 00000000 00000000&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc0: starting CMD5 arg 00000000 flags 000002e1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc_spi spi1.0: &amp;nbsp; mmc_spi: CMD5, resp R3/R4/R7&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;TCP cubic registered&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc0: req failed (CMD5): -110, retrying...&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc_spi spi1.0: &amp;nbsp; mmc_spi: CMD5, resp R3/R4/R7&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc0: req failed (CMD5): -110, retrying...&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc_spi spi1.0: &amp;nbsp; mmc_spi: CMD5, resp R3/R4/R7&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;NET: Registered protocol family 1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;NET: Registered protocol family 17&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;NET: Registered protocol family 15&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc0: req failed (CMD5): -110, retrying...&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc_spi spi1.0: &amp;nbsp; mmc_spi: CMD5, resp R3/R4/R7&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc0: req done (CMD5): -110: 00000000 00000000 00000000 00000000&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc0: starting CMD55 arg 00000000 flags 000000f5&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc_spi spi1.0: &amp;nbsp; mmc_spi: CMD55, resp R1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc0: req done (CMD55): -110: 00000000 00000000 00000000 00000000&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc0: starting CMD55 arg 00000000 flags 000000f5&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc_spi spi1.0: &amp;nbsp; mmc_spi: CMD55, resp R1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;RPC: Registered udp transport module.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;RPC: Registered tcp transport module.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc0: req done (CMD55): -110: 00000000 00000000 00000000 00000000&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc0: starting CMD55 arg 00000000 flags 000000f5&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc_spi spi1.0: &amp;nbsp; mmc_spi: CMD55, resp R1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc0: req done (CMD55): -110: 00000000 00000000 00000000 00000000&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc0: starting CMD55 arg 00000000 flags 000000f5&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc_spi spi1.0: &amp;nbsp; mmc_spi: CMD55, resp R1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc0: req done (CMD55): -110: 00000000 00000000 00000000 00000000&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc0: starting CMD1 arg 00000000 flags 000000e1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc_spi spi1.0: &amp;nbsp; mmc_spi: CMD1, resp R1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;drivers/rtc/hctosys.c: unable to open rtc device (rtc0)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;VFS: Mounted root (jffs2 filesystem) readonly.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc0: req done (CMD1): -110: 00000000 00000000 00000000 00000000&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: small;"&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT face="'courier new', courier"&gt;mmc0: clock 0Hz busmode 2 powermode 0 cs 1 Vdd 0 width 0 timing 0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 06:59:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214165#M10712</guid>
      <dc:creator>Dave_SC</dc:creator>
      <dc:date>2010-10-05T06:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5485EVB and MMC over SPI</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214166#M10713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An update to my question... I was able to get the SD flash talking on MMC+SPI... My board has some different chip selects that the stock eval. &amp;nbsp;When I supplied the correct chip select it was able to identify the SD and read and write to it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The next problem is that I can only write at about 25Kb/S. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone been able to&amp;nbsp;achieve&amp;nbsp;faster write speeds?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 04:59:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214166#M10713</guid>
      <dc:creator>Dave_SC</dc:creator>
      <dc:date>2010-10-06T04:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5485EVB and MMC over SPI</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214167#M10714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are also using a MMC over SPI on a MCF5475. With our custom board, we can't get more than 70kB/s. After a lot of tests, it seems that the quality of the SDCard (brand, speed...) can act on the write speed.&lt;/P&gt;&lt;P&gt;I've also figured out that reducing the SPI clock speed increased the write speed on the SDCard.&lt;/P&gt;&lt;P&gt;I can't remember the clock speed. On the SDCard side, writing speed has changed from 35/40kB/s to 70kB/s. I think this point is closely depending to our custom hardware.&lt;/P&gt;&lt;P&gt;Please give us more information If you achieve to increase your wrinting speed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 13:45:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214167#M10714</guid>
      <dc:creator>schiller</dc:creator>
      <dc:date>2010-10-06T13:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5485EVB and MMC over SPI</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214168#M10715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same problem and messages on boot. I use a custom board with 5485 CPU. The devices.c has the board configuration lines from Jiri Sindelar's example above. I'm using the CPU's chip select 2 (DSPICS2). I also have an RTC chip at CS0 and that won't initialize either (I have a board config lines for it also). If you have SD over MMC working, please share the connection details and devices.c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. with a custom operating system the RTC is working fine so for it there's no connection problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the Freescale BSP 20111026 which compiles fine and I boot only the kernel image vmlinux.bin from memory using a custom bootloader. Root filesystem is mounted from NFS. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 08:52:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214168#M10715</guid>
      <dc:creator>pmatil</dc:creator>
      <dc:date>2013-06-17T08:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5485EVB and MMC over SPI</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214169#M10716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm answering to myself, in case anyone struggles with the same problem. I've finally got the SD card reading and writing to work. I'm using the Freescale BSP 20111026 and it seems that the dspi driver has a number of bugs. First, the DSPI_PAR register is not correctly initialized for 547x/8x CPUs. Chip selects 2, 3 and 5 are not activated but are configured as GPIO. This mistake is in dspi_mcf.c which assumes that the DSPI_PAR register is 8-bits wide. For 547x/8x it's 16-bits. This fix only applies if you're using other chip selects than CS0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In function coldfire_spi_probe() there's lines for setting *drv_data-&amp;gt;par = platform_info-&amp;gt;par_val. Change it to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#elif defined(CONFIG_M547X_8X)&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Arial','sans-serif';"&gt;*drv_data-&amp;gt;par = platform_info-&amp;gt;par_val16;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#else&lt;/P&gt;&lt;P&gt; &lt;STRONG style="font-family: 'Arial','sans-serif';"&gt;*drv_data-&amp;gt;par = platform_info-&amp;gt;par_val;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;#endif &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Platform info struct is from devices.c and from there it can be set as .par_val16 = 0x1FFF. Also, struct driver_data {} needs a line u16 par_val; I've made a conditional definition to set par_val as u16 if CPU is 547x/8x and else u8. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second bug is the FIFO depth mentioned above. Setting that to 4 is correct. I have also not been able to get write speeds higher than ~20 kB/s. Read speed is however, about 1,5 MB/s. The card tested was a sandisk 2 GB class 2 card. Did anyone manage to optimize the write speed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 11:07:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5485EVB-and-MMC-over-SPI/m-p/214169#M10716</guid>
      <dc:creator>pmatil</dc:creator>
      <dc:date>2014-02-07T11:07:44Z</dc:date>
    </item>
  </channel>
</rss>

