<?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>topic Re: Read and write bytes less than 512 in K66 SD card  in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Read-and-write-bytes-less-than-512-in-K66-SD-card/m-p/846470#M50943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Nikita:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the comments from file sdcard_polling.c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* @brief decription about the read/write buffer&lt;BR /&gt;* The size of the read/write buffer should be a multiple of 512, since SDHC/SDXC card uses 512-byte fixed&lt;BR /&gt;* block length and this driver example is enabled with a SDHC/SDXC card.If you are using a SDSC card, you&lt;BR /&gt;* can define the block length by yourself if the card supports partial access.&lt;BR /&gt;* The address of the read/write buffer should align to the specific DMA data buffer address align value if&lt;BR /&gt;* DMA transfer is used, otherwise the buffer address is not important.&lt;BR /&gt;* At the same time buffer address/size should be aligned to the cache line size if cache is supported.&lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2018 06:05:55 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2018-07-18T06:05:55Z</dc:date>
    <item>
      <title>Read and write bytes less than 512 in K66 SD card</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Read-and-write-bytes-less-than-512-in-K66-SD-card/m-p/846469#M50942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using SDHC interface on K66 board ,where micro SD card has been inserted.&lt;/P&gt;&lt;P&gt;Sample application without any file system is working fine with 512 bytes block size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read in a K66 reference manual&amp;nbsp; that we can set block size anything from 1 byte to 4096 bytes in SDHC_BLKATTR register.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When tried with setting block size as 4 bytes ,I am able to see write function returns success. However read to same 4 bytes block returns no data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My queries are:&lt;/P&gt;&lt;P&gt;1. why setting block size other than 512 bytes does not work even though SDHC has support&amp;nbsp; (There is no file system)?&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Can I really change block size from 512 bytes ? If not why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please correct if my understanding is wrong, I am new to SD card drivers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Nikita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 07:06:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Read-and-write-bytes-less-than-512-in-K66-SD-card/m-p/846469#M50942</guid>
      <dc:creator>nikita_k</dc:creator>
      <dc:date>2018-07-04T07:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Read and write bytes less than 512 in K66 SD card</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Read-and-write-bytes-less-than-512-in-K66-SD-card/m-p/846470#M50943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Nikita:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the comments from file sdcard_polling.c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* @brief decription about the read/write buffer&lt;BR /&gt;* The size of the read/write buffer should be a multiple of 512, since SDHC/SDXC card uses 512-byte fixed&lt;BR /&gt;* block length and this driver example is enabled with a SDHC/SDXC card.If you are using a SDSC card, you&lt;BR /&gt;* can define the block length by yourself if the card supports partial access.&lt;BR /&gt;* The address of the read/write buffer should align to the specific DMA data buffer address align value if&lt;BR /&gt;* DMA transfer is used, otherwise the buffer address is not important.&lt;BR /&gt;* At the same time buffer address/size should be aligned to the cache line size if cache is supported.&lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 06:05:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Read-and-write-bytes-less-than-512-in-K66-SD-card/m-p/846470#M50943</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2018-07-18T06:05:55Z</dc:date>
    </item>
  </channel>
</rss>

