cancel
Showing results for 
Search instead for 
Did you mean: 

error code-38 when starting FD-CAN

VPras
Associate II

Hi,

I'm trying to transmit some data using FD-CAN but HAL_FDCAN_Start() function returns error code 38. I have taken reference from STM32H743-EVAL kit example.I have configured same as mentioned there. But still i couldn't figure out the issue behind it.

Thanks,

Vimal

4 REPLIES 4
VPras
Associate II

Hi,

that issue is solved, Tx fifo/queue was not allocated into RAM area, Now my tx fifo is not getting cleared after transmission of message,

 /* Retrieve the Tx FIFO PutIndex */

   PutIndex = ((hfdcan->Instance->TXFQS & FDCAN_TXFQS_TFQPI) >> FDCAN_TXFQS_TFQPI_Pos);

   /* Add the message to the Tx FIFO/Queue */

   FDCAN_CopyMessageToRAM(hfdcan, pTxHeader, pTxData, PutIndex);

   /* Activate the corresponding transmission request */

   hfdcan->Instance->TXBAR = ((uint32_t)1 << PutIndex);

   /* Store the Latest Tx FIFO/Queue Request Buffer Index */

   hfdcan->LatestTxFifoQRequest = ((uint32_t)1 << PutIndex);

also i'm not seeing any data after transmission, what could go wrong for unsuccessful transmission?

how do i proceed further, someone please help me!

Thanks,

Vimal

issue is solved..there was a placement issue in crystal oscillator

Asing.4
Associate II

can we run FDCAN without using external oscillator

ngoctoan150699
Associate III

How did you fix the error?