We are using Kinetis K60 controller for our product. Now we are planning to upgrade the controller to K66 because it has more memory.
For K60 controller we are using Codewarrior 10.4 IDE and MQX 4.0.2 RTOS. We upgraded the IDE to CW11.1 and latest MQX for K66 controller. We are porting the existing code to the latest controller. You know the CW10.4 has codewarrior kinetis compiler where as for the latest version we have to use GCC compiler.
Now we are facing an issue in size mismatch of packed structure in both compiler. We are using bitfilelds and pack(1) in some of the structures, but the size of these structure is different in both compiler. GCC compiler giving exact calculated size but codewarrior compiler padding some bytes. This is causing compatible issues in our system.
Please suggest how can we handle this issue. We have so many structures like this so explicit shift and mask operation is not possible in our case.
Thanks & regards,
K66 is supported in MQX 5.1. From the release note, I can see the develop tool for MQX 5.1 is Codewarrior 10.6.4.
Please refer to below link for more details
I would suggest you use Codewarrior 10.6.4.