MQX 3.5 bugs inside mcf5225.h

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MQX 3.5 bugs inside mcf5225.h

跳至解决方案
4,332 次查看
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 项奖励
回复
1 解答
2,666 次查看
JuroV
NXP Employee
NXP Employee

Thank you for report, fixed.

在原帖中查看解决方案

0 项奖励
回复
5 回复数
2,666 次查看
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 项奖励
回复
2,666 次查看
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 项奖励
回复
2,666 次查看
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 项奖励
回复
2,666 次查看
admin
Specialist II

Thanks, the new MQX release when will be online?

0 项奖励
回复
2,667 次查看
JuroV
NXP Employee
NXP Employee

Thank you for report, fixed.

0 项奖励
回复