<?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 M52235EVB gcc opentcp arpinit in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52235EVB-gcc-opentcp-arpinit/m-p/129943#M715</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;I'm trying to include opentcp in my application. I have a small UART application which is writing data to the serial port just fine. This is on a M52235EVB. I'm using gcc under Linux. However, when I include opentcp and call arpinit in my program it will not run. This occurs even if arpinit is called at the very end of the program. It will lock up long before the it reaches the call to arpinit. If I change the #if 0 to a #if 1 I will never reach the arpinit.&lt;/SPAN&gt;&lt;PRE&gt;&amp;nbsp; uart_putchar(0,'&amp;gt;');

&amp;nbsp; while (1) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (uart_getchar_present(0)) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; led = ~led;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; led_val(led);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c = uart_getchar(0);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uart_putchar(0,c);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (c== 'q') {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }
#if 0
 arpinit();
#endif


&lt;/PRE&gt;&lt;SPAN&gt;It seems like it's the inclusion of arpinit which is causing the problem. Any ideas or anybody who has experienced similar problems?&lt;/SPAN&gt;&lt;P&gt;TIA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Apr 2007 04:20:55 GMT</pubDate>
    <dc:creator>Petter</dc:creator>
    <dc:date>2007-04-09T04:20:55Z</dc:date>
    <item>
      <title>M52235EVB gcc opentcp arpinit</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52235EVB-gcc-opentcp-arpinit/m-p/129943#M715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;I'm trying to include opentcp in my application. I have a small UART application which is writing data to the serial port just fine. This is on a M52235EVB. I'm using gcc under Linux. However, when I include opentcp and call arpinit in my program it will not run. This occurs even if arpinit is called at the very end of the program. It will lock up long before the it reaches the call to arpinit. If I change the #if 0 to a #if 1 I will never reach the arpinit.&lt;/SPAN&gt;&lt;PRE&gt;&amp;nbsp; uart_putchar(0,'&amp;gt;');

&amp;nbsp; while (1) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (uart_getchar_present(0)) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; led = ~led;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; led_val(led);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c = uart_getchar(0);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uart_putchar(0,c);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (c== 'q') {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }
#if 0
 arpinit();
#endif


&lt;/PRE&gt;&lt;SPAN&gt;It seems like it's the inclusion of arpinit which is causing the problem. Any ideas or anybody who has experienced similar problems?&lt;/SPAN&gt;&lt;P&gt;TIA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 04:20:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52235EVB-gcc-opentcp-arpinit/m-p/129943#M715</guid>
      <dc:creator>Petter</dc:creator>
      <dc:date>2007-04-09T04:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: M52235EVB gcc opentcp arpinit</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52235EVB-gcc-opentcp-arpinit/m-p/129944#M716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;It seems like this is related to global variables (e.g. .bss) data which is initialized. But I have other programs using the same linker-script and makefiles which is also using global variables...&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 00:22:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52235EVB-gcc-opentcp-arpinit/m-p/129944#M716</guid>
      <dc:creator>Petter</dc:creator>
      <dc:date>2007-04-10T00:22:53Z</dc:date>
    </item>
  </channel>
</rss>

