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
Description | Resource | Path | Location | Type |
mingw32-make: *** [SPI.afx] Error 1 | SPI | C/C++ Problem | ||
Link failed. | SPI | C/C++ Problem | ||
Warning: The PLL/FLL clock value is 0 - the clock is disabled. (Clock frequency [MHz]) | SPI | Cpu/Clock frequency [MHz] | Processor Expert Problem | |
Warning: Period is too little. The method SetDutyMS will return an error code only. | SPI | PwmLdd1 | Processor Expert Problem | |
Undefined : "DMA_Transfer_Done" | SPI | line 0, external location: C:\Freescale\CW MCU v10.6\MCU\CodeWarrior_Examples\Processor_Expert\Kinetis\TWR-K40X256\SPI\MK40DX256Z_INTERNAL_RAM\Vectors_c.obj | C/C++ Problem | |
Undefined : "DMA_Transfer_Error" | SPI | line 0, external location: C:\Freescale\CW MCU v10.6\MCU\CodeWarrior_Examples\Processor_Expert\Kinetis\TWR-K40X256\SPI\MK40DX256Z_INTERNAL_RAM\Vectors_c.obj | C/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
Please try to search "DMA_Transfer_Done" and "DMA_Transfer_Error" in your project and include the file to your file.
Hello Carlos,
I am working with the TWR-LCD-RGB and the K70 development platform and have found a similar problem. Whenever I try to use the PE GPIO components (BitIO and Init_GPIO) I get this Link failed error, and several undefined reference errors from the GPIO components' functions.
When I use the same code without using the eGUI driver for the LCD, the code works just fine.
Do you know what could be happening?
Regards,
Elisa
Hi Elisa,
Could you create a new post with this question? Also, could you tell us the steps to reproduce the issue or maybe attach a sample project?
Thanks in advance!
Best Regards,
Carlos Mendoza
Technical Support Engineer