CanOpenSTM32 icon indicating copy to clipboard operation
CanOpenSTM32 copied to clipboard

HAL_FDCAN_ActivateNotification asserts

Open snowrunner55 opened this issue 1 year ago • 1 comments

Hi,

First a big thank to contributers of CanOpenSTM32. It's a super library.

I use the library with a STM32G4xx, which has FDCAN.

I activated USE_FULL_ASSERT and see that in the HAL file stm32g4xx_hal_fdcan my program asserts.

` HAL_StatusTypeDef HAL_FDCAN_ActivateNotification(FDCAN_HandleTypeDef *hfdcan, uint32_t ActiveITs, uint32_t BufferIndexes) { HAL_FDCAN_StateTypeDef state = hfdcan->State; uint32_t ITs_lines_selection;

/* Check function parameters */ assert_param(IS_FDCAN_IT(ActiveITs)); if ((ActiveITs & (FDCAN_IT_TX_COMPLETE | FDCAN_IT_TX_ABORT_COMPLETE)) != 0U) { assert_param(IS_FDCAN_TX_LOCATION_LIST(BufferIndexes)); // <<<< here it asserts } ` The BufferIndexes must have a different value.

snowrunner55 avatar Jun 30 '23 15:06 snowrunner55