<?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 ProcessorsのトピックRe: WinEC7 - full LAN (FEC) driver disrupts SDHC driver operation if started after SDHC driver</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/WinEC7-full-LAN-FEC-driver-disrupts-SDHC-driver-operation-if/m-p/286590#M33837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a code issue in file "platform\imx53_smd\src\inc\bsp_cfg.h", the macro&lt;/P&gt;&lt;P&gt;#define BSP_ETH_RST_IOMUX_PIN&amp;nbsp;&amp;nbsp; DDK_IOMUX_PAD_PATA_DA_0&lt;/P&gt;&lt;P&gt;should be&lt;/P&gt;&lt;P&gt;#define BSP_ETH_RST_IOMUX_PIN&amp;nbsp;&amp;nbsp; DDK_IOMUX_PIN_PATA_DA_0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The original code had set wrong IOMUX register for Ethernet reset pin, that pin is SD1_DATA1, so after fec driver runs, the sdhc1 driver will fail to work.&lt;/P&gt;&lt;P&gt;DDK_IOMUX_PAD_PATA_DA_0 = 178 = DDK_IOMUX_PIN_SD1_DATA1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Jun 2013 07:33:21 GMT</pubDate>
    <dc:creator>qiang_li-mpu_se</dc:creator>
    <dc:date>2013-06-19T07:33:21Z</dc:date>
    <item>
      <title>WinEC7 - full LAN (FEC) driver disrupts SDHC driver operation if started after SDHC driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/WinEC7-full-LAN-FEC-driver-disrupts-SDHC-driver-operation-if/m-p/286587#M33834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think found another issue with SDHC driver in WinEC7 BSP.&lt;/P&gt;&lt;P&gt;It looks like SDHC driver conflicts with FEC (LAN) driver.&lt;/P&gt;&lt;P&gt;The situation is as follow:&lt;/P&gt;&lt;P&gt;- if SDHC driver starts after FEC driver everything seems to be ok&lt;/P&gt;&lt;P&gt;- if FEC driver starts after SDHC it kills SDHC driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was found during my attempt to register FEC driver on the fly using NDIS register IOCTL.&lt;/P&gt;&lt;P&gt;CE image starts without FEC driver being registered/active.&lt;/P&gt;&lt;P&gt;After FEC registration any subsequent SDHC access attempt fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most likely this problem causes issues with persistent registry on SD card.&lt;/P&gt;&lt;P&gt;I tried implementing it but SDHC stops working after the registry is read from card and used.&lt;/P&gt;&lt;P&gt;Funny thing but persistent registry worked ok when CE was being debugged over LAN by using platform builder&lt;/P&gt;&lt;P&gt;but completely failed when debugger is not used.&lt;/P&gt;&lt;P&gt;I think it happens because when PB uses LAN to debug CE kernel so it effectively bans normal LAN driver and uses&lt;/P&gt;&lt;P&gt;KITL version of it instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I added 2 and 2 and my conclusion is:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Full LAN (FEC) driver disrupts SDHC driver operation if started after SDHC driver.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has someone seen this issue?&lt;/P&gt;&lt;P&gt;It would be great to hear something from support team as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Alexey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS I will post my finding/fixes if I manage to fix it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 14:17:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/WinEC7-full-LAN-FEC-driver-disrupts-SDHC-driver-operation-if/m-p/286587#M33834</guid>
      <dc:creator>AlexeyT</dc:creator>
      <dc:date>2013-06-11T14:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: WinEC7 - full LAN (FEC) driver disrupts SDHC driver operation if started after SDHC driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/WinEC7-full-LAN-FEC-driver-disrupts-SDHC-driver-operation-if/m-p/286588#M33835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is identified.&lt;/P&gt;&lt;P&gt;It seems that SDHC3 conflict with FEC transceiver reset line.&lt;/P&gt;&lt;P&gt;Pin 6 of GPIO7 can be configured as one of the SDHC3 lines or it can be used as&lt;/P&gt;&lt;P&gt;GPIO output pin connected to FEC transceiver reset line.&lt;/P&gt;&lt;P&gt;It looks like IT WAS connected to FEC reset some time ago but not any more (at least for iMX53 Sabre board).&lt;/P&gt;&lt;P&gt;On Sabre it is used for SDHC3 but in the code (surprise!) it was forgotten.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is interesting that is was fixed in function OALKitlFECBSPInit which has #ifdef BSP_ETH_USE_HW_RST conditional code and that define is not in defined state.&lt;/P&gt;&lt;P&gt;But in BSPFECIomuxConfig function it was forgotten and it still tries to reconfigure GPIO7_6 for FEC reset causing SDHC3 to fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that&lt;/P&gt;&lt;P&gt;- if it is configured for GPIO out, it causes SDHC3 to fail&lt;/P&gt;&lt;P&gt;- if it is configured for SDHC3, it causes LAN to fail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we have SDHC3 and LAN devices working together correctly?&lt;/P&gt;&lt;P&gt;Freescale support team, could you please have a look at it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Alexey&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 14:12:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/WinEC7-full-LAN-FEC-driver-disrupts-SDHC-driver-operation-if/m-p/286588#M33835</guid>
      <dc:creator>AlexeyT</dc:creator>
      <dc:date>2013-06-17T14:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: WinEC7 - full LAN (FEC) driver disrupts SDHC driver operation if started after SDHC driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/WinEC7-full-LAN-FEC-driver-disrupts-SDHC-driver-operation-if/m-p/286589#M33836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update on the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was a bit wrong but there still a conflict.&lt;/P&gt;&lt;P&gt;If mux mode of that pin is ALT1 (GPIO&amp;amp;_6), SDHC fails wo work.&lt;/P&gt;&lt;P&gt;If mux mode is ALT0 (DA_0), SDHC work ok but LAN fails to work.&lt;/P&gt;&lt;P&gt;This occures on Sabre iMX53 prototype board so it can be easily reproduced by support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The workaround:&lt;/P&gt;&lt;P&gt;Change BSPFECIomuxConfig to :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BOOL BSPFECIomuxConfig( IN BOOL Enable )&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DDK_IOMUX_PIN_MUXMODE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; savedRstMuxmode;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DDK_IOMUX_PIN_SION&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; savedRstSion;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DEBUGMSG(ZONE_FUNCTION, (TEXT("FEC: +BSPFECIomuxConfig\r\n")));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Enable)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Save MUX mode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DDKIomuxGetPinMux(BSP_ETH_RST_IOMUX_PIN, &amp;amp;savedRstMuxmode,&amp;amp;savedRstSion);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Here goes original MUX configuration code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Restore MUX mode back&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DDKIomuxSetPinMux(BSP_ETH_RST_IOMUX_PIN, savedRstMuxmode,savedRstSion);&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return TRUE;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LAN driver only use reset once so it is acceptable solution.&lt;/P&gt;&lt;P&gt;Please note that for a fraction of time SDHC will be unavailable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This workarond can help with 'persistent registry on SD card' issue if your design includes FEC LAN.&lt;/P&gt;&lt;P&gt;Think registry issue is caused by SDHC driver instantiated BEFORE LAN driver so original LAN configuration code changes&lt;/P&gt;&lt;P&gt;mux mode of pin to GPIO7_6 to ALT1 and caused SDHC driver to fail.&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Alexey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 08:58:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/WinEC7-full-LAN-FEC-driver-disrupts-SDHC-driver-operation-if/m-p/286589#M33836</guid>
      <dc:creator>AlexeyT</dc:creator>
      <dc:date>2013-06-18T08:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: WinEC7 - full LAN (FEC) driver disrupts SDHC driver operation if started after SDHC driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/WinEC7-full-LAN-FEC-driver-disrupts-SDHC-driver-operation-if/m-p/286590#M33837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a code issue in file "platform\imx53_smd\src\inc\bsp_cfg.h", the macro&lt;/P&gt;&lt;P&gt;#define BSP_ETH_RST_IOMUX_PIN&amp;nbsp;&amp;nbsp; DDK_IOMUX_PAD_PATA_DA_0&lt;/P&gt;&lt;P&gt;should be&lt;/P&gt;&lt;P&gt;#define BSP_ETH_RST_IOMUX_PIN&amp;nbsp;&amp;nbsp; DDK_IOMUX_PIN_PATA_DA_0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The original code had set wrong IOMUX register for Ethernet reset pin, that pin is SD1_DATA1, so after fec driver runs, the sdhc1 driver will fail to work.&lt;/P&gt;&lt;P&gt;DDK_IOMUX_PAD_PATA_DA_0 = 178 = DDK_IOMUX_PIN_SD1_DATA1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2013 07:33:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/WinEC7-full-LAN-FEC-driver-disrupts-SDHC-driver-operation-if/m-p/286590#M33837</guid>
      <dc:creator>qiang_li-mpu_se</dc:creator>
      <dc:date>2013-06-19T07:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: WinEC7 - full LAN (FEC) driver disrupts SDHC driver operation if started after SDHC driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/WinEC7-full-LAN-FEC-driver-disrupts-SDHC-driver-operation-if/m-p/286591#M33838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for answer.&lt;/P&gt;&lt;P&gt;I checked other BSP's and found following :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In EVK code it use different pin but still has the same issue: pad instead of pin&lt;BR /&gt;#define BSP_ETH_RST_IOMUX_PIN&amp;nbsp;&amp;nbsp; DDK_IOMUX_PAD_KEY_COL3&lt;/P&gt;&lt;P&gt;AFAIK it should be #define BSP_ETH_RST_IOMUX_PIN&amp;nbsp;&amp;nbsp; DDK_IOMUX_PIN_KEY_COL3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ARD code has the same issue as SMD&lt;/P&gt;&lt;P&gt;Could you please check other BSP code as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Alexey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2013 09:07:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/WinEC7-full-LAN-FEC-driver-disrupts-SDHC-driver-operation-if/m-p/286591#M33838</guid>
      <dc:creator>AlexeyT</dc:creator>
      <dc:date>2013-06-19T09:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: WinEC7 - full LAN (FEC) driver disrupts SDHC driver operation if started after SDHC driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/WinEC7-full-LAN-FEC-driver-disrupts-SDHC-driver-operation-if/m-p/286592#M33839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, all of them are wrong, the "BSP_ETH_RST_IOMUX_PIN" should use DDK_IOMUX_PIN_xxx, not DDK_IOMUX_PAD_xxx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2013 09:11:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/WinEC7-full-LAN-FEC-driver-disrupts-SDHC-driver-operation-if/m-p/286592#M33839</guid>
      <dc:creator>qiang_li-mpu_se</dc:creator>
      <dc:date>2013-06-19T09:11:57Z</dc:date>
    </item>
  </channel>
</rss>

