AnsweredAssumed Answered

KSDK-1.2.0 USB example

Question asked by Ole Asbjorn Fadum on May 12, 2015
Latest reply on May 14, 2015 by Iva Dorazinova

Hi,

 

I'm trying to get a USB example to work. The example is MSD_CDC_MQX.

1. Import this workspace

    ...\V_1.2.0\examples\frdmk64f\demo_apps\usb\device\composite\msd_cdc\mqx\kds\dev_msd_cdc_frdmk64f_mqx.wsd

2. Project --> Build All

 

 

'Invoking: Cross ARM C Linker'

 

arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall  -g -T ../../../../../../../../../../platform/devices/MK64F12/linker/gcc/MK64FN1M0xxx12_flash.ld -nostartfiles -Xlinker --gc-sections -Wl,-Map,"dev_msd_cdc_mqx_frdmk64f.map" -Xlinker --cref -Xlinker -z -Xlinker muldefs  -Xlinker --defsym=__ram_vector_table__=1  -Xlinker -static  -Xlinker --undefined=__isr_vector        --specs=nano.specs        -Wall  -fno-common  -ffunction-sections  -fdata-sections  -ffreestanding  -fno-builtin  -Os  -mapcs  -Xlinker -z  -Xlinker muldefs  -Xlinker --defsym=__stack_size__=0x4000  -Xlinker --defsym=__heap_size__=0x8000 -o "dev_msd_cdc_mqx_frdmk64f.elf" -Xlinker --start-group  ./utilities/fsl_debug_console.o ./utilities/fsl_misc_utilities.o ./utilities/print_scan.o  ./sources/composite_app.o ./sources/disk.o ./sources/usb_descriptor.o ./sources/virtual_com.o  ./board/board.o ./board/gpio_pins.o ./board/hardware_init.o ./board/pin_mux.o  ./BSP_Files/init_bsp.o ./BSP_Files/mqx_main.o  E:/Sensors/Common/KSDK/V_1.2.0/examples/frdmk64f/demo_apps/usb/device/composite/msd_cdc/mqx/kds/../../../../../../../../../rtos/mqx/lib/frdmk64f.kds/debug/mqx/lib_mqx.a E:/Sensors/Common/KSDK/V_1.2.0/examples/frdmk64f/demo_apps/usb/device/composite/msd_cdc/mqx/kds/../../../../../../../../../rtos/mqx/lib/frdmk64f.kds/debug/mqx_stdlib/lib_mqx_stdlib.a E:/Sensors/Common/KSDK/V_1.2.0/examples/frdmk64f/demo_apps/usb/device/composite/msd_cdc/mqx/kds/../../../../../../../../../usb/usb_core/device/build/kds/usbd_sdk_frdmk64f_mqx/debug/libusbd_mqx.a E:/Sensors/Common/KSDK/V_1.2.0/examples/frdmk64f/demo_apps/usb/device/composite/msd_cdc/mqx/kds/../../../../../../../../../lib/ksdk_mqx_lib/kds/K64F12/debug/libksdk_platform_mqx.a -lc -lgcc -lsupc++ -lm -lg -lnosys -Xlinker --end-group

 

E:/Sensors/Common/KSDK/V_1.2.0/examples/frdmk64f/demo_apps/usb/device/composite/msd_cdc/mqx/kds/../../../../../../../../../rtos/mqx/lib/frdmk64f.kds/debug/mqx/lib_mqx.a(startup_MK64F12.o): In function `Reset_Handler':

 

E:/Sensors/Common/KSDK/V_1.2.0/platform/devices/MK64F12/startup/gcc/startup_MK64F12.S:336: undefined reference to `_start'

 

E:/Sensors/Common/KSDK/V_1.2.0/examples/frdmk64f/demo_apps/usb/device/composite/msd_cdc/mqx/kds/../../../../../../../../../rtos/mqx/lib/frdmk64f.kds/debug/mqx/lib_mqx.a(boot.o): In function `_boot_loop_end':

 

E:/Sensors/Common/KSDK/V_1.2.0/rtos/mqx/mqx/source/psp/cortex_m/core/M4/boot.S:97: undefined reference to `toolchain_startup'

 

E:/Sensors/Common/KSDK/V_1.2.0/examples/frdmk64f/demo_apps/usb/device/composite/msd_cdc/mqx/kds/../../../../../../../../../rtos/mqx/lib/frdmk64f.kds/debug/mqx/lib_mqx.a(dispatch.o): In function `__get_CONTROL':

 

E:/Sensors/Common/KSDK/V_1.2.0/rtos/mqx/mqx/source/psp/cortex_m/core/M4/dispatch.S:127: undefined reference to `_mqx_kernel_data'

 

collect2.exe: error: ld returned 1 exit status

 

make: *** [dev_msd_cdc_mqx_frdmk64f.elf] Error 1

 

make: Target `all' not remade because of errors.

Outcomes