cancel
Showing results for 
Search instead for 
Did you mean: 

Hi ,I am new to STM32 Motor control.I want to control BLDC Motor via B-G431B-ESC1.Also want to use CAN communication.

Tejashree
Associate III

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?

4 REPLIES 4
cedric H
ST Employee

Hello @Tejashree​ 

The communication protocol over CAN is not supported yet.

So for the time being, you can use only the UART.

Regards

Cedric

Hi Cedric,The datesheet says it support CAN? I am using B-g431B-ESC1 discovery kit.0693W00000FBrNeQAL.pngAlso 120ohm resistor on board(r26).Do we have to pull CAN_TERM pin high to start the CAN cOMMINUCATION ?

0693W00000FBrOIQA1.png

cedric H
ST Employee

Yes, the board support the CAN bus. But the software part is missing.

Cedric

Tejashree
Associate III

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 ?