Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/stm32/stm32f2/STM32F217/CAN2/ESR#0x0
interrupt enable register
EWGF
EPVF
BOFF
LEC
TEC
REC
https://github.com/modm-io/cmsis-svd-stm32