<?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>i.MX RT Crossover MCUs中的主题 Re: dev_msc_sdcard set read only</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/dev-msc-sdcard-set-read-only/m-p/1181301#M11203</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;According to your description, it seems that you want to simulate a CD-ROM device instead of a U-disk, to make it, it needs more code modification than you expect actually and you can learn more details by review the link: &lt;A href="https://www.usbcopier.com/usb-write-protection/#a" target="_blank"&gt;https://www.usbcopier.com/usb-write-protection/#a&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
    <pubDate>Wed, 11 Nov 2020 07:42:00 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2020-11-11T07:42:00Z</dc:date>
    <item>
      <title>dev_msc_sdcard set read only</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/dev-msc-sdcard-set-read-only/m-p/1180439#M11181</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; We have refereed&amp;nbsp;evkmimxrt1064_dev_msc_sdcard_bm example code.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; It was working fine but from pc we can able to delete or write or format the drive.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; But we want to set read only customer should not delete or write or format the driver.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I have seen macro for formatted device but we don't know how to use.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/*! @brief Unformatted Media - Maximum formatting capacity for this cartridge*/
#define USB_DEVICE_MSC_UFI_UNFORMATTED_MEDIA 0x01U&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;usb_device_mode_parameters_header_struct_t g_ModeParametersHeader = {
    /*refer to ufi spec mode parameter header*/
    0x0000, /*!&amp;lt; Mode Data Length*/
    0x00,   /*!&amp;lt;Default medium type (current mounted medium type)*/
    0x00,   /*!MODE SENSE command, a Write Protected bit of zero indicates the medium is write enabled*/
    {0x00, 0x00, 0x00, 0x00} /*!&amp;lt;This bit should be set to zero*/
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;How to set properly configure to avoid write or delete or modify or format the drive ?&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Vasu&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 03:42:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/dev-msc-sdcard-set-read-only/m-p/1180439#M11181</guid>
      <dc:creator>vasudhevan</dc:creator>
      <dc:date>2020-11-10T03:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: dev_msc_sdcard set read only</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/dev-msc-sdcard-set-read-only/m-p/1181301#M11203</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;According to your description, it seems that you want to simulate a CD-ROM device instead of a U-disk, to make it, it needs more code modification than you expect actually and you can learn more details by review the link: &lt;A href="https://www.usbcopier.com/usb-write-protection/#a" target="_blank"&gt;https://www.usbcopier.com/usb-write-protection/#a&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 07:42:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/dev-msc-sdcard-set-read-only/m-p/1181301#M11203</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2020-11-11T07:42:00Z</dc:date>
    </item>
  </channel>
</rss>

