Hello
I remember that with earlier version of CodeWarrior the size of the debug information was limited to 16 Mb. This limitation has been removed with CodeWarrior for HCS12 V4.7.
It looks like in your application you have reached this limit.
I suspect you have huge numbers of typedefs for complex structure of union, which are included in every single source file in the application.
From that point I see only 2 solutions:
1- Port the project to V5.1 where size of debug info can be higher than 16 Mb
2- Analyze the dependency tree and include the file containing typedefs for huge
constants or unions only when it is relevant. This might reduce the size of the debug
info and allow you to link the application.
The message about debugger unable to find main function is generated because the source file where main is implemented is built without debug information. If there is no debug information the debugger will not be able to perform any symbolic debugging. So it will not recognize or find any function name or variable name in the files built without debug info.
CrasyCat