<?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>Kinetis Design StudioのトピックRe: error: expected '(' before 'void'   __asm void Cpu_SetBASEPRI(uint32_t Level) {</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/error-expected-before-void-asm-void-Cpu-SetBASEPRI-uint32-t/m-p/487097#M5763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;similar issue here with Migration #CCW-&amp;gt;S32 project for #MPC5643L. I read AN5282 too (#Migration guide), but no luck so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/davidchung"&gt;davidchung&lt;/A&gt;‌ maybe any ideas?&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12316i317A20174C082590/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.jpg" alt="pastedImage_1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jan 2017 23:41:15 GMT</pubDate>
    <dc:creator>nxppower912935</dc:creator>
    <dc:date>2017-01-24T23:41:15Z</dc:date>
    <item>
      <title>error: expected '(' before 'void'   __asm void Cpu_SetBASEPRI(uint32_t Level) {</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/error-expected-before-void-asm-void-Cpu-SetBASEPRI-uint32-t/m-p/487092#M5758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying to migrate a project a from Code warrior to Kinetis Design Studio Version: 3.0.0.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed the steps in &lt;A _jive_internal="true" data-containerid="2022" data-containertype="14" data-objectid="105776" data-objecttype="102" href="https://community.nxp.com/docs/DOC-105776"&gt;CW MCU 10.6 Processor Expert projects migration into KDS 3.0.0&lt;/A&gt;&amp;nbsp; -(followed&amp;nbsp; Steps of the conversion by manual configuration of the toolchain).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But after all the steps when i tried to build i am getting following error in&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;../Generated_Code/Cpu.c: At top level:&lt;/P&gt;&lt;P&gt;../Generated_Code/Cpu.c:2053:7: error: expected '(' before 'void'&lt;/P&gt;&lt;P&gt;__asm void Cpu_SetBASEPRI(uint32_t Level) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;&lt;P&gt;make: *** [Generated_Code/Cpu.o] Error 1&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can some one help me to find why this error is happening ?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Abhilash V R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 06:17:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/error-expected-before-void-asm-void-Cpu-SetBASEPRI-uint32-t/m-p/487092#M5758</guid>
      <dc:creator>abhilash_vr</dc:creator>
      <dc:date>2015-12-16T06:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: error: expected '(' before 'void'   __asm void Cpu_SetBASEPRI(uint32_t Level) {</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/error-expected-before-void-asm-void-Cpu-SetBASEPRI-uint32-t/m-p/487093#M5759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhilash,&lt;/P&gt;&lt;P&gt;I think you need to check/adopt the compiler settings so it recognizes __asm. Have you set the compiler options to use C99?&lt;/P&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/33494i7729B5309413B5E8/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;Search for "__asm" in this document:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-100440"&gt;KDS Frequently Asked Questions (FAQ)&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 06:22:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/error-expected-before-void-asm-void-Cpu-SetBASEPRI-uint32-t/m-p/487093#M5759</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2015-12-16T06:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: error: expected '(' before 'void'   __asm void Cpu_SetBASEPRI(uint32_t Level) {</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/error-expected-before-void-asm-void-Cpu-SetBASEPRI-uint32-t/m-p/487094#M5760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think that syntax is correct, I think what you want is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void Cpu_SetBASEPRI(uint32_t Level)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __asm ("&amp;lt;insert asm instructions here&amp;gt;")&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have not had trouble using __asm() in KDS 3.0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 18:09:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/error-expected-before-void-asm-void-Cpu-SetBASEPRI-uint32-t/m-p/487094#M5760</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2015-12-16T18:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: error: expected '(' before 'void'   __asm void Cpu_SetBASEPRI(uint32_t Level) {</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/error-expected-before-void-asm-void-Cpu-SetBASEPRI-uint32-t/m-p/487095#M5761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erich, I tried this but didnt work :smileysad:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 18:42:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/error-expected-before-void-asm-void-Cpu-SetBASEPRI-uint32-t/m-p/487095#M5761</guid>
      <dc:creator>abhilash_vr</dc:creator>
      <dc:date>2015-12-16T18:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: error: expected '(' before 'void'   __asm void Cpu_SetBASEPRI(uint32_t Level) {</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/error-expected-before-void-asm-void-Cpu-SetBASEPRI-uint32-t/m-p/487096#M5762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've performed some tests on my side with an older version of KDS.&lt;/P&gt;&lt;P&gt;Don't know if this can help but you can have a look to the following doc:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="https://community.nxp.com/docs/DOC-102594"&gt;Importing MCU V10.6 projects (sample, using PE and MQX) under KDS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Pascal&lt;BR /&gt;NXP Technical Support&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 14:50:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/error-expected-before-void-asm-void-Cpu-SetBASEPRI-uint32-t/m-p/487096#M5762</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2015-12-18T14:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: error: expected '(' before 'void'   __asm void Cpu_SetBASEPRI(uint32_t Level) {</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/error-expected-before-void-asm-void-Cpu-SetBASEPRI-uint32-t/m-p/487097#M5763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;similar issue here with Migration #CCW-&amp;gt;S32 project for #MPC5643L. I read AN5282 too (#Migration guide), but no luck so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/davidchung"&gt;davidchung&lt;/A&gt;‌ maybe any ideas?&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12316i317A20174C082590/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.jpg" alt="pastedImage_1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 23:41:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/error-expected-before-void-asm-void-Cpu-SetBASEPRI-uint32-t/m-p/487097#M5763</guid>
      <dc:creator>nxppower912935</dc:creator>
      <dc:date>2017-01-24T23:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: error: expected '(' before 'void'   __asm void Cpu_SetBASEPRI(uint32_t Level) {</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/error-expected-before-void-asm-void-Cpu-SetBASEPRI-uint32-t/m-p/487098#M5764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ludwig,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two suggestions regarding your screenshot:&lt;/P&gt;&lt;P&gt;1) S32DS recognizes "__asm__", not "__asm"&lt;/P&gt;&lt;P&gt;2) You can't use "__asm__" on an entire function. &amp;nbsp;In my experience you have to use "void INIT_Derivative(void){" and then encapsulate each assembly instruction with "__asm__", such as "__asm__(xor r0, r0, r0);" &amp;nbsp;Also, make sure that you are using VLE syntax instead of another assembly language like BookE. &amp;nbsp;The assembly in your screenshot looks more like BookE; VLE looks something like "e_ori 0,0,0". &amp;nbsp;Another suggestion is to move the assembly function to an assembly (.S) file then, in the C file, do a function call to that assembly function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 14:49:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/error-expected-before-void-asm-void-Cpu-SetBASEPRI-uint32-t/m-p/487098#M5764</guid>
      <dc:creator>davidcchung</dc:creator>
      <dc:date>2017-01-25T14:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: error: expected '(' before 'void'   __asm void Cpu_SetBASEPRI(uint32_t Level) {</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/error-expected-before-void-asm-void-Cpu-SetBASEPRI-uint32-t/m-p/487099#M5765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !!&lt;/P&gt;&lt;P&gt;Thanks for your fast reply David, totally agree with 1) and 2)&lt;/P&gt;&lt;P&gt;I set S32DS for VLE.&lt;/P&gt;&lt;P&gt;Have you seen this error before, any ideas what could be done?&lt;/P&gt;&lt;P&gt;I noticed code actually compiles fine without MPC5643L_HWInit.c/.h and debug...how?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12418iEB0874F1A310E5CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.jpg" alt="pastedImage_1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 22:00:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/error-expected-before-void-asm-void-Cpu-SetBASEPRI-uint32-t/m-p/487099#M5765</guid>
      <dc:creator>nxppower912935</dc:creator>
      <dc:date>2017-01-25T22:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: error: expected '(' before 'void'   __asm void Cpu_SetBASEPRI(uint32_t Level) {</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/error-expected-before-void-asm-void-Cpu-SetBASEPRI-uint32-t/m-p/487100#M5766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ludwig,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late reply. &amp;nbsp;I didn't receive a notification so I was not aware you replied to my reply. &amp;nbsp;Anyway, I'm not too familiar with VLE, so I can't say much on __declspec, but otherwise there doesn't seem to be an error in the error lines themselves. &amp;nbsp;The "Problems" window does not always point to the root actual error. &amp;nbsp;Sometimes the compiler detects an error at another line of code that somehow references lines 41, 44, 47. &amp;nbsp;You can check this in the Console window. &amp;nbsp;Scan the log for any lines highlighted red. &amp;nbsp;Those are where the errors pop up and the text around the error can give you a clue as to what line is actually causing the error. &amp;nbsp;As for it compiling without MPC5643L_HWInit.c, that's because the file is specific to CodeWarrior. &amp;nbsp;S32DS does not use that file. &amp;nbsp;All those initializations are now handled in Project_Settings&amp;gt;Startup_Code&amp;gt;startup.S. &amp;nbsp;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 14:33:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/error-expected-before-void-asm-void-Cpu-SetBASEPRI-uint32-t/m-p/487100#M5766</guid>
      <dc:creator>davidcchung</dc:creator>
      <dc:date>2017-03-09T14:33:31Z</dc:date>
    </item>
  </channel>
</rss>

