AnsweredAssumed Answered

MPC5746C header file error

Question asked by Neo Jung Employee on Sep 26, 2016

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

Outcomes