CW SE and CRC registers

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

CW SE and CRC registers

1,254 Views
dpaul
Contributor I

Greetings:

 

I'm trying to use the CRC function on my MC9S08AC128 development board.  For reasons I can't fathom, CW (IDE 5.9.0, build 2830) will not compile the following lines:

 

CRCH = 0xFF; // CRC seeded 0xFFFF
CRCL = 0xFF; // CRC seeded 0xFFFF

I get the following error messages:

Error   : C1815: CRCH not declared (or typename)

LNISPI.c line 73  

Error   : C1815: CRCL not declared (or typename)

LNISPI.c line 74  

 

My standard MC9S08AC128.h file includes the following lines:

#define CRCL                            _CRCL.Byte

#define CRCH                            _CRCH.Byte

 

Is there something in the CW Special Edition which prohibits accessing these registers?  Other #defines in the device header file compile okay.  It's only the CRC registers which don't (at least that's all I've found so far).

 

Thanks for any ideas you may have,

doug

Labels (1)
0 Kudos
1 Reply

266 Views
CrasyCat
Specialist III

Hello

 

THere seems to be something wrong with your project?

Did you check the preprocessing listing for your source file (Click right on file name and select preprocess).

 

Check how the instructions

CRCH = 0xFF; // CRC seeded 0xFFFF
CRCL = 0xFF; // CRC seeded 0xFFFF

are expanded.

 

If this does not give you a clue, I would recommend you to submit a service request for that.

Click here to submit a service request.

Make sure to attach a reproducible project and installed product information to the service request.
To generate the required information:
- Start CodeWarrior
- Open the project
- Select "Help" -> "Pack and Go" and follow instructions on the screen.

Attach the generated .zip file to the SR.

 

CrasyCat

0 Kudos