<?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: Send raw ethernet packets with imxrt1064 in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Send-raw-ethernet-packets-with-imxrt1064/m-p/1366544#M17004</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/179182"&gt;@Davidino&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share your custom code here for me to reproduce your issue on my side?&amp;nbsp; or send it to me via a support ticket .&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>Thu, 04 Nov 2021 08:44:46 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2021-11-04T08:44:46Z</dc:date>
    <item>
      <title>Send raw ethernet packets with imxrt1064</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Send-raw-ethernet-packets-with-imxrt1064/m-p/1366477#M17003</link>
      <description>&lt;P&gt;Goodmorning,&lt;/P&gt;&lt;P&gt;I'm using imxrt1064-evk demo board and SDK version 2.9.1. &lt;STRONG&gt;I'm using optimize most (-O3) and linktime optimization flag enabled since we need the maximum performance.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Our main objective consists of sending raw ethernet frames. In order to do that, at first I tested the LWIP tcp raw echo example from the SDK and it worked perfectly. Then, reading lwip code, I didn't find any ready to use functions to send raw packets, hence I wrote some code on my own for this purpose.&lt;/P&gt;&lt;P&gt;When I try my custom functions, I get the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Thread #1 1 (Suspended : Signal : SIGHUP:Hangup)
HardFault_Handler() at 0x7000af40
&amp;lt;signal handler called&amp;gt;() at 0xffffffe9 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;But, if I untick the linktime optimization flag, the error doesn't happens and the code that I wrote, works.&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I've got two questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Why does the error happen only with optimization flag enabled?&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Is it correct to state that lwip doens't provide the possibility to send raw frames?&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davidino&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 07:31:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Send-raw-ethernet-packets-with-imxrt1064/m-p/1366477#M17003</guid>
      <dc:creator>Davidino</dc:creator>
      <dc:date>2021-11-04T07:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Send raw ethernet packets with imxrt1064</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Send-raw-ethernet-packets-with-imxrt1064/m-p/1366544#M17004</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/179182"&gt;@Davidino&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share your custom code here for me to reproduce your issue on my side?&amp;nbsp; or send it to me via a support ticket .&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>Thu, 04 Nov 2021 08:44:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Send-raw-ethernet-packets-with-imxrt1064/m-p/1366544#M17004</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2021-11-04T08:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Send raw ethernet packets with imxrt1064</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Send-raw-ethernet-packets-with-imxrt1064/m-p/1366772#M17008</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/369"&gt;@danielchen&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;thank you for your answer. I'll open a ticket stating that I need you to analyze the problem, but please read the following points:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I cannot pass you the whole project as it's very big and could be confusing to analyze, I'll give you the code for creating raw sockets and how I initialize, send data and receive. Besides the code is very similar to enet_ethernetif_kinetis.c and enet_ethernetif.c&lt;/LI&gt;&lt;LI&gt;As per my test, the problem happens when I receive data. If I comment out the receiving part it doesn't happen.&lt;/LI&gt;&lt;LI&gt;On my desk I'm using a device that mirrors the data that I send, that's how I receive raw packets.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davidino&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 14:44:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Send-raw-ethernet-packets-with-imxrt1064/m-p/1366772#M17008</guid>
      <dc:creator>Davidino</dc:creator>
      <dc:date>2021-11-04T14:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Send raw ethernet packets with imxrt1064</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Send-raw-ethernet-packets-with-imxrt1064/m-p/1374822#M17232</link>
      <description>&lt;P&gt;Hello to all,&lt;/P&gt;&lt;P&gt;I resolved the problem increasing RAM Stack space as I noticed that variables were created at an illegal space address.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Davidino&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 07:31:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Send-raw-ethernet-packets-with-imxrt1064/m-p/1374822#M17232</guid>
      <dc:creator>Davidino</dc:creator>
      <dc:date>2021-11-22T07:31:31Z</dc:date>
    </item>
  </channel>
</rss>

