MPC5746C header file error

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

MPC5746C header file error

Jump to solution
1,263 Views
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

Labels (1)
0 Kudos
1 Solution
1,044 Views
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

View solution in original post

0 Kudos
2 Replies
1,045 Views
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 Kudos
1,043 Views
martin_kovar
NXP Employee
NXP Employee

Hi Neo,

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

Regards,

Martin

0 Kudos