TJA1145 has two battery source,one is for the chip work(VDD should be 5V), and the other is for the SPI bus(the voltage is based on host controller, should be 3.3V in common), if the later voltage supply in 5V, which will cause error operation on SPI bus by chance, and the register operation on TJA1145 may failed.
This problem has been solved,as the register of #63h should be cleared just before setting the TJA1145 into sleep mode with selective wake-up. I have cleared the #63h early before , maybe it has been waked up by the signal on the CAN bus more quickly.