MQX 3.5 bugs inside mcf5225.h

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

MQX 3.5 bugs inside mcf5225.h

Jump to solution
2,426 Views
admin
Specialist II

Hi,

working with MQX 3.5 when I use a pointer to a struct like VMCF5225_GPT_STRUCT_PTR or VMCF5225_RNG_STRUCT_PTR or  VMCF5225_PWM_STRUCT_PTR there is a problem. Inside the file mcf5225.h some structs are declared with mcf5225.. but after there is MCF5225 in uppercase. 

 

typedef struct mcf5225_gpt_struct
{  
   uchar    GPTIOS;         // GPT IC/OC Select Register
.......

   uchar    filler[0xFFE0];
} MCF5225_GPT_STRUCT, _PTR_ MCF5225_GPT_STRUCT_PTR;
typedef volatile struct MCF5225_gpt_struct _PTR_ VMCF5225_GPT_STRUCT_PTR; // <-- here MCF5225 is uppercase

 

 

typedef struct mcf5225_rng_struct
{
   uint_32  RNGCR;            // Random Number Generator Control Register
...
   uint_32  RNGOUT;           // Random Number Generator Output Register
   uchar    filler[0xFFEC];
} MCF5225_RNG_STRUCT, _PTR_ MCF5225_RNG_STRUCT_PTR;
typedef volatile struct MCF5225_rng_struct _PTR_ VMCF5225_RNG_STRUCT_PTR; // <-- here MCF5225 is uppercase

 

typedef struct mcf5225_pwm_struct
{  
   uchar    PWME;            // PWM Enable Register
 ...
   uchar    PWMSDN;          // PWM Shutdown Register
   uchar    filler[0xFFDB];  
} MCF5225_PWM_STRUCT, _PTR_ MCF5225_PWM_STRUCT_PTR;
typedef volatile struct MCF5225_pwm_struct _PTR_ VMCF5225_PWM_STRUCT_PTR; // <-- here MCF5225 is uppercase

0 Kudos
Reply
1 Solution
760 Views
JuroV
NXP Employee
NXP Employee

Thank you for report, fixed.

View solution in original post

0 Kudos
Reply
5 Replies
760 Views
HLaidet
Contributor I

Hello,


I use MCF52259 with MQX3.5


There is another bug in the file mcf5225.h

In MCF5225_STRUCT the filler11 (after FCAN) is 0xFFCA.
This is wrong and must be equal to 0xFFCC.

 

This is not a problem with CodeWarrior because Struct Alignment = 32bits.

But it made me problems when I compiled the application with m68k-elf-gcc.
MQX Kernel+RTCS worked but not USB (all components after FCAN have bad address).

 

0 Kudos
Reply
760 Views
JuroV
NXP Employee
NXP Employee
Hi HLaidet, thank you. This bug is also already fixed in MQX development snapshot, thanks to you. It would be not fair from my side to tell when new release of MQX 3.6 will come- I dont have such privileges to tell that. I can tell you that 3.6 should be release during summer, but dont consider this as some final thing. Consider it as an estimation, that it wll not be next year.
0 Kudos
Reply
760 Views
DavidS
NXP Employee
NXP Employee

June 21, 2010 is the targeted release of FSLMQX3.6 which coincides with FTF Orlando (http://www.Freescale.com/FTF).

Regards,

David

0 Kudos
Reply
760 Views
admin
Specialist II

Thanks, the new MQX release when will be online?

0 Kudos
Reply
761 Views
JuroV
NXP Employee
NXP Employee

Thank you for report, fixed.

0 Kudos
Reply