STM32 BxCAN filter registers are only accessible via the CAN1 register block; teach the code how to get at them.