2021-10-08 12:13 AM
I used the example from Motor control work bench(ElectronicspeedControl),configured CAN in CubeMX and imported generated code in STMCubeIDE.Now I don't know what should be next step?
2021-10-08 01:40 AM
Hello @Tejashree
The communication protocol over CAN is not supported yet.
So for the time being, you can use only the UART.
Regards
Cedric
2021-10-08 01:50 AM
Hi Cedric,The datesheet says it support CAN? I am using B-g431B-ESC1 discovery kit.Also 120ohm resistor on board(r26).Do we have to pull CAN_TERM pin high to start the CAN cOMMINUCATION ?
2021-10-08 03:36 AM
Yes, the board support the CAN bus. But the software part is missing.
Cedric
2021-10-08 03:43 AM
So, the functions from HAL driver ,example below won't work if implemented?
if (HAL_FDCAN_GetRxMessage(&hfdcan1, FDCAN_RX_FIFO0, &RxHeader, RxData) == HAL_OK)
or can there be any other alternative to implement CAN ?