AnsweredAssumed Answered

KDS 1.2 link issue

Question asked by Dawei You Employee on Jun 15, 2015
Latest reply on Jun 15, 2015 by Erich Styger

Hi:

 

I migrate one project, built on previous KDS version, to KDS3.0, which get a link issue:

see below log, the whole log is attached.

 

'Building target: AcmMuRataTest.elf'

'Invoking: Cross ARM C++ Linker'

arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wuninitialized -Wall -Wmissing-declarations -Wlogical-op -T "F:/www/AcmMuRataTest/Project_Settings/Linker_Files/ProcessorExpert.ld" -Xlinker --gc-sections -L"F:/www/AcmMuRataTest/Project_Settings/Linker_Files" -Wl,-Map,"AcmMuRataTest.map" -o "AcmMuRataTest.elf"  ./Sources/lowLevelObjects/AinSlave.o ./Sources/lowLevelObjects/HotWaterVolume.o ./Sources/lowLevelObjects/StringFunctions.o  ./Sources/highLevelObjects/GridControlAyla.o ./Sources/highLevelObjects/Scheduler.o ./Sources/highLevelObjects/aylaSetAndSend.o  ./Sources/hardwareObjects/AinUart.o ./Sources/hardwareObjects/ButtonLeft.o ./Sources/hardwareObjects/ButtonRight.o ./Sources/hardwareObjects/Buzzer.o ./Sources/hardwareObjects/LeakDetect.o ./Sources/hardwareObjects/UserLeds.o ./Sources/hardwareObjects/uartDebugFucntions.o  ./Sources/AylaCode/conf_access.o ./Sources/AylaCode/crc16.o ./Sources/AylaCode/demo.o ./Sources/AylaCode/endian.o ./Sources/AylaCode/prop_dp.o ./Sources/AylaCode/props.o ./Sources/AylaCode/serial_msg.o ./Sources/AylaCode/spi_io.o ./Sources/AylaCode/spi_ping.o ./Sources/AylaCode/spi_pkt.o ./Sources/AylaCode/utility.o  ./Sources/Events.o ./Sources/main.o  ./Project_Settings/Startup_Code/startup.o  ./Generated_Code/ASerialLdd1.o ./Generated_Code/ASerialLdd2.o ./Generated_Code/ASerialLdd3.o ./Generated_Code/AdcLdd1.o ./Generated_Code/BitIoLdd10.o ./Generated_Code/BitIoLdd11.o ./Generated_Code/BitIoLdd12.o ./Generated_Code/BitIoLdd13.o ./Generated_Code/BitIoLdd2.o ./Generated_Code/BitIoLdd3.o ./Generated_Code/BitIoLdd4.o ./Generated_Code/BitIoLdd5.o ./Generated_Code/BitIoLdd6.o ./Generated_Code/BitIoLdd7.o ./Generated_Code/BitIoLdd8.o ./Generated_Code/Cpu.o ./Generated_Code/PE_LDD.o ./Generated_Code/PwmLdd1.o ./Generated_Code/PwmLdd2.o ./Generated_Code/PwmLdd3.o ./Generated_Code/SMasterLdd1.o ./Generated_Code/TU1.o ./Generated_Code/TU2.o ./Generated_Code/TU3.o ./Generated_Code/TimerIntLdd1.o ./Generated_Code/Vectors.o ./Generated_Code/ainHwUartSCI.o ./Generated_Code/ainTxEnableDout.o ./Generated_Code/allAdChannelsAin.o ./Generated_Code/cea2045HwUartSCI.o ./Generated_Code/ceaTxEnableDout.o ./Generated_Code/ceaUcmResetDout.o ./Generated_Code/heartbeatLedDout.o ./Generated_Code/leftDs25LedPwmOut.o ./Generated_Code/pushButtonLeftDin.o ./Generated_Code/pushButtonRightDin.o ./Generated_Code/rightDs46LedPwmOut.o ./Generated_Code/rtiTimer.o ./Generated_Code/speakerPwmOut.o ./Generated_Code/spiWiFi.o ./Generated_Code/spiWifiChipSelDout.o ./Generated_Code/uartDebug.o ./Generated_Code/wifiIntrDin.o ./Generated_Code/wifiLinkDin.o ./Generated_Code/wifiReadyDin.o ./Generated_Code/wifiResetDio.o  

f:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv6-m\libc.a(lib_a-sbrkr.o): In function `_sbrk_r':

sbrkr.c:(.text._sbrk_r+0xc): undefined reference to `_sbrk'

collect2.exe: error: ld returned 1 exit status

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

Original Attachment has been moved to: Report.txt.zip

Outcomes