<?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: FRDM-K64K host_msd_fatfs USB not detecting device</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713446#M7601</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;After stepping in dbg_uart_init() I ran into the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* See fsl_debug_console.h for documentation of this function.*/&lt;BR /&gt;debug_console_status_t DbgConsole_Init(&lt;BR /&gt; uint32_t uartInstance, uint32_t baudRate, debug_console_device_type_t device)&lt;BR /&gt;{&lt;BR /&gt; if (s_debugConsole.type != kDebugConsoleNone)&lt;BR /&gt; {&lt;BR /&gt; return kStatus_DEBUGCONSOLE_Failed;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;/* Set debug console to initialized to avoid duplicated init operation.*/&lt;BR /&gt; s_debugConsole.type = device;&lt;BR /&gt; s_debugConsole.instance = uartInstance;&lt;/P&gt;&lt;P&gt;/* Switch between different device. */&lt;BR /&gt; switch (device)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as I am stepping through the code, it falls into: &amp;nbsp;&lt;SPAN&gt;return kStatus_DEBUGCONSOLE_Failed; &amp;nbsp;the return takes me to the end of this function&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;which returns&amp;nbsp;kStatus_DEBUGCONSOLE_Success??? &amp;nbsp;How can the code find that something failed, then its return be successful????&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I look into s_debugConsole.type it equals to kDebugConsoleUART, so it never makes it to the switch statement. &amp;nbsp;This could explain why&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;UART0 which I believe is where TX/RX will be setup to write to the Terminal software takes place. &amp;nbsp;So the big question is, why is a demo&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;software failing to properly set this settings and a bigger question is why does this work for you and not for me??????????&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't understand????? Please help this is frustrating me&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Neil&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Sep 2017 20:11:13 GMT</pubDate>
    <dc:creator>neilporven</dc:creator>
    <dc:date>2017-09-22T20:11:13Z</dc:date>
    <item>
      <title>FRDM-K64K host_msd_fatfs USB not detecting device</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713428#M7583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I am using the demo app host_msd_fatfs_frdmk64f to write my USB driver. &amp;nbsp;After much headaches&lt;/P&gt;&lt;P&gt;troubleshooting, etc... I got the project to do a usb_host_init and usb_host_register_driver_info.&lt;/P&gt;&lt;P&gt;I also have it running, but unfortunately when I insert a USB stick the code seems not to detect it.&lt;/P&gt;&lt;P&gt;I keep getting case&amp;nbsp;USB_DEVICE_IDLE and the&amp;nbsp;g_mass_device[i].state_change = 0. &amp;nbsp;I believe that&amp;nbsp;&lt;/P&gt;&lt;P&gt;it could be an issue with the interrupt of the USB. &amp;nbsp;I would like to know where does the demo software&lt;/P&gt;&lt;P&gt;setup the interrupt settings for the USB (USBx_INTEN).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if I run the project through the P&amp;amp;E multilink + Kinetis KDS on the FRDM-K64F evaluation board and&lt;/P&gt;&lt;P&gt;I place a breakpoint inside USB_DEVICE_ATTACHED where the demo project is called from and I stick a USB&lt;/P&gt;&lt;P&gt;stick the software never transitions from &amp;nbsp;&lt;SPAN&gt;USB_DEVICE_IDLE? &amp;nbsp;Another interesting thing, if I place a USB device&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;that detects if power is present on the J22 connector (K64 USB), it shows no power on the device. I have J21&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;jumped and R72 with a zero OHM shorted, just in case someone is wondering. &amp;nbsp;I am powering the board through&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the J27 connector.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 18:28:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713428#M7583</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2017-09-01T18:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64K host_msd_fatfs USB not detecting device</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713429#M7584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neil:.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest you check the jumper settings &lt;/P&gt;&lt;P&gt;J21&amp;nbsp; 1-2,&amp;nbsp;&amp;nbsp; When the FrdmK64&amp;nbsp;board is operating in USB host mode, &amp;nbsp;J21 must be shunt to supply 5V power from VBUS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you download the program to the board, power off the target and then connect device.&lt;/P&gt;&lt;P&gt;I did a quick check with this demo with Frdm-K64 board, the console output is like this. Have you modified the source code?&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/29419i4591BEA2022484E2/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;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 11:29:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713429#M7584</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2017-09-04T11:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64K host_msd_fatfs USB not detecting device</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713430#M7585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a FRDM-K64F board which I made the modifications to use the JTAG connector and I am able&lt;/P&gt;&lt;P&gt;to place breakpoints and see the transitions from IDLE to ATTACHED. Unfortunately, after the state&lt;/P&gt;&lt;P&gt;transitions to&amp;nbsp;USB_DEVICE_INTERFACE_OPENED and I let the fat_demo() run, it doesn't send anything&lt;/P&gt;&lt;P&gt;to RealTerm. &amp;nbsp;I don't know if by making the board modification:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NOTE&lt;BR /&gt;To use an external debugger, such as J-Link, you may need to disconnect&lt;BR /&gt;the OpenSDA SWD from the K64. To do this on the FRDM-K64F board,&lt;BR /&gt;cut the shorting trace which connects the pins of jumper holes on&lt;BR /&gt;connectors J8 and J12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and cutting the short trace J12 (SWD_DIO_TGTMCU), if it is the cause for the failed communication to RealTerm?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel, I was wondering if you know what triggers the change of state? &amp;nbsp;Is it an interrupt (which one/where)?&lt;/P&gt;&lt;P&gt;Is it a dedicated I/O input pin(which one/where)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 20:47:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713430#M7585</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2017-09-05T20:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64K host_msd_fatfs USB not detecting device</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713431#M7586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neil:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean the enumeration process state? It is triggered by event.&lt;/P&gt;&lt;P&gt;Please refer to file usb_host_devices.c.&lt;/P&gt;&lt;P&gt;&amp;nbsp;USB_HostProcessState.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think the short trace will result in the failed communication, but I will have a try tomorrow.&lt;/P&gt;&lt;P&gt;Have you tried another u disk?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 08:48:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713431#M7586</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2017-09-07T08:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64K host_msd_fatfs USB not detecting device</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713432#M7587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this with J-link, I can see the console output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2017 14:32:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713432#M7587</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2017-09-08T14:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64K host_msd_fatfs USB not detecting device</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713433#M7588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Daniel, We have been dealing with hurricane Irma and haven't been able to respond.&lt;/P&gt;&lt;P&gt;Can you tell me &amp;nbsp;which traces do you have cut on your board?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I place a break point on usb_demo(), then once my RealTerm communication software is ready, I let it&lt;/P&gt;&lt;P&gt;run. Is this how you're doing it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me where does usb_host_devices.c exist in the project or where is it being called from?&lt;/P&gt;&lt;P&gt;Does USB_HostProcessState exist inside usb_host_devices.c?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2017 17:07:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713433#M7588</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2017-09-09T17:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64K host_msd_fatfs USB not detecting device</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713434#M7589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neil:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't matter , take care!&lt;/P&gt;&lt;P&gt;I cut J8 and J12 , according to user manual. see below picture.&lt;/P&gt;&lt;P&gt;I use the NXP released demo, not change anything.&amp;nbsp;&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/28624i2AD3F2D8B5E69A8A/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;&lt;/P&gt;&lt;P&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/28660i68EAAD0D779DC0AF/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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 07:45:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713434#M7589</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2017-09-11T07:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64K host_msd_fatfs USB not detecting device</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713435#M7590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neil:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to&amp;nbsp; SDK_2.2_FRDM-K22F\middleware/usb_1.6.3\host\usb_host_devices.c, and Function USB_HostProcessState exists inside this file.&lt;/P&gt;&lt;P&gt;When you attach your device, USB_HostKhciIsrFunction will trigger a USB_KHCI_EVENT_ATTACH event, it will finally call&amp;nbsp; USB_HostProcessState to enumerate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 09:06:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713435#M7590</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2017-09-13T09:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64K host_msd_fatfs USB not detecting device</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713436#M7591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, thank you for your help. &amp;nbsp;Unfortunately, I am not getting the same results. &amp;nbsp;Here is my setup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="setup.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28874i97A87F1AAA3375B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="setup.jpg" alt="setup.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the back of my board/w cut traces. &amp;nbsp;I placed a jumper on J11 and J12, so that I can always&lt;/P&gt;&lt;P&gt;go back if I need to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="back_setup.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28913i54AD24AB53EBAE0A/image-size/large?v=v2&amp;amp;px=999" role="button" title="back_setup.jpg" alt="back_setup.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the host_msd_fatfs_bm_frdmk64f demo from NXP, nothing changed. &amp;nbsp;I am using&lt;/P&gt;&lt;P&gt;RealTerm to capture the data. &amp;nbsp;RealTerm is configured as 115200, no parity, 8 data bits, 1 Stop,&lt;/P&gt;&lt;P&gt;and no hardware flow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today, I am going to see if the original dropping the binary file using the OPENSDA still works, but&lt;/P&gt;&lt;P&gt;if it does, then I don't know why using the P&amp;amp;E should be any different?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 16:53:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713436#M7591</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2017-09-14T16:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64K host_msd_fatfs USB not detecting device</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713437#M7592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure why you are referring to&amp;nbsp;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;SDK_2.2_FRDM-K22F\middleware/usb_1.6.3\host\usb_host_devices.c? &amp;nbsp;I am using demo&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="extension.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28875iF2046A39ED3A6F6C/image-size/large?v=v2&amp;amp;px=999" role="button" title="extension.jpg" alt="extension.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;During the initialization process of the demo, I noticed that the following function _usb_khci_task_create(usb_host_ptr) returns USB_OK,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;but when I run my software the same function&amp;nbsp;_usb_khci_task_create(usb_host_ptr) returns&amp;nbsp;USBERR_ERROR. This is returned by the&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;following function:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*FUNCTION*-------------------------------------------------------------&lt;BR /&gt; *&lt;BR /&gt; * Function Name : _usb_khci_task_create&lt;BR /&gt; * Returned Value : error or USB_OK&lt;BR /&gt; * Comments :&lt;BR /&gt; * Create KHCI task&lt;BR /&gt; *END*-----------------------------------------------------------------*/&lt;BR /&gt;uint32_t task_id;&lt;BR /&gt;static usb_status _usb_khci_task_create(usb_host_handle handle)&lt;BR /&gt;{&lt;BR /&gt; //usb_status status;&lt;BR /&gt; //task_id = _task_create_blocked(0, 0, (uint32_t)&amp;amp;task_template);&lt;BR /&gt; task_id = OS_Task_create(USB_KHCI_TASK_ADDRESS, (void*)handle, (uint32_t)USBCFG_HOST_KHCI_TASK_PRIORITY, USB_KHCI_TASK_STACKSIZE, USB_KHCI_TASK_NAME, NULL);&lt;/P&gt;&lt;P&gt;if (task_id == (uint32_t)OS_TASK_ERROR)&lt;BR /&gt; {&lt;BR /&gt; return &lt;STRONG&gt;USBERR_ERROR&lt;/STRONG&gt;; &amp;nbsp; &amp;nbsp; &amp;lt;----------------------------------------- &amp;nbsp; &amp;nbsp;Here !!!!!!!!!!!!!!!!!!!!!!!!!!&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;//_task_ready(_task_get_td(task_id));&lt;BR /&gt; //OS_Task_resume(task_id);&lt;/P&gt;&lt;P&gt;return USB_OK;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Inside&amp;nbsp;&lt;SPAN style="color: #3d3d3d;"&gt;OS_Task_create function there is another call which brings in param, comparing what my software shows for this parameter vs.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;NXP demo, only BDTPAGE1 and Reserved 15 have different values. &amp;nbsp;I don't know if that is because my custom board processor is&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;the MK64FN512 vs the FRDM-K64F board processor which is MK64FN1M. &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;Any idea why this function could be reporting the USBERR_ERROR?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;Neil&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 18:36:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713437#M7592</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2017-09-14T18:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64K host_msd_fatfs USB not detecting device</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713438#M7593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update on the issue on OS_Task_create function. &amp;nbsp;OS_Task_create internal call which returns the USBERR_ERROR looks for&lt;/P&gt;&lt;P&gt;g_freeTaskControlBlock to see if it is loaded with information or 0x00. &amp;nbsp;After much tracking, I find that there is a function called&lt;/P&gt;&lt;P&gt;OS_Task_init, which loads g_freeTaskControlBlock with a value. &amp;nbsp;In the test software&amp;nbsp;OSA_Init() is called right after Hardware_init()&lt;/P&gt;&lt;P&gt;and this is where&amp;nbsp;&lt;SPAN&gt;OS_Task_init() is called and g_freeTaskControlBlock loaded. &amp;nbsp;Now, that portion of the software is not returning an&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am still having an issue detecting attachment of the USB, I don't know what could be happening, but I am suspecting that there is&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;a USB setup issue. &amp;nbsp;Let me know your thoughts on this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Neil&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2017 15:15:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713438#M7593</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2017-09-15T15:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64K host_msd_fatfs USB not detecting device</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713439#M7594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't heard back from you on the issue of the FRDM-K64F board not communicating with the terminal program.&lt;/P&gt;&lt;P&gt;I was looking at your picture that shows the FRDM-K64F board and noticed that you don't have the MICRO USB OTG&lt;/P&gt;&lt;P&gt;cable connected with a USB stick. &amp;nbsp;How is this demo working for you without it? &amp;nbsp; Notice my setup, it has the MICRO&lt;/P&gt;&lt;P&gt;USB OTG cable installed in J22 connector (K64USB).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 15:21:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713439#M7594</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2017-09-21T15:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64K host_msd_fatfs USB not detecting device</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713440#M7595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neil:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, I tested with FrdmK64 with KSDK2.2 before. Now I tested with KSDK1.3, the result is also PASS. The output is as below.&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/31430iB44F64376237F5E1/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;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 06:05:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713440#M7595</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2017-09-22T06:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64K host_msd_fatfs USB not detecting device</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713441#M7596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I connected with a USB stick through J22(K64USB) while testing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 06:10:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713441#M7596</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2017-09-22T06:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64K host_msd_fatfs USB not detecting device</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713442#M7597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neil:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest you print something before usb_host_init, since you are suspecting the terminal communication problem.&lt;/P&gt;&lt;P&gt;add the below line before usb_host_init, and while debugging you will see this on console if communication is OK&lt;/P&gt;&lt;P&gt;USB_PRINTF("\r\nTesting&amp;nbsp;&amp;nbsp;&amp;nbsp; ");&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/31473i911EB2DDB584438D/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;If communication is OK, then we continue to check the USB detecting issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&amp;nbsp; the demo I am testing is&lt;/P&gt;&lt;P&gt;KSDK_1.3.0\examples\frdmk64f\demo_apps\usb\host\msd\msd_fatfs\bm\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 06:40:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713442#M7597</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2017-09-22T06:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64K host_msd_fatfs USB not detecting device</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713443#M7598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I included the following line to the demo project as you suggested:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Test Line.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31363iF71E21616EBCD7A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Test Line.jpg" alt="Test Line.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That line does not appear on the Console as you can see from above. &amp;nbsp;Here is my configuration&lt;/P&gt;&lt;P&gt;Startup settings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Startup.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31386i28AF7B73AC76224C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Startup.jpg" alt="Startup.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see Semihosting Settings is Enabled and GCB client is checked. &amp;nbsp;I am going to search&lt;/P&gt;&lt;P&gt;today to see if I am missing something to be able to write to the console.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: I am also using the same as you&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;KSDK_1.3.0\examples\frdmk64f\demo_apps\usb\host\msd\msd_fatfs\bm\&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you can see anything from my to screen shots or if you need more information?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 16:16:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713443#M7598</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2017-09-22T16:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64K host_msd_fatfs USB not detecting device</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713444#M7599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check whether the dbg_uart_init() function executed or not,&amp;nbsp;&amp;nbsp; in main.c&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/31555i85523C5EBD1C6571/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 18:45:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713444#M7599</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2017-09-22T18:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64K host_msd_fatfs USB not detecting device</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713445#M7600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to see why the demo project is not writing to the console. &amp;nbsp;I am following the steps here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2015/05/27/semihosting-for-kinetis-design-studio-v3-0-0-and-gnu-arm-embedded-launchpad/" title="https://mcuoneclipse.com/2015/05/27/semihosting-for-kinetis-design-studio-v3-0-0-and-gnu-arm-embedded-launchpad/"&gt;Semihosting for Kinetis Design Studio V3.0.0 and GNU ARM Embedded (launchpad) | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel maybe you might know, but the above example was done for KDS V3.0.0, but as you know I am using KDSV3.1.0.&lt;/P&gt;&lt;P&gt;I don't know if the semihosting has changed from V3.0.0 to V3.1.0. &amp;nbsp;If you go into the properties of the demo project you have&lt;/P&gt;&lt;P&gt;the following under: &amp;nbsp; Cross Arm C Linker-&amp;gt;Miscellaneous &amp;nbsp; &amp;nbsp; you have the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Properties.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31695i3FFF9CCBACA9BEA4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Properties.jpg" alt="Properties.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I took out -specs = nano.specs from the tag and as you can see, I checked the box above. &amp;nbsp;This didn't solve&lt;/P&gt;&lt;P&gt;anything, but I am following the example above. &amp;nbsp;The other interesting thing, is that the demo has the following in the&lt;/P&gt;&lt;P&gt;tag: &amp;nbsp;static &amp;nbsp;-Xlinker --defsym=__stack_size__=0x0400 &amp;nbsp;-Xlinker --defsym=__heap_size__=0x8000, which is not explained&lt;/P&gt;&lt;P&gt;in the above example. &amp;nbsp;In the following pdf :&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-104349"&gt;How to use printf() to print string to Console and UART in KDS2.0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.3 Use printf() in Bare Board Project&lt;BR /&gt;Create a bare board project: uncheck the “Kinetis SDK” and “Processor Expert” selection,&lt;BR /&gt;keep other configurations as default. From the linker file we can see that the default size of&lt;BR /&gt;stack and heap is 0x400. Generally, it can meet our requirement. If it can’t, we can increase&lt;BR /&gt;it in the linker file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somewhere else its specified that heap_size = 0x0C00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, moving to your question whether&amp;nbsp;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;dbg_uart_init() is executed, Yes it is executed. &amp;nbsp;I have not stepped&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;into it, but I imagine this is where all the UARTs are configured. &amp;nbsp;I don't see why it should have an issue, since&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;this demo was meant to work with the FRDM-K64F board, but it doesn't hurt to check.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;At this point, I am still not able to see anything written to the console, nor can I see anything being written to the Terminal&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;software. &amp;nbsp;If you can think of something please let me know, because If I can't even run a demo that is suppose to be working&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;how am I suppose to follow the demo and develop my application?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Neil&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 19:35:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713445#M7600</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2017-09-22T19:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64K host_msd_fatfs USB not detecting device</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713446#M7601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;After stepping in dbg_uart_init() I ran into the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* See fsl_debug_console.h for documentation of this function.*/&lt;BR /&gt;debug_console_status_t DbgConsole_Init(&lt;BR /&gt; uint32_t uartInstance, uint32_t baudRate, debug_console_device_type_t device)&lt;BR /&gt;{&lt;BR /&gt; if (s_debugConsole.type != kDebugConsoleNone)&lt;BR /&gt; {&lt;BR /&gt; return kStatus_DEBUGCONSOLE_Failed;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;/* Set debug console to initialized to avoid duplicated init operation.*/&lt;BR /&gt; s_debugConsole.type = device;&lt;BR /&gt; s_debugConsole.instance = uartInstance;&lt;/P&gt;&lt;P&gt;/* Switch between different device. */&lt;BR /&gt; switch (device)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as I am stepping through the code, it falls into: &amp;nbsp;&lt;SPAN&gt;return kStatus_DEBUGCONSOLE_Failed; &amp;nbsp;the return takes me to the end of this function&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;which returns&amp;nbsp;kStatus_DEBUGCONSOLE_Success??? &amp;nbsp;How can the code find that something failed, then its return be successful????&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I look into s_debugConsole.type it equals to kDebugConsoleUART, so it never makes it to the switch statement. &amp;nbsp;This could explain why&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;UART0 which I believe is where TX/RX will be setup to write to the Terminal software takes place. &amp;nbsp;So the big question is, why is a demo&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;software failing to properly set this settings and a bigger question is why does this work for you and not for me??????????&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't understand????? Please help this is frustrating me&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Neil&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 20:11:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713446#M7601</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2017-09-22T20:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64K host_msd_fatfs USB not detecting device</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713447#M7602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you check the output from the terminal?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 21:35:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64K-host-msd-fatfs-USB-not-detecting-device/m-p/713447#M7602</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2017-09-22T21:35:18Z</dc:date>
    </item>
  </channel>
</rss>

