Dear Zhang Jun,
I attached two CW 10.4 projects:
- CA_TB6 - This is my original CW 10.4 original project: the CodeWarrior Project File Converter does not appear when lunched on this project imported in KDS.
- prj2 - This is a new CW 10.4 bareboard project: the CodeWarrior Project File Converter works properly on this project imported in KDS. But, after adding MCUToolsBaseDir environment variable and librt library, I get the following error:
12:35:55 **** Incremental Build of configuration FLASH for project prj2 ****
make all
'Building target: prj2.elf'
'Invoking: Cross ARM C Linker'
arm-none-eabi-gcc -mcpu=cortex-m0plus -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -g3 -gstrict-dwarf -T "C:/Users/Alessandro Vagniluca/workspace/prj2/Project_Settings/Linker_Files/ProcessorExpert.ld" -Xlinker --gc-sections -L"C:\Freescale\CW MCU v10.4\MCU/ARM_GCC_Support/ewl/lib/armv7e-m/fpu" -L"C:\Freescale\CW MCU v10.4\MCU/ARM_GCC_Support/ewl/lib/armv7e-m" -Wl,-Map,"prj2.map" -n -o "prj2.elf" ./Sources/Events.o ./Sources/ProcessorExpert.o ./Project_Settings/Startup_Code/__arm_end.o ./Project_Settings/Startup_Code/__arm_start.o ./Generated_Code/Cpu.o ./Generated_Code/PE_LDD.o ./Generated_Code/Vectors.o -lrt
c:/freescale/kds_1.1.1/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/../../../../arm-none-eabi/bin/ld.exe: error: C:\Freescale\CW MCU v10.4\MCU/ARM_GCC_Support/ewl/lib/armv7e-m/fpu\librt.a(gcc_ctor_dtor.o) uses VFP register arguments, prj2.elf does not
c:/freescale/kds_1.1.1/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file C:\Freescale\CW MCU v10.4\MCU/ARM_GCC_Support/ewl/lib/armv7e-m/fpu\librt.a(gcc_ctor_dtor.o)
c:/freescale/kds_1.1.1/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/../../../../arm-none-eabi/bin/ld.exe: error: C:\Freescale\CW MCU v10.4\MCU/ARM_GCC_Support/ewl/lib/armv7e-m/fpu\librt.a(ROMCopy.o) uses VFP register arguments, prj2.elf does not
c:/freescale/kds_1.1.1/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file C:\Freescale\CW MCU v10.4\MCU/ARM_GCC_Support/ewl/lib/armv7e-m/fpu\librt.a(ROMCopy.o)
c:/freescale/kds_1.1.1/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/../../../../arm-none-eabi/bin/ld.exe: error: C:\Freescale\CW MCU v10.4\MCU/ARM_GCC_Support/ewl/lib/armv7e-m/fpu\librt.a(__arm_eabi_init.o) uses VFP register arguments, prj2.elf does not
c:/freescale/kds_1.1.1/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file C:\Freescale\CW MCU v10.4\MCU/ARM_GCC_Support/ewl/lib/armv7e-m/fpu\librt.a(__arm_eabi_init.o)
collect2.exe: error: ld returned 1 exit status
make: *** [prj2.elf] Error 1
12:35:56 Build Finished (took 826ms)
Can you help me to fix those issues?
Thank you.
Best Regards,
Alessandro