Tool/software:
Dear Team:
In my debugging process, I found that the bus always appeared abnormal from time to time, for example, there were no reports reported, so I suspected that the bus was in the OFF state at this time. However, I read many methods and did not get a clear reply, so I hope to get a reply from your official personnel. At present, I short-link CANH and CANL. In this case, CAN will report ERROR, resulting in no data being reported. At present, I have two methods. CAN_setAutoBusOnTime(CANA_BASE,100) this function to solve, from the phenomenon seems to be solved, another method is to call CAN_enableController(uint32_t base) he solution, Make CanaRegs.CAN_CTL.INIT=0; Seems to be able to restore communications. May I ask what the correct solution is?
At the same time, I have a puzzle, when my product is loaded on the bus, there will be a lot of data sent and received on the bus, at this time, CAN communication will have no data reported, I would like to ask, is this phenomenon CAN_ERROR? If this happens, is it handled in the same way as bus busoff?
look forward to your reply.
Best Regards
Zhang