2024-06-21 02:40 AM - last edited on 2024-06-21 03:16 AM by SofLit
I am use nucleo-h503rb evk board and i am configure fdcan communication. I have mention below my code please see. I have did not comes output on FDCAN communication.
please send me demo code for that
2024-07-05 04:27 AM
also, I Have one of thing just check. I have DSO channel 1 no connected in STM32H503RBT6 board CAN TX pin with respected to ground. But it's not show any output on DSO.
2024-07-05 04:38 AM
I didn't understood your sentence but to view the Tx frames with an oscilloscope on Tx pin, you need also to connect the oscillo probe to the ground.
2024-07-07 09:43 PM
printf("Initialization complete. Starting main loop.\r\n");
/* Configure the FDCAN TX Header */
TxHeader.Identifier = 0x321; // Standard or Extended ID
TxHeader.DataLength = FDCAN_DLC_BYTES_8; // Data length (up to 64 bytes)
TxHeader.BitRateSwitch = FDCAN_BRS_OFF; // Bit rate switch (CAN FD)
TxHeader.FDFormat = FDCAN_CLASSIC_CAN; // Message format (CLASSIC_CAN or CAN_FD)
TxHeader.TxFrameType = FDCAN_DATA_FRAME; // Frame type (DATA_FRAME or REMOTE_FRAME)
TxHeader.ErrorStateIndicator = FDCAN_ESI_ACTIVE; // Error state indicator
TxHeader.TxEventFifoControl = FDCAN_NO_TX_EVENTS; // Tx event FIFO control
/* Start the FDCAN peripheral */
if (HAL_FDCAN_Start(&hfdcan1) != HAL_OK)
{
Error_Handler(); // Handle FDCAN start error
}
is this correct for transmit data STM32H503RBT6
2024-07-08 01:15 AM
Hello,
I suggest you to refer to one of the examples provided in STM32G4 (normally it's the same FDCAN implementation):
2024-07-08 08:14 PM
is this project to import in stm32h503? If possible, then how? Can you share me procedure.
2024-07-11 09:48 PM
Hello SofLit
I am trying to check on Digital Storage Oscilloscope waveform. I was CANTX pin directly connected DSO and check the waveform. But CANTX pin has not Show any Waveform. Why? any Reason?