Oh, another way for you to debug the issue is to perform a Linux capture of the canbus, and then align the homing failure with the actual messages on the canbus. (If you go this route, you’ll need to research the low-level protocol, research the canbus protocol, and align the timestamps between captures/logs - so expect to invest notable time on it).
The candump
utility can be used to take canbus captures - for example: candump -t z -Ddex can0,#FFFFFFFF
Cheers,
-Kevin