<?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: libusbh_bm.a  error  undefined reference to 'debug_printf'</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/libusbh-bm-a-error-undefined-reference-to-debug-printf/m-p/700595#M7507</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 added the utilities folder and the four files as you suggested and now its compiling. I don't have&lt;/P&gt;&lt;P&gt;any code so far, I just wanted to get the SD card and the USB files/folders in the project compiling.&lt;/P&gt;&lt;P&gt;I also enabled both the SD and USB in the preprocessor stage and that seems to be working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My next step is to start bring in the USB code portion and tackle any issues that might come up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Aug 2017 14:49:19 GMT</pubDate>
    <dc:creator>neilporven</dc:creator>
    <dc:date>2017-08-18T14:49:19Z</dc:date>
    <item>
      <title>libusbh_bm.a  error  undefined reference to 'debug_printf'</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/libusbh-bm-a-error-undefined-reference-to-debug-printf/m-p/700593#M7505</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;&lt;/P&gt;&lt;P&gt;When I include the USB library, libusbh_bm.a, I get the following errors. &amp;nbsp;They are all pointing to&lt;/P&gt;&lt;P&gt;debug_printf. &amp;nbsp;I think I am missing a path needed, but I don't know which one. Can someone&lt;/P&gt;&lt;P&gt;tell me if I am missing a path or is it something else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Building target: K64_USB_HOST_MSD_a01.elf'&lt;BR /&gt;'Invoking: Cross ARM C++ Linker'&lt;BR /&gt;arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -g3 -T "MK64FX512xxx12_flash.ld" -Xlinker --gc-sections -L"C:/Vinland/Products/American Changer/Flex-2/USB Test/K64_USB_HOST_MSD_a01/Project_Settings/Linker_Files" -Wl,-Map,"K64_USB_HOST_MSD_a01.map" -specs=nosys.specs -specs=nano.specs -Xlinker -z -Xlinker muldefs -o "K64_USB_HOST_MSD_a01.elf" ./fatfs/fsl_usb_disk/src/msd_diskio.o ./fatfs/fsl_sd_disk/src/fsl_sd_disk.o ./fatfs/diskio.o ./fatfs/ff.o ./USB_HOST/USB_Host.o ./Sources/Display.o ./Sources/Init.o ./Sources/SDmicro.o ./Sources/fsl_sdhc_irq.o ./Sources/main.o ./SDK/composite/src/sdcard/fsl_sdhc_card.o ./Project_Settings/Startup_Code/startup.o ./Project_Settings/Startup_Code/startup_MK64F12.o ./Project_Settings/Startup_Code/system_MK64F12.o C:/Freescale/KSDK_1.3.0/lib/ksdk_platform_lib/kds/K64F12/debug/libksdk_platform.a C:/Freescale/KSDK_1.3.0/usb/usb_core/host/lib/bm/kds/MK64F12/debug/libusbh_bm.a &lt;BR /&gt;C:/Freescale/KSDK_1.3.0/usb/usb_core/host/lib/bm/kds/MK64F12/debug/libusbh_bm.a(usb_host_msd_bo.o): In function `usb_class_mass_storage_device_command':&lt;BR /&gt;C:/Freescale/KSDK_1.3.0/usb/usb_core/host/sources/classes/msd/usb_host_msd_bo.c:287: undefined reference to `debug_printf'&lt;BR /&gt;C:/Freescale/KSDK_1.3.0/usb/usb_core/host/lib/bm/kds/MK64F12/debug/libusbh_bm.a(usb_host_msd_bo.o): In function `usb_class_mass_call_back_cbw':&lt;BR /&gt;C:/Freescale/KSDK_1.3.0/usb/usb_core/host/sources/classes/msd/usb_host_msd_bo.c:488: undefined reference to `debug_printf'&lt;BR /&gt;C:/Freescale/KSDK_1.3.0/usb/usb_core/host/lib/bm/kds/MK64F12/debug/libusbh_bm.a(usb_host_msd_bo.o): In function `usb_class_mass_call_back_dphase':&lt;BR /&gt;C:/Freescale/KSDK_1.3.0/usb/usb_core/host/sources/classes/msd/usb_host_msd_bo.c:620: undefined reference to `debug_printf'&lt;BR /&gt;C:/Freescale/KSDK_1.3.0/usb/usb_core/host/lib/bm/kds/MK64F12/debug/libusbh_bm.a(usb_host_msd_bo.o): In function `usb_class_mass_call_back_csw':&lt;BR /&gt;C:/Freescale/KSDK_1.3.0/usb/usb_core/host/sources/classes/msd/usb_host_msd_bo.c:815: undefined reference to `debug_printf'&lt;BR /&gt;C:/Freescale/KSDK_1.3.0/usb/usb_core/host/lib/bm/kds/MK64F12/debug/libusbh_bm.a(usb_host_msd_bo.o): In function `usb_class_mass_pass_on_usb':&lt;BR /&gt;C:/Freescale/KSDK_1.3.0/usb/usb_core/host/sources/classes/msd/usb_host_msd_bo.c:872: undefined reference to `debug_printf'&lt;BR /&gt;C:/Freescale/KSDK_1.3.0/usb/usb_core/host/lib/bm/kds/MK64F12/debug/libusbh_bm.a(usb_host_msd_bo.o):C:/Freescale/KSDK_1.3.0/usb/usb_core/host/sources/classes/msd/usb_host_msd_bo.c:896: more undefined references to `debug_printf' follow&lt;BR /&gt;collect2.exe: error: ld returned 1 exit status&lt;BR /&gt;make: *** [K64_USB_HOST_MSD_a01.elf] Error 1&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>Thu, 17 Aug 2017 20:19:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/libusbh-bm-a-error-undefined-reference-to-debug-printf/m-p/700593#M7505</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2017-08-17T20:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: libusbh_bm.a  error  undefined reference to 'debug_printf'</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/libusbh-bm-a-error-undefined-reference-to-debug-printf/m-p/700594#M7506</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;debug_printf is defined in fsl_debug_console.c, please add the 4 files (under utilities) into your project. , please refer to the host_msd_fstfs_bm demo&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/24459i19AFB597B34C8F00/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;BR /&gt;Have a great day,&lt;BR /&gt;Daniel&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 Aug 2017 06:56:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/libusbh-bm-a-error-undefined-reference-to-debug-printf/m-p/700594#M7506</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2017-08-18T06:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: libusbh_bm.a  error  undefined reference to 'debug_printf'</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/libusbh-bm-a-error-undefined-reference-to-debug-printf/m-p/700595#M7507</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 added the utilities folder and the four files as you suggested and now its compiling. I don't have&lt;/P&gt;&lt;P&gt;any code so far, I just wanted to get the SD card and the USB files/folders in the project compiling.&lt;/P&gt;&lt;P&gt;I also enabled both the SD and USB in the preprocessor stage and that seems to be working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My next step is to start bring in the USB code portion and tackle any issues that might come up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 14:49:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/libusbh-bm-a-error-undefined-reference-to-debug-printf/m-p/700595#M7507</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2017-08-18T14:49:19Z</dc:date>
    </item>
  </channel>
</rss>

