<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Rudy Moniaga's Activities</title><link>https://community.arm.com/members/7383de9f_2d00_0a49_2d00_4470_2d00_9984_2d00_7486225d8dc0</link><description>Rudy Moniaga's recent activity</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>Error L6218E When Compiling TCP-IP in RTX Mode</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/38226/error-l6218e-when-compiling-tcp-ip-in-rtx-mode</link><pubDate>Mon, 22 Jul 2019 09:59:52 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1285d1a6-f86f-4044-a6ea-175f508722af</guid><dc:creator>Rudy Moniaga</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi,&lt;br /&gt;
Could any one help me.&lt;/p&gt;

&lt;p&gt;
I got a lot of Errors L6216E (listed at the end of this post).&lt;/p&gt;

&lt;p&gt;
I am using Sample code LEDSwitch from keil TCP/IP, and compile
with RTX Kernel. What I did as follow:&lt;/p&gt;

&lt;p&gt;
In the Project Workspace:&lt;br /&gt;
- Main C Program&lt;br /&gt;
- LPC2300.s (added IMPORT SWI_Handler and remove SWI_Handler B
SWI_Handler for RTX)&lt;br /&gt;
- RTX_Config.c&lt;br /&gt;
- Retarget.c&lt;br /&gt;
- TCP_ARM.lib&lt;br /&gt;
- LPC23_EMAC.c&lt;/p&gt;

&lt;p&gt;
I try to give you as much information that could help you to solve
my problem. But if you need more information, please let me know.&lt;/p&gt;

&lt;p&gt;
thanks in advance for any help.&lt;br /&gt;
Rudy&lt;/p&gt;

&lt;p&gt;
&lt;b&gt;Include Path&lt;/b&gt; :&lt;br /&gt;
C:\Keil\ARM\RL\TCPnet\SRC;C:\Keil\ARM\RL\RTX\SRC\ARM&lt;/p&gt;

&lt;p&gt;
&lt;b&gt;The following is the main code&lt;/b&gt;:&lt;/p&gt;

&lt;pre&gt;
#include &amp;lt;RTL.h&amp;gt;
#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;ctype.h&amp;gt;
#include &amp;lt;string.h&amp;gt;
#include &amp;lt;LPC23xx.H&amp;gt;

....

OS_TID t_Ethernet;

// Define Stacks
static U64 stk_SPI_Master[400/8];
static U64 stk_Ethernet[400/8];

......

void init (void) __task {
....

  t_Clock = os_tsk_create (clock, 3);    /* start Clock                      */
  t_SPI_Master = os_tsk_create_user (SPI_Master, 3, &amp;amp;stk_SPI_Master, sizeof(stk_SPI_Master));
  t_tickTimer =  os_tsk_create (tick_timer, 2);
  t_Ethernet = os_tsk_create_user (Ethernet, 0, &amp;amp;stk_Ethernet, sizeof(stk_Ethernet));

  os_tsk_delete_self ();                 /* stop init task (no longer needed)*/
}

void SPI_Master (void) __task {
  ....
}

void clock (void)  __task {
  ...
}

void tick_timer (void) __task {
   ....
}

void Ethernet (void)  __task {
  ....
}


/*----------------------------------------------------------------------------
 *        Main: Initialize and start RTX Kernel
 *---------------------------------------------------------------------------*/
int main (void) {
  os_sys_init (init);
}

U16 udp_callback (U8 soc, U8 *rip, U16 rport, U8 *buf, U16 len) {
   ......
}

U16 tcp_callback (U8 soc, U8 evt, U8 *ptr, U16 par) {
  .....
}

void send_data (U8 p2val) {
   U8 *sendbuf;
   U8 p2;

   /* UDP */
   if (socket_udp != 0) {
      .....
   }

   /* TCP */
   if (socket_tcp != 0) {
     ....
   }
}
&lt;/pre&gt;

&lt;p&gt;
&lt;b&gt;The following is the Compiler Control String&lt;/b&gt;: --thumb -c
--device DARMP -D__RTX -D__MICROLIB -g -O0 --apcs=interwork
-IC:\Keil\ARM\RL\TCPnet\SRC -IC:\Keil\ARM\RL\RTX\SRC\ARM -I
&amp;quot;C:\Keil\ARM\INC\Philips&amp;quot; -o &amp;quot;.\OutputFiles\*.o&amp;quot; --omf_browse
&amp;quot;.\OutputFiles\*.crf&amp;quot; --depend &amp;quot;.\OutputFiles\*.d&amp;quot;&lt;/p&gt;

