AnsweredAssumed Answered

Link failed : CW 10.6 with K40x256 TWR System

Question asked by k bm on Jan 7, 2015
Latest reply on Jan 12, 2016 by Elisa Mejia

Hi All.

 

I am trying to use CW 10.6 with K40X256 TWR system. I imported one the example PE projects on SPI, generated code and tried building it. I am getting the following error:

 

**** Build of configuration MK40DX256Z_INTERNAL_RAM for project SPI ****

Problems

DescriptionResourcePathLocationType
mingw32-make: *** [SPI.afx] Error 1SPIC/C++ Problem
Link failed.SPIC/C++ Problem
Warning: The PLL/FLL clock value is 0 - the clock is disabled. (Clock frequency [MHz])SPICpu/Clock frequency [MHz]Processor Expert Problem
Warning: Period is too little. The method SetDutyMS will return an error code only.SPIPwmLdd1Processor Expert Problem
Undefined : "DMA_Transfer_Done"SPIline 0, external location: C:\Freescale\CW MCU v10.6\MCU\CodeWarrior_Examples\Processor_Expert\Kinetis\TWR-K40X256\SPI\MK40DX256Z_INTERNAL_RAM\Vectors_c.objC/C++ Problem
Undefined : "DMA_Transfer_Error"SPIline 0, external location: C:\Freescale\CW MCU v10.6\MCU\CodeWarrior_Examples\Processor_Expert\Kinetis\TWR-K40X256\SPI\MK40DX256Z_INTERNAL_RAM\Vectors_c.objC/C++ Problem


Console Output

"C:\\Freescale\\CW MCU v10.6\\gnu\\bin\\mingw32-make" -j8 all

'Building file: ../Generated_Code/eDMA1.c'

'Executing target #11 ../Generated_Code/eDMA1.c'

'Invoking: ARM Compiler'

"C:/Freescale/CW MCU v10.6/MCU/ARM_Tools/Command_Line_Tools/mwccarm" -gccinc @@"Generated_Code/eDMA1.args" -o "Generated_Code/eDMA1_c.obj" -c "../Generated_Code/eDMA1.c" -MD -gccdep

'Finished building: ../Generated_Code/eDMA1.c'

' '

'Building target: SPI.afx'

'Executing target #12 SPI.afx'

'Invoking: ARM Linker'

"C:/Freescale/CW MCU v10.6/MCU/ARM_Tools/Command_Line_Tools/mwldarm" -o "SPI.afx" @@"SPI.args"  

C:/Freescale/CW MCU v10.6/MCU/ARM_Tools/Command_Line_Tools/mwldarm|Linker|Error

(C:\Freescale\CW MCU v10.6\MCU\CodeWarrior_Examples\Processor_Expert\Kinetis\TWR-K40X256\SPI\MK40DX256Z_INTERNAL_RAM\Vectors_c.obj|0|0|0|0|0)

=Referenced from ".vectortable" in Vectors_c.obj

>Undefined : "DMA_Transfer_Done"

C:/Freescale/CW MCU v10.6/MCU/ARM_Tools/Command_Line_Tools/mwldarm|Linker|Error

(C:\Freescale\CW MCU v10.6\MCU\CodeWarrior_Examples\Processor_Expert\Kinetis\TWR-K40X256\SPI\MK40DX256Z_INTERNAL_RAM\Vectors_c.obj|0|0|0|0|0)

=Referenced from ".vectortable" in Vectors_c.obj

>Undefined : "DMA_Transfer_Error"

C:/Freescale/CW MCU v10.6/MCU/ARM_Tools/Command_Line_Tools/mwldarm|Linker|Error

>Link failed.

 

 

Errors caused tool to abort.

mingw32-make: *** [SPI.afx] Error 1

Outcomes