Type Fixup overflow in adc_int, to ix.2 type 1, at offset 0x10B C/C++ Problem

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

Type Fixup overflow in adc_int, to ix.2 type 1, at offset 0x10B C/C++ Problem

438 Views
lslonim
Contributor I

Hi, I am porting old code from the Cosmic compiler for MC9S08DZ60ACLH to Code Warrior 11.1, which is the last version that supports this processor. I am getting a bunch of errors that I don't understand:

Fixup overflow in adc_int, to ix.2 type 1, at offset 0x1D (filename)C/C++ Problem

Can anyone tell me what this means? I'll post a screenshot of the whole list of errors.

Lloyd

0 Kudos
Reply
4 Replies

379 Views
lslonim
Contributor I

The function is very simple. There are no special linker commands, and no special memory directives, it's just the default that the IDE uses. Can you tell me exactly what the error message means?


void adc_init(void) /* init adc */
{
ADCCFG = ADCCFG_VAL;
APCTL1 = 0x08;
APCTL2 = 0x00;
APCTL3 = 0xE0;
// analog input conversion sequence initiated by 1ms timer interrupt
}

0 Kudos
Reply

382 Views
Pablo_Ramos
NXP Employee
NXP Employee

Hi @lslonim,

Could you help me with further explanation on your settings?

Are you using noncontiguous memory areas?

How are you declaring adc_init function?

Could you share with me the section of code where the error is happening?

0 Kudos
Reply

30 Views
lslonim
Contributor I

Hi @ZhangJennie ,

You were able to help me with another problem, can you take a look at this one? The error messages are a complete mystery to me.

Thanks,

Lloyd Slonim

0 Kudos
Reply

31 Views
lslonim
Contributor I

Hi @Pablo_Ramos I'm back on this project after time away. I still can't figure out anything that is causing these 14 errors. Can I send you the whole project zipped up for you to look at? This is a totally normal C function with no modifiers and no special linker commands. This is preventing me from doing any work on the project.

Thanks,

Lloyd

0 Kudos
Reply