Please, help me find the errors

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Please, help me find the errors

570 Views
hawk
Contributor II

Error I can't find

I am starting the demo board by Code Warrior DEMO9S08AW60E, and using the software that came with it CW 10.1

I am trying to compile some code and burn it to the micro but it fails with the error, C2801 '}' missing        ecetypes.h                /TV-3 Project Test 1/Project_Headers    line 35   C/C++ Problem

Line 35 is " typedef unsigned char U8;

Full code is for header file is:

 

#ifndef _ECETYPES_H_

#define _ECETYPES_H_

//---------------------------------------------------------------------------

//--------------------------------------------------------------------------

             

typedef unsigned char U8;

typedef unsigned short U16;

typedef unsigned long U32;

typedef signed char S8;

typedef short int S16;

typedef long int S32;

 

//-------------------------------------------------------------------------                                  

//--------------------------------------------------------------------------

 

#endif

 

The file in the project, I have looked for 2 days on the web and the code looks fine. Should I be looking elsewhere? Could someone please give me a clue? or some help? Gosh, I would appreciate it, I really don't know what else to do.

The closest I came was in Chinese, after translation all it said you are missing a brace. Not much help.

Much Thanks, in advance

David

Labels (1)
0 Kudos
Reply
1 Reply

446 Views
trytohelp
NXP Employee
NXP Employee

Hi David,

It's very difficult to provide you a solution.

You're using CW for MCU V10.1.

This is a very old version.

CW for MCU V10.5 has been released end of December 2013.

I don't think this is linked to the problem but I recommend (if it's possible) to switch to the last version.

To check the issue we need to reproduce the problem on our side.

We don't nee the project ... just the preprocess file will be enough.

To generate it you must:

      - select the file,

      - with the pop-up click on Preprocess,

A new file will be generated.

Please provide us this file.

Regards

Pascal

0 Kudos
Reply