Internal compiler error in Pcode.c file

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

Internal compiler error in Pcode.c file

530 Views
dipikakamat
Contributor I

Hi all,

I am trying to compile a code using the CW ver 4.02 IDE for DSP56F805 MCU. The code was previously compilable and error free. However when i tried to copile this code yesterday,it gave me an error "internal compiler error in Pcode.c file at line 1003".This file is not found in my sources/project settings.Does any body have any idea about this file and how to get rid of such compiler errors?.Thanks in advance.

Labels (1)
0 Kudos
2 Replies

389 Views
TICS_Fiona
NXP Employee
NXP Employee

Hello  Kamat

CW4.0.2 is an old version that was released before Y2001. We have no this version installed now, and the current Windows 7, 8 does not support this tool either. 

Whether compiler optimization is enabled in your project? Please disable the optimization to see whether there is any different. 

Please locate the code line which introduces the compiler error. There is a known problem in CodeWarrior 4.1 for such code:
 ImpulsiTOT = (OverloadCounter << 16) | DeltaImpulsi;

 If change it to:

 ImpulsiTOT = (OverloadCounter << 16);
ImpulsiTOT = ImpulsiTOT | DeltaImpulsi;

The compiler error will be worked around.

Best Regards

Fiona Kuang

TIC - Technical Information Center

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Mark Correct button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

389 Views
dipikakamat
Contributor I

Hi,

Is it possible to get rid of this error without making any changes in the

code?May be changes in compiler linker settings?

Can you please provide me the steps to create a new project in code

warrior IDE 4.02.

I have the project file generated using this IDE.How do i add it to the

Workspace to compile it?

Can you please guide me?

Thanks and Regards,

Dipika Kamat

Assistant System Engineer

Tata Consultancy Services

STP-Unit,House No.65/A-5,

NEAR CIVIL & CRIMINAL COURT

ALTINHO, Mapusa- Goa,

India

Mailto: kamat.dipika@tcs.com.

=====

0 Kudos