Further testing showed that although the methed I mentioned in the previous post did fix the filter on CAN1, CAN2 could no longer read any messages. In the end I had to put a filter on both CAN channels to get the application to work right. With a filter on both channels, the order of initialization did not matter anymore.