We are trying to validate an Algorithm/SW on the S32K144 Evaluation Board.
One of the validation step is being able to detect CAN H or CAN L cables disconnection. If disconnection exists longer time than a threshold, our algorithm gives an ERROR. But if it just lower than a threshold, after removing disconnection, it operates as if nothing happened since cable was disconnected less than threshold.
But we observed that after disconnecting and connecting cable again, we can not take any CAN data from S32K144 EVB which should broadcast data periodically. Also we had just observed another issue with CAN that I will describe below.
Second observation that we have is : At normal operation (in not validation)
And that is not only with BUSMASTER. Same goes with also Matlab and Simulink.
We need to handle both issues. How can we come up with the solution. What is the problem or the failure we do?
Any help will be appreciated.
Dear @PetrS ,
We are using Model Based Design and that is the case what we are facing. We have NDA with you. If you like to give it a try we can share our CAN side of model to you on e-mail. Since we use MBD, we can not use unfortunately Read Register block. We have opened a request for that also. What else we can do? What should we check? Any help will be appreciated.
unfortunately I do not have experience with MDB, for this please post question to https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/bd-p/mbdt
Without having debug info (registers status) hard to comment.
not sure what SW is used, but with respect of the FlexCAN module, there should be no issue to sending messages after CAN tool is reconnected back.
After you connect tool again and you expect any CAN data which do not come, try to check FlexCAN register using debugger. See status of the module (MCR register), if any error is detected (ESR1 and ECR ), check message is prepared for TX in used MBs and check IFLAG register.