I have tried to import to the work space the project FRDM_KL46Z_PEx_helloworld and FRDM_KL46Z_PEx_sLCD from the folder KL46_SC_rev1.
I have imported and compiled the library kdsk_platform_lib\kds\KL46Z4; all ok.
I have converted the file for KDS.
I have add the refernce to the variable MCUToolBaseDir.
If I compile the projects I have the followings errors:
arm-none-eabi-gcc -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -g3 -gstrict-dwarf -T C:/Users/Tecla/workspace.kds/FRDM-KL46z-PEx-sLCD/Project_Settings/Linker_Files/ProcessorExpert.ld -Xlinker --gc-sections -L"c:\Freescale\CW MCU v10.6\MCU/ARM_GCC_Support/ewl/lib/armv6-m" -Wl,-Map,"FRDM-KL46z-PEx-sLCD.map" -n -o "FRDM-KL46z-PEx-sLCD.elf" ./Sources/LCD/LCD.o ./Sources/LCD/s401.o ./Sources/Events.o ./Sources/ProcessorExpert.o ./Sources/sa_mtb.o ./Project_Settings/Startup_Code/__arm_end.o ./Project_Settings/Startup_Code/__arm_start.o ./Generated_Code/BitIoLdd1.o ./Generated_Code/BitIoLdd2.o ./Generated_Code/Cpu.o ./Generated_Code/CsIO1.o ./Generated_Code/IO1.o ./Generated_Code/LED_GREEN.o ./Generated_Code/LED_RED.o ./Generated_Code/PE_LDD.o ./Generated_Code/SegLCD1.o ./Generated_Code/Vectors.o
./Project_Settings/Startup_Code/__arm_start.o: In function `__thumb_startup':
C:\Users\Tecla\workspace.kds\FRDM-KL46z-PEx-sLCD\FLASH/../Project_Settings/Startup_Code/__arm_start.c:179: undefined reference to `__init_registers'
C:\Users\Tecla\workspace.kds\FRDM-KL46z-PEx-sLCD\FLASH/../Project_Settings/Startup_Code/__arm_start.c:231: undefined reference to `__copy_rom_sections_to_ram'
C:\Users\Tecla\workspace.kds\FRDM-KL46z-PEx-sLCD\FLASH/../Project_Settings/Startup_Code/__arm_start.c:251: undefined reference to `__init_cpp'
C:\Users\Tecla\workspace.kds\FRDM-KL46z-PEx-sLCD\FLASH/../Project_Settings/Startup_Code/__arm_start.c:257: undefined reference to `__init_user'
collect2.exe: error: ld returned 1 exit status
make: *** [FRDM-KL46z-PEx-sLCD.elf] Error 1
Why the "undefined reference" ?
Best Regards,
PierGiovanni
Solved! Go to Solution.
Hello PierGiovanni ,
Please add library librt :
Best Regards,
Alice
------------------------------------------------------------------------------------------
If this post answers your question, please click the Correct Answer button.
-----------------------------------------------------------------------------------
If this post help your question, please click the helpful Answer button.
Hi PierGiovanni Gordini,
as Alice said, it could be problem with the missing library "rt".
I recommend you check it at KDS Porting Guide http://cache.freescale.com/files/microcontrollers/doc/user_guide/KDS200PUG.pdf?fpsp=1&WT_TYPE=Users%...
page 2, there is chapter Common build errors after migration.
Please, check the settings written here.
Best Regards,
Iva
HI Iva,
sorry I have read only half the page.
Best Regards,
PierGiovanni
Hello PierGiovanni ,
Please add library librt :
Best Regards,
Alice
------------------------------------------------------------------------------------------
If this post answers your question, please click the Correct Answer button.
-----------------------------------------------------------------------------------
If this post help your question, please click the helpful Answer button.