<?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: MCAL Sample application Compile w/ GreenHills Multi IDE in NXP Designs</title>
    <link>https://community.nxp.com/t5/NXP-Designs/MCAL-Sample-application-Compile-w-GreenHills-Multi-IDE/m-p/1089584#M656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="350219" data-username="fairwing@kookmin.ac.kr" href="https://community.nxp.com/people/fairwing@kookmin.ac.kr" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: none; font-size: 11.9994px;"&gt;June Uhm&lt;/A&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;Could you please let me know the full name of the MCAL package you are using. Is it&amp;nbsp;MPC5777C_MCAL4_0_RTM_1_0_1 ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;If yes. I have checked the sample app in the package and compare with the sample app in the package&amp;nbsp;MPC5777C_MCAL4_3_RTM_1_0_0.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;I see that it is missing the below code in the file "MPC5777C_MCAL4_0_RTM_1_0_1\sample_app_mcal\toolchains\Startup_vle.c".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; color: #646464; "&gt;void SystemCall()&lt;BR /&gt;{&lt;BR /&gt; ASM_KEYWORD(".globl SystemCall_Handler"); &lt;BR /&gt; ASM_KEYWORD("SystemCall_Handler:");&lt;BR /&gt;#ifdef MCAL_ENABLE_USER_MODE_SUPPORT&lt;BR /&gt; /* push R3 on stack*/&lt;BR /&gt; ASM_KEYWORD("se_subi r1,0x4");&lt;BR /&gt; ASM_KEYWORD("e_stw r3,0x0(r1)");&lt;BR /&gt; /* clear MSR[PR] bit by modifying SRR1 for keeping supervisor mode after exiting the Handler */&lt;BR /&gt; ASM_KEYWORD("mfsrr1 r3"); /* load SRR1 */&lt;BR /&gt; ASM_KEYWORD("se_bclri r3,17"); /* clear PR bit */&lt;BR /&gt; ASM_KEYWORD("mtsrr1 r3 "); /* save SRR1 */&lt;BR /&gt; /* pop R3 from the stack */&lt;BR /&gt; ASM_KEYWORD("e_lwz r3,0x0(r1)");&lt;BR /&gt; ASM_KEYWORD("se_addi r1,0x4");&lt;BR /&gt; /* return from interrupt */&lt;BR /&gt; ASM_KEYWORD("se_rfi");&lt;BR /&gt;#else&lt;BR /&gt; /* while(1) */&lt;BR /&gt; ASM_KEYWORD("e_b .");&lt;BR /&gt;#endif&lt;BR /&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;Hung.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jul 2020 07:54:26 GMT</pubDate>
    <dc:creator>hungnguyenphi</dc:creator>
    <dc:date>2020-07-28T07:54:26Z</dc:date>
    <item>
      <title>MCAL Sample application Compile w/ GreenHills Multi IDE</title>
      <link>https://community.nxp.com/t5/NXP-Designs/MCAL-Sample-application-Compile-w-GreenHills-Multi-IDE/m-p/1089583#M655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/98169iC0B767E9BA806E87/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem complie the MCAL 4.0.1 Sample application with launch.bat file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I atatched below, I set up the launch.bat file to compile the sample with multi ide 7.1.6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There was version error occur so I modify the file versions and sometime the several code so no more systhetic error is occur.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At last, there is error with generate the ELF file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[elxr] (error) errors during processing&lt;/P&gt;&lt;P&gt;make: *** [makefile:195: bin/sample_app_mcal.elf] Error 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really need the ELF file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should I do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 05:59:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NXP-Designs/MCAL-Sample-application-Compile-w-GreenHills-Multi-IDE/m-p/1089583#M655</guid>
      <dc:creator>fairwing</dc:creator>
      <dc:date>2020-07-27T05:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: MCAL Sample application Compile w/ GreenHills Multi IDE</title>
      <link>https://community.nxp.com/t5/NXP-Designs/MCAL-Sample-application-Compile-w-GreenHills-Multi-IDE/m-p/1089584#M656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="350219" data-username="fairwing@kookmin.ac.kr" href="https://community.nxp.com/people/fairwing@kookmin.ac.kr" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: none; font-size: 11.9994px;"&gt;June Uhm&lt;/A&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;Could you please let me know the full name of the MCAL package you are using. Is it&amp;nbsp;MPC5777C_MCAL4_0_RTM_1_0_1 ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;If yes. I have checked the sample app in the package and compare with the sample app in the package&amp;nbsp;MPC5777C_MCAL4_3_RTM_1_0_0.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;I see that it is missing the below code in the file "MPC5777C_MCAL4_0_RTM_1_0_1\sample_app_mcal\toolchains\Startup_vle.c".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; color: #646464; "&gt;void SystemCall()&lt;BR /&gt;{&lt;BR /&gt; ASM_KEYWORD(".globl SystemCall_Handler"); &lt;BR /&gt; ASM_KEYWORD("SystemCall_Handler:");&lt;BR /&gt;#ifdef MCAL_ENABLE_USER_MODE_SUPPORT&lt;BR /&gt; /* push R3 on stack*/&lt;BR /&gt; ASM_KEYWORD("se_subi r1,0x4");&lt;BR /&gt; ASM_KEYWORD("e_stw r3,0x0(r1)");&lt;BR /&gt; /* clear MSR[PR] bit by modifying SRR1 for keeping supervisor mode after exiting the Handler */&lt;BR /&gt; ASM_KEYWORD("mfsrr1 r3"); /* load SRR1 */&lt;BR /&gt; ASM_KEYWORD("se_bclri r3,17"); /* clear PR bit */&lt;BR /&gt; ASM_KEYWORD("mtsrr1 r3 "); /* save SRR1 */&lt;BR /&gt; /* pop R3 from the stack */&lt;BR /&gt; ASM_KEYWORD("e_lwz r3,0x0(r1)");&lt;BR /&gt; ASM_KEYWORD("se_addi r1,0x4");&lt;BR /&gt; /* return from interrupt */&lt;BR /&gt; ASM_KEYWORD("se_rfi");&lt;BR /&gt;#else&lt;BR /&gt; /* while(1) */&lt;BR /&gt; ASM_KEYWORD("e_b .");&lt;BR /&gt;#endif&lt;BR /&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;Hung.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 07:54:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NXP-Designs/MCAL-Sample-application-Compile-w-GreenHills-Multi-IDE/m-p/1089584#M656</guid>
      <dc:creator>hungnguyenphi</dc:creator>
      <dc:date>2020-07-28T07:54:26Z</dc:date>
    </item>
  </channel>
</rss>

