<?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>MPC5xxxのトピックRe: Integrating ERIKA RTOS on SPC563 (e200Z3)- Compilation Error While When Converting Assembly (.S)</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Integrating-ERIKA-RTOS-on-SPC563-e200Z3-Compilation-Error-While/m-p/2382371#M28443</link>
    <description>&lt;P&gt;Thanks for reply,&lt;BR /&gt;Could you please let me know where can i find the Start-Up code for&amp;nbsp;NXP MPC5634M ???&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jun 2026 08:27:47 GMT</pubDate>
    <dc:creator>NagendraPothula</dc:creator>
    <dc:date>2026-06-17T08:27:47Z</dc:date>
    <item>
      <title>Integrating ERIKA RTOS on SPC563 (e200Z3)- Compilation Error While When Converting Assembly (.S) to</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Integrating-ERIKA-RTOS-on-SPC563-e200Z3-Compilation-Error-While/m-p/2381226#M28436</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello All,,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am currently using CodeWarrior 2.9 for the SPC563XX(Power Architecture e200Z3), which is equivalent to the MCP563xx microcontroller.&lt;/P&gt;&lt;P&gt;While attempting to integrate the ERIKA RTOS for the MCP56xx family, I am encountering the following Compilation &amp;nbsp;errors:&lt;/P&gt;&lt;P&gt;mwldeppc: undefined: 'EE_hal_terminate_savestk'&amp;nbsp;&lt;/P&gt;&lt;P&gt;mwldeppc: Referenced from 'EE_oo_thread_stub' in ee_tstub.o&lt;/P&gt;&lt;P&gt;Upon investigation, I found that the function EE_hal_terminate_savestk() is defined in an assembly (.S) file, which does not seem to be included in the compilation process.&lt;/P&gt;&lt;P&gt;My toolchain is able to compile .c files, so I attempted to work around the issue by renaming the .S file to a .c file and wrapping the assembly code inside a C-style function (e.g., asm void Fun(){}).&lt;/P&gt;&lt;P&gt;My original intention was to reuse the same assembly implementation, only adapting the function definition to match C syntax, so that I could avoid modifying the makefile. However, this approach is resulting in multiple compilation errors, which I find unexpected.&lt;/P&gt;&lt;P&gt;Below are some of the errors I am encountering:&lt;/P&gt;&lt;P&gt;illegal function definition&amp;nbsp;&lt;/P&gt;&lt;P&gt;undefined identifier 'rlwinm'&amp;nbsp;&lt;/P&gt;&lt;P&gt;undefined identifier 'addis'&amp;nbsp;&lt;/P&gt;&lt;P&gt;undefined identifier 'stw'&amp;nbsp;&lt;/P&gt;&lt;P&gt;undefined identifier 'stmw'&amp;nbsp;&lt;/P&gt;&lt;P&gt;undefined identifier 'mtlr'&amp;nbsp;&lt;/P&gt;&lt;P&gt;undefined identifier 'bl'&amp;nbsp;&lt;/P&gt;&lt;P&gt;undefined identifier 'lwz'&amp;nbsp;&lt;/P&gt;&lt;P&gt;undefined identifier 'addi'&amp;nbsp;&lt;/P&gt;&lt;P&gt;declaration syntax error&amp;nbsp;&lt;/P&gt;&lt;P&gt;';' expected&lt;/P&gt;&lt;P&gt;It appears that the CodeWarrior compiler is not recognizing several PowerPC assembly instructions within the C file.&lt;/P&gt;&lt;P&gt;Could you please help me understand:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Why these assembly instructions are not being recognized by the compiler?&lt;/LI&gt;&lt;LI&gt;Whether this approach (embedding assembly in a .c file) is valid for this toolchain?&lt;/LI&gt;&lt;LI&gt;How I can properly resolve these compilation errors?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank you for your support.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Nagendra Pothula&lt;/P&gt;&lt;P&gt;SW Architect&lt;/P&gt;&lt;P&gt;AVL ITC India&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2026 08:48:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Integrating-ERIKA-RTOS-on-SPC563-e200Z3-Compilation-Error-While/m-p/2381226#M28436</guid>
      <dc:creator>NagendraPothula</dc:creator>
      <dc:date>2026-06-15T08:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating ERIKA RTOS on SPC563 (e200Z3)- Compilation Error While When Converting Assembly (.S)</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Integrating-ERIKA-RTOS-on-SPC563-e200Z3-Compilation-Error-While/m-p/2381401#M28438</link>
      <description>&lt;DIV style="font-family: 'Segoe UI'; font-size: 14px; font-style: normal; font-weight: 400; line-height: 20px;"&gt;
