Hello, I meet illegal bitfield type 'long long' compile errors when use cw10.6.4, the code like this,
How can I solve this error ?
Thanks.
Can anyone answer how to use "long long bitfield" in CW 10.6.4 of MPC56xx? And how to deal with the compiling errors?
Thanks a lot.
Hello,
because MPC5604 is 32-bit microcontroller, compiler does not allow 64bit bitfield.
Regards,
Martin
Hello Martin,
But as I know MPC5748 which in S32 studio IDE can support 64 bit filed, and it also 32-bit microcontroller, that' why?
Can anyone answer how to use "long long bitfield" in CW 10.6.4 of MPC56xx? And how to deal with the compiling errors?
Hi wang ning,
I was just aware you tried to use 64bit type.
The 64 bit support is not a hardware native support but a software emulation support, so getting access to an intermediate 64 intermediate is not possible., this was according to the compiler engineer leading the work on S12z compiler.
S12Z target architecture does not support in hardware neither the 64-bit long long type nor the required operation .
CW for MCU (which includes S12Z target) has 64-bit long long support emulated in software (the support can be selected in the new project wizard).
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Jennie, thanks for you reply. Actually I'm using MPC5604 in CW10.6.4, Can it support 64 bit long long type bitfield?
If yes, how to set the project?
Thanks.
Hi Ning,
I didn't know you use PPC5, I move FW your question to CW for PPC5 support engineer.
BR
Jennie Zhang.
OK, thanks.