Hi
This is an incompatibility with SP7 (sorry about that).
The set up of the PLL has been made more flexibly but the boot project was not tested with this (it shares the hardware header file
M5223x.h).
To correct this with CW6.3/CW6.4 add the following to
config.h#define OSCCLK 25000000 // the bootloader works without active PLL with the crystal frequencyCW7.0:When opening the project it will convert it to the CW7.0 format. After the correction for CW6.4 I could compiler without any warnings or errors.
It is however to note that it has been observed that some configuration parameters seems to be able to get lost when converting the project (see
http://www.utasker.com/forum/index.php?topic=265.msg1123#msg1123 for more details about known problems) so I looked at the use of
size_t in more detail.
CodeWarrior delivers this typedef itself so it must not be supplied by the project code (whereas other compilers don't deliver this and it does need to be defined in the code). The typedef is in
type.h and is also conditional on the compiler type used:
#if !defined CODE_WARRIOR_CF
#typedef unsigned int size_t;
#endifIf I force the define here I also get a lot of errors about
size_t, which suggests that the pre-processor define
CODE_WARRIOR_CF is missing in your converted project.
In CW7.0 check the set up of C/C++ Preprocessor - it should look like this:
#if !__option(precompile)
#include "mwerks.h" /* was "Prefix file" */
#endif
#define _M5223X
#define _CODE_WARRIOR
#define _CODE_WARRIOR_CFGood luck
Regards
Mark
PS. The 'merge' is only when downloading. The two projects (boot loader and application) are compiled seperately. Then both are downloaded to the board (they are copied to their own specific regions in FLASH) and then they work together. The document explains how to download like this - it is in fact very easy to do.