MPC5746C header file error

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

MPC5746C header file error

跳至解决方案
1,351 次查看
neojung
NXP Employee
NXP Employee

Hello Sir,

 

I would like to report an error on MPC5746C header file which is created by S32DS.

Base address of CAN_1,3,5,7 was wrong.

 

// Current MPC5746C.h

#define CAN_0 (*(volatile struct CAN_0_tag *) 0xFFEC0000UL)
#define CAN_1 (*(volatile struct CAN_tag *) 0xFFEC0000UL)
#define CAN_2 (*(volatile struct CAN_tag *) 0xFFEC4000UL)
#define CAN_3 (*(volatile struct CAN_tag *) 0xFFEC4000UL)
#define CAN_4 (*(volatile struct CAN_tag *) 0xFFEC8000UL)
#define CAN_5 (*(volatile struct CAN_tag *) 0xFFEC8000UL)
#define CAN_6 (*(volatile struct CAN_tag *) 0xFFECC000UL)
#define CAN_7 (*(volatile struct CAN_tag *) 0xFFECC000UL)

 

// Should be modified to use all CAN peripheral.

#define CAN_0 (*(volatile struct CAN_0_tag *) 0xFFEC0000UL)
#define CAN_1 (*(volatile struct CAN_tag *) 0xFBEC0000UL)
#define CAN_2 (*(volatile struct CAN_tag *) 0xFFEC4000UL)
#define CAN_3 (*(volatile struct CAN_tag *) 0xFBEC4000UL)
#define CAN_4 (*(volatile struct CAN_tag *) 0xFFEC8000UL)
#define CAN_5 (*(volatile struct CAN_tag *) 0xFBEC8000UL)
#define CAN_6 (*(volatile struct CAN_tag *) 0xFFECC000UL)
#define CAN_7 (*(volatile struct CAN_tag *) 0xFBECC000UL)

 

Best regards,

Neo

标签 (1)
0 项奖励
1 解答
1,132 次查看
stanish
NXP Employee
NXP Employee

Hello  Neo,

Thanks a lot for your report!

I've logged this issue as a bug under the number ENGR00384152.

This will be  fixed in the next release S32 Design Studio for Power v1.2

The workaround is to manually adjust the header file  CAN base addresses as you suggested.

Stan

在原帖中查看解决方案

0 项奖励
2 回复数
1,133 次查看
stanish
NXP Employee
NXP Employee

Hello  Neo,

Thanks a lot for your report!

I've logged this issue as a bug under the number ENGR00384152.

This will be  fixed in the next release S32 Design Studio for Power v1.2

The workaround is to manually adjust the header file  CAN base addresses as you suggested.

Stan

0 项奖励
1,131 次查看
martin_kovar
NXP Employee
NXP Employee

Hi Neo,

thanks for your report. I will escalate it to appropriate person.

Regards,

Martin

0 项奖励