<?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 Software Development KitのトピックRe: USB Stack Error / fsl_misc_utilities.? Does misc uts require special Compiler Flags?</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-Stack-Error-fsl-misc-utilities-Does-misc-uts-require-special/m-p/456726#M3225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Donald:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should replicate the compiler and linker flags to your new project so it behaves the same as the audio generator example. Some GNU GCC toolchain documentation (compiler/linker, etc) can be found with your KDS installation, in this path:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Freescale\KDS_3.0.0\toolchain\share\doc\gcc-arm-none-eabi\pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you can also find GCC ARM documentation by searching online. It's a very complex toolchain and so is the documentation, then do not expect to understand everything at first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, in your particular case, I think the problem is that inline assembly instructions (&lt;STRONG&gt;asm&lt;/STRONG&gt;) are not recognized, so try changing the compiler language to GNU ISO C99, like below picture:&lt;/P&gt;&lt;P&gt;&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/52235iAF56520B83F849C2/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;Then the build errors should be solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have further issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jul 2015 00:48:04 GMT</pubDate>
    <dc:creator>Jorge_Gonzalez</dc:creator>
    <dc:date>2015-07-09T00:48:04Z</dc:date>
    <item>
      <title>USB Stack Error / fsl_misc_utilities.? Does misc uts require special Compiler Flags?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-Stack-Error-fsl-misc-utilities-Does-misc-uts-require-special/m-p/456725#M3224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;- So I built dev audio generator for k22F - put it on my custom built PCB / Device.&lt;STRONG&gt; It works.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- I copy the &lt;STRONG&gt;exact same files and structure into a new project&lt;/STRONG&gt; - including fsl_misc_utilities.c, which causes build errors (Why is a mystery to me, since I have followed the USB application directions - in fact I'm almost exactly copying a project?)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="47446_47446.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120449i8E8DE5CD00F07EF2/image-size/large?v=v2&amp;amp;px=999" role="button" title="47446_47446.png" alt="47446_47446.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/50335iEE721BEDF70A490F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- Leaving out fsl_misc_utilities.c allows it to compile and run, but crashes into default IRQ handler after post_init. The initialization process of the hardware is identical to the working function above that runs. &lt;/P&gt;&lt;P&gt;- What is missing? The only difference I can find are the compiler flags? &lt;/P&gt;&lt;P&gt;DEV AUDIO GENERATOR FLAGS : &lt;/P&gt;&lt;P&gt;&lt;EM&gt;-Xlinker -z&amp;nbsp; -Xlinker muldefs&amp;nbsp;&amp;nbsp; -Xlinker --defsym=__ram_vector_table__=1&amp;nbsp; --specs=nano.specs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -Wall&amp;nbsp; -fno-common&amp;nbsp; -ffunction-sections&amp;nbsp; -fdata-sections&amp;nbsp; -ffreestanding&amp;nbsp; -fno-builtin&amp;nbsp; -Os&amp;nbsp; -mapcs&amp;nbsp; -Xlinker -static&amp;nbsp; -Xlinker --defsym=__stack_size__=0x1000&amp;nbsp; -Xlinker --defsym=__heap_size__=0x0400 &lt;/EM&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Projects Flags : &lt;/P&gt;&lt;P&gt;&lt;EM&gt;-specs=nosys.specs -specs=nano.specs&lt;/EM&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions? Any links to where can I find more information on compiler flags? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 23:23:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-Stack-Error-fsl-misc-utilities-Does-misc-uts-require-special/m-p/456725#M3224</guid>
      <dc:creator>bosleymusic_com</dc:creator>
      <dc:date>2015-07-06T23:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: USB Stack Error / fsl_misc_utilities.? Does misc uts require special Compiler Flags?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-Stack-Error-fsl-misc-utilities-Does-misc-uts-require-special/m-p/456726#M3225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Donald:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should replicate the compiler and linker flags to your new project so it behaves the same as the audio generator example. Some GNU GCC toolchain documentation (compiler/linker, etc) can be found with your KDS installation, in this path:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Freescale\KDS_3.0.0\toolchain\share\doc\gcc-arm-none-eabi\pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you can also find GCC ARM documentation by searching online. It's a very complex toolchain and so is the documentation, then do not expect to understand everything at first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, in your particular case, I think the problem is that inline assembly instructions (&lt;STRONG&gt;asm&lt;/STRONG&gt;) are not recognized, so try changing the compiler language to GNU ISO C99, like below picture:&lt;/P&gt;&lt;P&gt;&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/52235iAF56520B83F849C2/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;Then the build errors should be solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have further issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 00:48:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-Stack-Error-fsl-misc-utilities-Does-misc-uts-require-special/m-p/456726#M3225</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-07-09T00:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: USB Stack Error / fsl_misc_utilities.? Does misc uts require special Compiler Flags?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-Stack-Error-fsl-misc-utilities-Does-misc-uts-require-special/m-p/456727#M3226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, problem #1 solved with fsl_misc_utilities. Thank you!&lt;/P&gt;&lt;P&gt;Unfortunately, I still get a malfunctioning device...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the issues is that I'd love to replicate the exact settings in the dev audio generator - however when I build a new KDS project I get a C and a C++ compiler with all of the options, whereas the example project is purely written in C/ASM. If I build a C project from scratch, would that potentially fix anything? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 02:42:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-Stack-Error-fsl-misc-utilities-Does-misc-uts-require-special/m-p/456727#M3226</guid>
      <dc:creator>bosleymusic_com</dc:creator>
      <dc:date>2015-07-09T02:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: USB Stack Error / fsl_misc_utilities.? Does misc uts require special Compiler Flags?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-Stack-Error-fsl-misc-utilities-Does-misc-uts-require-special/m-p/456728#M3227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Donald:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As instructed by colleague Erich Styger in this post: &lt;A href="http://mcuoneclipse.com/2013/03/23/compiling-c-files-with-gnu-arm-g/" title="http://mcuoneclipse.com/2013/03/23/compiling-c-files-with-gnu-arm-g/"&gt;Compiling C Files with GNU ARM G++ | MCU on Eclipse&lt;/A&gt;&amp;nbsp; I used the next code to detect the compiler used in a new Project with KDS v3.0.0:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#ifdef __cplusplus&lt;/P&gt;&lt;P&gt;#warning main.c compiled as C++&lt;/P&gt;&lt;P&gt;#else&lt;/P&gt;&lt;P&gt;#warning main.c compiled as C&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For main.c the code above threw "w&lt;EM&gt;arning main.c compiled as C&lt;/EM&gt;". Then it seems to me that even though you have C++ compiler options, the .c files are compiled by default in C mode, so there should be no difference between your project and the example. This post has also very good information regarding KDS and C++: &lt;A href="http://mcuoneclipse.com/2014/10/25/c-with-kinetis-design-studio/" title="http://mcuoneclipse.com/2014/10/25/c-with-kinetis-design-studio/"&gt;C++ with Kinetis Design Studio | MCU on Eclipse&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the "&lt;EM&gt;malfunctioning device&lt;/EM&gt;", what do you mean? Does it crash? Are you able to debug and see the point where it crashes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 02:10:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-Stack-Error-fsl-misc-utilities-Does-misc-uts-require-special/m-p/456728#M3227</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-07-14T02:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: USB Stack Error / fsl_misc_utilities.? Does misc uts require special Compiler Flags?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-Stack-Error-fsl-misc-utilities-Does-misc-uts-require-special/m-p/456729#M3228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;During post_init it dumps to defaultIRQ, and Windows says it couldn't recognize the device.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 10:02:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-Stack-Error-fsl-misc-utilities-Does-misc-uts-require-special/m-p/456729#M3228</guid>
      <dc:creator>bosleymusic_com</dc:creator>
      <dc:date>2015-07-14T10:02:37Z</dc:date>
    </item>
  </channel>
</rss>

