<?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>S32GのトピックRe: programming interface to eMMC</title>
    <link>https://community.nxp.com/t5/S32G/programming-interface-to-eMMC/m-p/1531080#M1483</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You need to go with QNX for support on its OS, but you need erase and burn the eMMC every time you program code.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Fri, 30 Sep 2022 11:47:13 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2022-09-30T11:47:13Z</dc:date>
    <item>
      <title>programming interface to eMMC</title>
      <link>https://community.nxp.com/t5/S32G/programming-interface-to-eMMC/m-p/1530426#M1475</link>
      <description>&lt;P&gt;Hello NXP Expert,&lt;/P&gt;&lt;P&gt;I am very new to the QNX and NXP S32G. I am trying to access eMMC Card through C Code. Earlier, we managed to access eMMC Card on Linux using the following sample code. But in QNX, it faced an issue using ioctl() calls.&lt;/P&gt;&lt;P&gt;Do you have any information and/or documents discussing accessing eMMC in QNX through programming?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I want to know how to read (ex. a device's physical sector size), write, and erase (number of blocks) in eMMC.&lt;BR /&gt;This API's like open() close(), lssek(), write() works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample Code used for LINUX&lt;/P&gt;&lt;P&gt;int fd = open("/dev/mmcblk0", O_RDWR);&lt;BR /&gt;&lt;BR /&gt;struct stat sb;&lt;BR /&gt;fstat(fd, &amp;amp;sb)&lt;BR /&gt;&lt;BR /&gt;int secsize = 0;&lt;BR /&gt;ret = ioctl(fd, BLKSSZGET, &amp;amp;secsize); //a device's physical sector size&lt;BR /&gt;if (ret &amp;lt; 0)&lt;BR /&gt;{&lt;BR /&gt;// set the erase block size&lt;BR /&gt;uint64_t range[2];&lt;BR /&gt;range[0] = offset; // input address&lt;BR /&gt;range[1] = len; // input block size&lt;BR /&gt;if (ioctl(fd, BLKDISCARD, &amp;amp;range)&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;close(fd)&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Manoj&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 12:21:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/programming-interface-to-eMMC/m-p/1530426#M1475</guid>
      <dc:creator>manojp</dc:creator>
      <dc:date>2022-09-29T12:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: programming interface to eMMC</title>
      <link>https://community.nxp.com/t5/S32G/programming-interface-to-eMMC/m-p/1531080#M1483</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You need to go with QNX for support on its OS, but you need erase and burn the eMMC every time you program code.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 11:47:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/programming-interface-to-eMMC/m-p/1531080#M1483</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2022-09-30T11:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: programming interface to eMMC</title>
      <link>https://community.nxp.com/t5/S32G/programming-interface-to-eMMC/m-p/1531372#M1489</link>
      <description>&lt;P&gt;thanks, I got help from QNX for same.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Oct 2022 08:52:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/programming-interface-to-eMMC/m-p/1531372#M1489</guid>
      <dc:creator>manojp</dc:creator>
      <dc:date>2022-10-02T08:52:23Z</dc:date>
    </item>
  </channel>
</rss>

