This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi team,
The hardware uses a 4357 development board and the code uses the HAL library's cancommunication as a reference. Use IF1 on CAN1 to control the transmit mailbox and IF2 to control the receive mailbox. The control registers are set as follows to transmit and receive extended frames:
The receive function can receive data from the chip itself when using the lookup back mode test, indicating that the hardware circuit should be fine. However, when the can pin is connected to the outside can assistant, it can only send data to the can assistant. Sending data from the can assistant makes it impossible for the code to detect data entering the cache area when the chip is received. Node->NWDATx[regIndex] & bitIndex; always is 0 and it will stuck at the point where detection data arrives making it unable to enter Getdata function.
The main function and detection data arrival are shown in the following figure:
Using the can Assistant to receive and send data is shown in the following figure:
Could you help check this case? Thanks.
Best Regards,
Cherry
Hi Cherry,
Could you please check my latest comment on below thread, it is similar issue and there i attached one reference code as well
--
Thanks & regards,
Jagadish.
Hi Jagadish,
Thanks for your support and these 2 threads are from the same customer, we could close this one as you have followed up on the above one.
Best,
Cherry