&lt;p&gt;
&lt;b&gt;The following is the Assembler Control String&lt;/b&gt;:&lt;br /&gt;
--device DARMP --pd &amp;quot;__RTX SETA 1&amp;quot; -g --apcs=interwork --pd
&amp;quot;__MICROLIB SETA 1&amp;quot; -I &amp;quot;C:\Keil\ARM\INC\Philips&amp;quot; --list
&amp;quot;.\ListingFiles\*.lst&amp;quot; --xref -o &amp;quot;*.o&amp;quot;&lt;/p&gt;

&lt;p&gt;
&lt;b&gt;The following is the Linker Control String&lt;/b&gt;:&lt;br /&gt;
*.o &amp;quot;C:\Keil\ARM\RV31\LIB\RTX_ARM_L.LIB&amp;quot; --library_type=microlib
--device DARMP --strict --scatter &amp;quot;.\OutputFiles\MCU_Ver_3.sct&amp;quot;&lt;br /&gt;
--autoat --summary_stderr --info summarysizes --map --xref
--callgraph --symbols&lt;br /&gt;
--info sizes --info totals --info unused --info veneers --list
&amp;quot;.\ListingFiles\MCU_Ver_3.map&amp;quot;&lt;br /&gt;
-o &amp;quot;.\OutputFiles\MCU_Ver_3.axf&amp;quot;&lt;/p&gt;

&lt;p&gt;
&lt;b&gt;The following are the errors&lt;/b&gt;:&lt;br /&gt;
.\OutputFiles\MCU_Ver_3.axf: Error: L6218E: Undefined symbol __fclose
(referred from retarget.o).&lt;br /&gt;
.\OutputFiles\MCU_Ver_3.axf: Error: L6218E: Undefined symbol
__getfsize (referred from retarget.o).&lt;br /&gt;
.\OutputFiles\MCU_Ver_3.axf: Error: L6218E: Undefined symbol
MAC_Broadcast (referred from at_ethernet.o).&lt;br /&gt;
.\OutputFiles\MCU_Ver_3.axf: Error: L6218E: Undefined symbol
MPool_Size (referred from at_mem.o).&lt;br /&gt;
.\OutputFiles\MCU_Ver_3.axf: Error: L6218E: Undefined symbol Mem_Pool
(referred from at_mem.o).&lt;br /&gt;
.\OutputFiles\MCU_Ver_3.axf: Error: L6218E: Undefined symbol
init_system (referred from at_system.o).&lt;br /&gt;
.\OutputFiles\MCU_Ver_3.axf: Error: L6218E: Undefined symbol nlocalm
(referred from at_system.o).&lt;br /&gt;
.\OutputFiles\MCU_Ver_3.axf: Error: L6218E: Undefined symbol
run_system (referred from at_system.o).&lt;br /&gt;
.\OutputFiles\MCU_Ver_3.axf: Error: L6218E: Undefined symbol
tick_rate (referred from at_system.o).&lt;br /&gt;
.\OutputFiles\MCU_Ver_3.axf: Error: L6218E: Undefined symbol
arp_MaxRetry (referred from at_arp.o).&lt;br /&gt;
.\OutputFiles\MCU_Ver_3.axf: Error: L6218E: Undefined symbol
arp_Resend (referred from at_arp.o).&lt;br /&gt;
.\OutputFiles\MCU_Ver_3.axf: Error: L6218E: Undefined symbol
arp_TabSize (referred from at_arp.o).&lt;br /&gt;
.\OutputFiles\MCU_Ver_3.axf: Error: L6218E: Undefined symbol
arp_TimeOut (referred from at_arp.o).&lt;br /&gt;
.\OutputFiles\MCU_Ver_3.axf: Error: L6218E: Undefined symbol
arp_table (referred from at_arp.o).&lt;br /&gt;
.\OutputFiles\MCU_Ver_3.axf: Error: L6218E: Undefined symbol
dispatch_frame (referred from at_ip.o).&lt;br /&gt;
.... More error all about Error L6218E&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Ask A Question I</title><link>https://community.arm.com/achievements/460ac7df-7ccc-4c42-a204-9e05eef3be09</link><pubDate>Sat, 13 Jul 2019 12:23:45 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d1932603-e0e7-4a42-9726-9db334faaa67</guid><dc:creator /><description>Ask a question in a forum.</description></item><item><title>Community Help</title><link>https://community.arm.com/members/7383de9f_2d00_0a49_2d00_4470_2d00_9984_2d00_7486225d8dc0/activities/76c1461d-6e74-4fa5-8acb-083db8439852</link><pubDate>Sat, 13 Jul 2019 03:47:43 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:76c1461d-6e74-4fa5-8acb-083db8439852</guid><dc:creator>Arm Community</dc:creator><description>New to Arm Community? Start here to learn how to get the most out of it. Learn about Community enhancements, share ideas and ask questions.</description></item></channel></rss>