Hi Zhang
I downloaded the above zip file, extracted to a separate directory, then imported your project into CW 10.6. Did a "Clean" then tried to build. Initially it complained that it couldn't find "AN2295_LinkerFile.lcf" due to absolute path to your hard drive. (I thought the import would have corrected this? It did modify all other paths it seems. I had selected copy files to workspace, on the import??) I manually changed this to my path under "Project->Properties->Settings->ARM Linker->Input --> Linker Command File". Then I get the same error as I've been getting all along. See bellow. Can't fine __main. Is there some global CodeWarrior setting that I need to make?
Thanks, John
**** Build of configuration Kinetis K 100MHz for project AN2295_Kinetis ****
"C:\\Freescale\\CW MCU v10.6\\gnu\\bin\\mingw32-make" -j12 all
'Building target: AN2295_Kinetis.afx'
'Executing target #1 AN2295_Kinetis.afx'
'Invoking: ARM Linker'
"C:/Freescale/CW MCU v10.6/MCU/ARM_Tools/Command_Line_Tools/mwldarm" -o "AN2295_Kinetis.afx" @@"AN2295_Kinetis.args"
C:/Freescale/CW MCU v10.6/MCU/ARM_Tools/Command_Line_Tools/mwldarm|Linker|Error
>Undefined : "__main"
Errors caused tool to abort.
mingw32-make: *** [AN2295_Kinetis.afx] Error 1