<?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: adding lwip on a existent project in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/adding-lwip-on-a-existent-project/m-p/1766455#M9346</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/184821"&gt;@alfredos&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/369"&gt;@danielchen&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually I'm too facing the same issue, rather for me I created a new project from scratch - for c++&lt;/P&gt;&lt;P&gt;The current values before system assert happens are as follows:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Counter =0&amp;nbsp; (decremented from 1000)&lt;/LI&gt;&lt;LI&gt;regValue = 65535&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Since regValue hasn't reached and the Counter/PHY_READID_TIMEOUT_COUNT haven't satisfied the while loop condition - The status turns into&amp;nbsp;kStatus_Fail.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How does the things work under this hood ?&lt;/P&gt;&lt;P&gt;Any help is appreciated.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2023 10:59:32 GMT</pubDate>
    <dc:creator>GanesanGuru</dc:creator>
    <dc:date>2023-11-30T10:59:32Z</dc:date>
    <item>
      <title>adding lwip on a existent project</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/adding-lwip-on-a-existent-project/m-p/1256693#M6848</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm trying to add lwip support to a existent project on FRDM-K66F&lt;/P&gt;&lt;P&gt;First I've created a new project (freeRTOS) with lwip support (and manny others supported devices), then I've created a other project from NXP example (dhcp_lwip_freeRTOS).&lt;/P&gt;&lt;P&gt;Both of then are working ok, but if I try to copy the contents of the lwip_dhcp_freertos.c to the main c file into my project it can't initialize the device:&lt;/P&gt;&lt;PRE&gt;Initializing PHY...&lt;BR /&gt;&lt;BR /&gt;Cannot initialize PHY.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;Another problem: If I copy the files freeRTOSConfig.h and lwipopts.h from nxp example to my source folder and delete the templete folders under freertos folder and lwip folders it don't compile anymore.&lt;/P&gt;&lt;P&gt;Is there a tutorial or something like that on how I can add lwip with dhcp support on a existent project?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--- UPDATE ---&lt;/P&gt;&lt;P&gt;Debbuging my project I found that the code fails here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;//File:fsl_phyksz8081.c
    /* Check PHY ID. */
    do
    {
        result = MDIO_Read(handle-&amp;gt;mdioHandle, handle-&amp;gt;phyAddr, PHY_ID1_REG, &amp;amp;regValue);
        if (result != kStatus_Success)
        {
            return result;
        }
        counter--;
    } while ((regValue != PHY_CONTROL_ID1) &amp;amp;&amp;amp; (counter != 0U));

    if (counter == 0U)
    {
        return kStatus_Fail;
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The variable regValue aways had 0x00.&lt;/P&gt;&lt;P&gt;On the example project the regValue had 0x22&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--- UPDATE ---&lt;/P&gt;&lt;P&gt;A very strange thing happen, when it reads the current regValue it was 0x00 on example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alfredos_0-1617657260360.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/141345i934490F5B6FCC8AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alfredos_0-1617657260360.png" alt="alfredos_0-1617657260360.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;regVallue are the last signaficative bits of mmfr&lt;/P&gt;&lt;P&gt;But when the function returns it had 0x22:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alfredos_1-1617657532080.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/141346iAEB09BB099A2BDD3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alfredos_1-1617657532080.png" alt="alfredos_1-1617657532080.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The same didn't happen on my project:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alfredos_2-1617657915517.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/141347i482436214014FB0A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alfredos_2-1617657915517.png" alt="alfredos_2-1617657915517.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alfredos_3-1617657971461.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/141348iEAF4B7F54CEF934C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alfredos_3-1617657971461.png" alt="alfredos_3-1617657971461.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Somebody can help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 21:26:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/adding-lwip-on-a-existent-project/m-p/1256693#M6848</guid>
      <dc:creator>alfredos</dc:creator>
      <dc:date>2021-04-05T21:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: adding lwip on a existent project</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/adding-lwip-on-a-existent-project/m-p/1284651#M7010</link>
      <description>&lt;P&gt;Hi alfredos:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just an information: when you copy another folder into your MCUXpresso project, the default behavior is: this folder will be excluded from build. you need to uncheck "exclude resource from build".&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielchen_0-1622451093788.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/145875i03A7E883D47375D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danielchen_0-1622451093788.png" alt="danielchen_0-1622451093788.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 08:52:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/adding-lwip-on-a-existent-project/m-p/1284651#M7010</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2021-05-31T08:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: adding lwip on a existent project</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/adding-lwip-on-a-existent-project/m-p/1766455#M9346</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/184821"&gt;@alfredos&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/369"&gt;@danielchen&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually I'm too facing the same issue, rather for me I created a new project from scratch - for c++&lt;/P&gt;&lt;P&gt;The current values before system assert happens are as follows:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Counter =0&amp;nbsp; (decremented from 1000)&lt;/LI&gt;&lt;LI&gt;regValue = 65535&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Since regValue hasn't reached and the Counter/PHY_READID_TIMEOUT_COUNT haven't satisfied the while loop condition - The status turns into&amp;nbsp;kStatus_Fail.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How does the things work under this hood ?&lt;/P&gt;&lt;P&gt;Any help is appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 10:59:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/adding-lwip-on-a-existent-project/m-p/1766455#M9346</guid>
      <dc:creator>GanesanGuru</dc:creator>
      <dc:date>2023-11-30T10:59:32Z</dc:date>
    </item>
  </channel>
</rss>

