AnsweredAssumed Answered

Undefined reference in KDS 3.2

Question asked by Slavko Radovic on Oct 4, 2016

Hello everyone,

 

I'm having problem with building and cleaning the project

If I do it with settings in file .cproject_ok it build ok, but when I try to clean I have this message:

make clean
rm  si_o_app.siz  ./src/board_ub_iritel/board.o ./src/board_ub_iritel/gpio_pins.o ./src/board_ub_iritel/pin_mux.o  ./src/MQX/app_mqx.o  ./src/Interrupt_Handler/fsl_dspi_irq.o ./src/Interrupt_Handler/fsl_edma_irq.o ./src/Interrupt_Handler/fsl_ftm_irq.o ./src/Interrupt_Handler/fsl_sai_irq.o ./src/Interrupt_Handler/i2c_mqx_rtos_irq.o  ./src/BSP_Files/hardware_init.o ./src/BSP_Files/init_bsp.o ./src/BSP_Files/mqx_main.o  ./src/Audio/WM8731_driver.o ./src/Audio/audio.o ./src/Audio/fsl_soundcard.o ./src/Audio/main_call.o ./src/Audio/rtp.o  ./src/alarm.o ./src/config.o ./src/ethernet.o ./src/events.o ./src/headset.o ./src/init.o ./src/led.o ./src/main_call.o ./src/main_task.o ./src/si_o_main.o ./src/signalling.o ./src/spi.o  ./src/board_ub_iritel/board.d ./src/board_ub_iritel/gpio_pins.d ./src/board_ub_iritel/pin_mux.d  ./src/MQX/app_mqx.d  ./src/Interrupt_Handler/fsl_dspi_irq.d ./src/Interrupt_Handler/fsl_edma_irq.d ./src/Interrupt_Handler/fsl_ftm_irq.d ./src/Interrupt_Handler/fsl_sai_irq.d ./src/Interrupt_Handler/i2c_mqx_rtos_irq.d  ./src/BSP_Files/hardware_init.d ./src/BSP_Files/init_bsp.d ./src/BSP_Files/mqx_main.d  ./src/Audio/WM8731_driver.d ./src/Audio/audio.d ./src/Audio/fsl_soundcard.d ./src/Audio/main_call.d ./src/Audio/rtp.d  ./src/alarm.d ./src/config.d ./src/ethernet.d ./src/events.d ./src/headset.d ./src/init.d ./src/led.d ./src/main_call.d ./src/main_task.d ./src/si_o_main.d ./src/signalling.d ./src/spi.d  si_o_app.hex  si_o_app.elf
rm: cannot remove 'si_o_app.siz': No such file or directory
rm: cannot remove 'si_o_app.hex': No such file or directory
make: [clean] Error 1 (ignored)

In win it doesn't delete *.o files (you must do it manually), but in linux it does.

 

If I do it with settings in file .cproject_nok it won't build, I have this message (I put only one error but most of them are something like ENET_DRV_X, ENET_HAL_X and UART_DRV_X):

SDK_1.3_MK64FN1M012/middleware/tcpip/rtcs/lib/frdmk64f.kds/debug/rtcs/lib_rtcs.a(fsl_enet_rtcs_adapter.o): In function `enet_send':

SDK_1.3_MK64FN1M012/middleware/tcpip/rtcs/source/port/fsl_enet_rtcs_adapter.h:435: undefined reference to `ENET_DRV_SendData'

I define in Linker library (_rtcs) and correct path for that library.

 

And if I try to clean, it's done right with message:

make clean
rm -rf  si_o_app.siz  ./src/board_ub_iritel/board.o ./src/board_ub_iritel/gpio_pins.o ./src/board_ub_iritel/pin_mux.o  ./src/MQX/app_mqx.o  ./src/Interrupt_Handler/fsl_dspi_irq.o ./src/Interrupt_Handler/fsl_edma_irq.o ./src/Interrupt_Handler/fsl_ftm_irq.o ./src/Interrupt_Handler/fsl_sai_irq.o ./src/Interrupt_Handler/i2c_mqx_rtos_irq.o  ./src/BSP_Files/hardware_init.o ./src/BSP_Files/init_bsp.o ./src/BSP_Files/mqx_main.o  ./src/Audio/WM8731_driver.o ./src/Audio/audio.o ./src/Audio/fsl_soundcard.o ./src/Audio/main_call.o ./src/Audio/rtp.o  ./src/alarm.o ./src/config.o ./src/ethernet.o ./src/events.o ./src/headset.o ./src/init.o ./src/led.o ./src/main_call.o ./src/main_task.o ./src/si_o_main.o ./src/signalling.o ./src/spi.o  ./src/board_ub_iritel/board.d ./src/board_ub_iritel/gpio_pins.d ./src/board_ub_iritel/pin_mux.d  ./src/MQX/app_mqx.d  ./src/Interrupt_Handler/fsl_dspi_irq.d ./src/Interrupt_Handler/fsl_edma_irq.d ./src/Interrupt_Handler/fsl_ftm_irq.d ./src/Interrupt_Handler/fsl_sai_irq.d ./src/Interrupt_Handler/i2c_mqx_rtos_irq.d  ./src/BSP_Files/hardware_init.d ./src/BSP_Files/init_bsp.d ./src/BSP_Files/mqx_main.d  ./src/Audio/WM8731_driver.d ./src/Audio/audio.d ./src/Audio/fsl_soundcard.d ./src/Audio/main_call.d ./src/Audio/rtp.d  ./src/alarm.d ./src/config.d ./src/ethernet.d ./src/events.d ./src/headset.d ./src/init.d ./src/led.d ./src/main_call.d ./src/main_task.d ./src/si_o_main.d ./src/signalling.d ./src/spi.d  si_o_app.hex  si_o_app.elf

Original Attachment has been moved to: .cproject_ok.zip

Original Attachment has been moved to: .cproject_nok.zip

Outcomes