AnsweredAssumed Answered

Error while building .elf from example

Question asked by Maciek on Oct 22, 2016
Latest reply on Nov 8, 2016 by Radu-marian Ivan


this is the final message from diagnostic viewer using embedded coder:


==== Creating kv3xf_adc.elf from obj files ====
"C:\Freescale\KDS_v3\Toolchain/bin/arm-none-eabi-ld" -TMKV3xF.ld startup_MK22F51212.o freemaster_Kxx.o freemaster_appcmd.o freemaster_interface_init.o freemaster_protocol.o freemaster_rec.o freemaster_scope.o freemaster_serial.o freemaster_sfio.o freemaster_tsa.o fsl_adc_driver.o fsl_adc_hal.o fsl_adc_irq.o fsl_clock_manager.o fsl_debug_uart.o fsl_interrupt_manager.o fsl_mcg_hal.o fsl_os_abstraction_bm.o fsl_pit_driver.o fsl_pit_hal.o fsl_pit_irq.o fsl_sim_clock_module_names_K22F51212.o fsl_sim_hal.o fsl_uart_driver.o fsl_uart_hal_common_configurations.o fsl_uart_hal_fifo_configurations.o fsl_uart_hal_interrupts_and_dma.o fsl_uart_hal_status_flags.o fsl_uart_hal_transfer_functions.o kv3xf_adc.o mcd_main.o startup.o sw_timer.o system_MK22F51212.o -L"C:\Freescale\KDS_v3\Toolchain/lib/gcc/arm-none-eabi/4.8.0/m4/fp/v4-sp-d16" -L"C:\Freescale\KDS_v3\Toolchain/arm-none-eabi/lib/m4/fp/v4-sp-d16" -( -lm -lc -lgcc -Map -o kv3xf_adc.elf
C:\Freescale\KDS_v3\Toolchain/bin/arm-none-eabi-ld: cannot find -lm
C:\Freescale\KDS_v3\Toolchain/bin/arm-none-eabi-ld: cannot find -lc
C:\Freescale\KDS_v3\Toolchain/bin/arm-none-eabi-ld: cannot find -lgcc
gmake: *** [kv3xf_adc.elf] Error 1


I'm using Matlab 2016b (newest) and trying to build executable for kv3xf_adc example. We don't have IAR tools at company. We are using CW 10.5 Proffesional version. So, I've installed KDS 3.2.0 (newest version), set the GCC environment variable to '...KDS_v3\Toolchain' and changed the 'Compiler Selection' in 'Target Compiler Opts' to "GCC". What to do next - to fix this Error ?


Has anyone tested the motor control toolbox with newer toolsets (like KDS, Matlab after 2015b etc.) ?


I've also seen that there is no system target file for KV5 parts in Config Parameters. But it was suggested (by Eduardo) that TWR-KV58F220M is supported by MCToolbox. Am I missing something (maybe different TWR system is a better choice) ?


Thanks for help...