Hi,
Thank you for your reply. Referring to AN7427, I am trying to imgrate the hvac_twrmcf52259 project from CW 7.2 to CW 10.7. I have added all of the source files, lib files, object files to the new project in CW 10.7, and changed the include path and library path. But I am not sure how to modify the linker files.I just use the automatically generated MCF52259_Interbal_Flash.lcf file, and I didn't change the startup_code files. But I got the link error as follows. Can you give some advice how to resolve these error? Do you have the modified lcf file for hvac_twrmcf52259 adpted to CW 10.7, and send me an copy? Thank you very much.
When I use Entry point : __startup
The error messages in the console is:
'Building target: TWR-MCF52259.elf'
'Executing target #19 TWR-MCF52259.elf'
'Invoking: ColdFire Linker'
"F:/Freescale/CW MCU v10.7/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf" -o "TWR-MCF52259.elf" @@"TWR-MCF52259.args"
F:/Freescale/CW MCU v10.7/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Error
>Undefined : "main"
>Referenced from "_startup" in
F:/Freescale/CW MCU v10.7/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Error
>Link failed.
Errors caused tool to abort.
mingw32-make: *** [TWR-MCF52259.elf] Error 1
When I use Entry point : ___boot (refer to the CW 7.2 settings)
The error messages in the console is:
'Building target: TWR-MCF52259.elf'
'Executing target #19 TWR-MCF52259.elf'
'Invoking: ColdFire Linker'
"F:/Freescale/CW MCU v10.7/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf" -o "TWR-MCF52259.elf" @@"TWR-MCF52259.args"
F:/Freescale/CW MCU v10.7/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Error
>Undefined : "__boot"
Errors caused tool to abort.
mingw32-make: *** [TWR-MCF52259.elf] Error 1