I'm trying to run a very basic CAN protocol project with STM32f103 in proteus using STM32CubeIde. i know proteus doesn't fully support can bus and also i need to use a can transceiver but this is a very basic project just to send and receive data between 2 stm32. the problem i'm having, the stm32 stop working. i use a blink led as an indicator, when i remove the CAN interface, the led is blinking, but when i add the CAN interface, nothing happen.
i used UART for debugging, and i can see that the program stuck (doesn't return anything) in the can init function HAL_CAN_Init(&hcan) and precisely in SET_BIT(hcan->Instance->MCR, 0x1UL); in the stm32f1xx_hal_can.c file, i tried to remove that line but it's stuck again in while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U), not inside the while but in (hcan->Instance->MSR & CAN_MSR_INAK), so i'm not sure if i'm missing something in the configuration or it's from the proteus. by the way, i just did the configuration and no interruption was involved and i just tried to run the generated program.