&lt;P&gt;The compilation errors you are seeing are caused by the fact that PowerPC assembly code is being compiled as C code. By renaming the original .S file to .c and embedding the assembly inside a C function, the compiler attempts to interpret assembly instructions such as rlwinm, addis, stw, etc. as C syntax, which results in errors like “undefined identifier” and “illegal function definition.” This approach is not valid for CodeWarrior, as these instructions are only recognized when processed by the assembler.&lt;/P&gt;
&lt;P&gt;The correct solution is to keep the original .S file and ensure it is properly included in the build system so that it is compiled by the assembler and linked with the rest of the project. Inline assembly in this form cannot replace a full assembly module used by the RTOS.&lt;/P&gt;
&lt;P&gt;Please note that ERIKA Enterprise is a third-party open-source RTOS (OSEK/AUTOSAR-like) and is not an NXP product, so its integration and build configuration are outside of NXP’s scope and need to be handled on your side.&lt;/P&gt;
&lt;P&gt;For reference, you may find the following documentation helpful:&lt;BR /&gt;Freescale PPC e200 (MPC56xx) support page: &lt;A href="https://erika.tuxfamily.org/wiki/index.php?title=Freescale_PPC_e200_%28MPC_56xx%29" target="_blank"&gt;https://erika.tuxfamily.org/wiki/index.php?title=Freescale_PPC_e200_%28MPC_56xx%29&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thank you for your understanding.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 Jun 2026 16:00:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Integrating-ERIKA-RTOS-on-SPC563-e200Z3-Compilation-Error-While/m-p/2381401#M28438</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2026-06-15T16:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating ERIKA RTOS on SPC563 (e200Z3)- Compilation Error While When Converting Assembly (.S)</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Integrating-ERIKA-RTOS-on-SPC563-e200Z3-Compilation-Error-While/m-p/2382371#M28443</link>
      <description>&lt;P&gt;Thanks for reply,&lt;BR /&gt;Could you please let me know where can i find the Start-Up code for&amp;nbsp;NXP MPC5634M ???&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2026 08:27:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Integrating-ERIKA-RTOS-on-SPC563-e200Z3-Compilation-Error-While/m-p/2382371#M28443</guid>
      <dc:creator>NagendraPothula</dc:creator>
      <dc:date>2026-06-17T08:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating ERIKA RTOS on SPC563 (e200Z3)- Compilation Error While When Converting Assembly (.S)</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Integrating-ERIKA-RTOS-on-SPC563-e200Z3-Compilation-Error-While/m-p/2383957#M28453</link>
      <description>&lt;P&gt;Hello team,&lt;BR /&gt;You are right. After posting my question, I realized that I had made a mistake by simply changing the file from *.s to *.c.&lt;/P&gt;&lt;P&gt;I then implemented the same functionality using inline assembly as shown below, and this resolved all compiler and linker errors:&lt;/P&gt;&lt;P&gt;void Func(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; asm&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* Assembly code here */&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2026 07:10:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Integrating-ERIKA-RTOS-on-SPC563-e200Z3-Compilation-Error-While/m-p/2383957#M28453</guid>
      <dc:creator>NagendraPothula</dc:creator>
      <dc:date>2026-06-22T07:10:50Z</dc:date>
    </item>
  </channel>
</rss>

