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
已解决! 转到解答。
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
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