<?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: defining BOARD_USE_VIRTUALCOM causes compile error in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/defining-BOARD-USE-VIRTUALCOM-causes-compile-error/m-p/463444#M3473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Hi Ian,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;I tested the procedure on my side and it works without problems.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Please, d&lt;/SPAN&gt;o you work with KSDK 1.3 or older KSDK 1.2 ? Do you have correctly installed KSDK into KDS? &lt;A href="http://cache.nxp.com/files/microcontrollers/doc/user_guide/KDSUG.pdf" title="http://cache.nxp.com/files/microcontrollers/doc/user_guide/KDSUG.pdf"&gt;KDS User Guide&lt;/A&gt; page 63&lt;/P&gt;&lt;P&gt;Please, do you have included all files to your project?&lt;/P&gt;&lt;P&gt;After setting PE, did you generate the code?&lt;/P&gt;&lt;P&gt;Do you have added line “DbgConsole_Init(BOARD_DEBUG_UART_INSTANCE, DEBUG_UART_BAUD, kDebugConsoleUSBCDC);” to your source code? (main.c)&lt;/P&gt;&lt;P&gt;Did you set cdc_config.board_init_callback.callback on NULL ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you will attach your project here, I could check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Iva&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 May 2016 14:42:48 GMT</pubDate>
    <dc:creator>ivadorazinova</dc:creator>
    <dc:date>2016-05-12T14:42:48Z</dc:date>
    <item>
      <title>defining BOARD_USE_VIRTUALCOM causes compile error</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/defining-BOARD-USE-VIRTUALCOM-causes-compile-error/m-p/463443#M3472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I've been trying to follow the blog post &lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fcentaurian.co.uk%2F2015%2F12%2F23%2Fksdk-usb-cdc-printf%2F" rel="nofollow" target="_blank"&gt;https://centaurian.co.uk/2015/12/23/ksdk-usb-cdc-printf/&lt;/A&gt; &lt;/P&gt;&lt;P&gt;to set up the USB interface on our K64 board as a CDC device, but hit a problem when defining the symbol “BOARD_USE_VIRTUALCOM” under the properties of the project “C/C++ Build &amp;gt;&amp;gt; Settings &amp;gt;&amp;gt; Cross ARM C Compiler &amp;gt;&amp;gt; Preprocessor”&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="149195_149195.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121584iF9FF8FDDA8B09FB1/image-size/large?v=v2&amp;amp;px=999" role="button" title="149195_149195.jpg" alt="149195_149195.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="properpties.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57159i6D19F496C47C5E41/image-size/large?v=v2&amp;amp;px=999" role="button" title="properpties.jpg" alt="properpties.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Setting this gives me a compile error I can't work out, &lt;/P&gt;&lt;P&gt;&amp;lt;command-line&amp;gt;:0:1: error: macro names must be identifiers&lt;/P&gt;&lt;P&gt;Static_Code/System/subdir.mk:21: recipe for target 'Static_Code/System/PE_low_level_init.o' failed&lt;/P&gt;&lt;P&gt;make: *** [Static_Code/System/PE_low_level_init.o] Error 1&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Removing the symbol stops the compile error but the usb device isn't detected by windows correctly, showing up in device manager as &lt;/P&gt;&lt;P&gt;Unknown USB Device (Device Descriptor Request Failed)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas where I might be going wrong?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 11:04:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/defining-BOARD-USE-VIRTUALCOM-causes-compile-error/m-p/463443#M3472</guid>
      <dc:creator>inorman</dc:creator>
      <dc:date>2016-05-12T11:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: defining BOARD_USE_VIRTUALCOM causes compile error</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/defining-BOARD-USE-VIRTUALCOM-causes-compile-error/m-p/463444#M3473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Hi Ian,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;I tested the procedure on my side and it works without problems.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Please, d&lt;/SPAN&gt;o you work with KSDK 1.3 or older KSDK 1.2 ? Do you have correctly installed KSDK into KDS? &lt;A href="http://cache.nxp.com/files/microcontrollers/doc/user_guide/KDSUG.pdf" title="http://cache.nxp.com/files/microcontrollers/doc/user_guide/KDSUG.pdf"&gt;KDS User Guide&lt;/A&gt; page 63&lt;/P&gt;&lt;P&gt;Please, do you have included all files to your project?&lt;/P&gt;&lt;P&gt;After setting PE, did you generate the code?&lt;/P&gt;&lt;P&gt;Do you have added line “DbgConsole_Init(BOARD_DEBUG_UART_INSTANCE, DEBUG_UART_BAUD, kDebugConsoleUSBCDC);” to your source code? (main.c)&lt;/P&gt;&lt;P&gt;Did you set cdc_config.board_init_callback.callback on NULL ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you will attach your project here, I could check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Iva&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 14:42:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/defining-BOARD-USE-VIRTUALCOM-causes-compile-error/m-p/463444#M3473</guid>
      <dc:creator>ivadorazinova</dc:creator>
      <dc:date>2016-05-12T14:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: defining BOARD_USE_VIRTUALCOM causes compile error</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/defining-BOARD-USE-VIRTUALCOM-causes-compile-error/m-p/463445#M3474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Iva, thanks for the suggestions.&lt;/P&gt;&lt;P&gt;It's with KSDK 1.3 and KDS version 3.2.0 with sdk eclipse_update installed.&lt;/P&gt;&lt;P&gt;After configuring each PE component I did generate the code.&lt;/P&gt;&lt;P&gt;And I've set the &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;cdc_config.board_init_callback.callback to NULL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I've attached the project. Thank you for taking a look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 15:38:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/defining-BOARD-USE-VIRTUALCOM-causes-compile-error/m-p/463445#M3474</guid>
      <dc:creator>inorman</dc:creator>
      <dc:date>2016-05-12T15:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: defining BOARD_USE_VIRTUALCOM causes compile error</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/defining-BOARD-USE-VIRTUALCOM-causes-compile-error/m-p/463446#M3475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could also try to download the example project and see if that compiles ok on your setup.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 15:53:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/defining-BOARD-USE-VIRTUALCOM-causes-compile-error/m-p/463446#M3475</guid>
      <dc:creator>therealfreegeek</dc:creator>
      <dc:date>2016-05-12T15:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: defining BOARD_USE_VIRTUALCOM causes compile error</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/defining-BOARD-USE-VIRTUALCOM-causes-compile-error/m-p/463447#M3476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the end I had to uninstall the Design suite and reinstall as I had several version of the sdk and KDS installed which must of been confusing things. Starting from scratch everything worked fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 14:19:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/defining-BOARD-USE-VIRTUALCOM-causes-compile-error/m-p/463447#M3476</guid>
      <dc:creator>inorman</dc:creator>
      <dc:date>2016-05-17T14:19:42Z</dc:date>
    </item>
  </channel>
</rss>

