Codewarrior Illegal initialization of aggregate type

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

Codewarrior Illegal initialization of aggregate type

2,171 Views
rayhall
Contributor V

I keep getting this error when I compile and cannot see why.

The LockupMap[2]12[] array initialization in the C file causes this error and I cannot see anything wrong.

I have included the two files.

Ray.

 

0 Kudos
8 Replies

2,128 Views
rayhall
Contributor V

This is all I can find that gives a version.

CodeWarrior Development Studio fort he S12(X) Version 5.2, build 151127

Ray.

0 Kudos

2,114 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

Thank you.

One value is missing in the "Real Time Data" in the Cal.c file.

Also, the array below is filled with 25 numbers, but your size is uint16_t lockupMap[2][12]; in the Cal.h

{1,10,20,30,40,50,60,70,80,90,100,110,120,
200,300,400,500,600,700,800,900,1000,1100,1200,1300}, // LockupMap

I believe it helps.

Best regards,

Diana

 

0 Kudos

2,128 Views
rayhall
Contributor V

CodeWarrior Development Studio fort he S12(X) Version 5.2, build 151127

0 Kudos

2,140 Views
rayhall
Contributor V

CodeWarrior Development Studio for the S12(X) Version 5.2, build 151127

0 Kudos

2,141 Views
rayhall
Contributor V

CodeWarrior Development Studio fort he S12(X) Version 5.2, build 151127

0 Kudos

2,154 Views
rayhall
Contributor V

I have version 5.9.0 build 5294

0 Kudos

2,155 Views
rayhall
Contributor V

I have version 5.9.0 build 5294

Ray.

0 Kudos

2,159 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

 

Can you, please, share the version of CodeWarrior?

 

Thank you.

Best regards,

Diana

0 Kudos