I'm using Cube IDE 1.5.1 and stm32f105rct6 MCU.I need to get data from CAN1 and CAN2 and send via USB VCP to terminal.But I get "Unknown Device". MX_GPIO_Init();
MX_CAN1_Init();
MX_CAN2_Init();
MX_USB_DEVICE_Init();When I commented CAN Init: ...
/**
* @brief Enable or disable the remapping of CAN alternate function CAN_RX and CAN_TX in devices with a single CAN interface.
* @note CASE 2: CAN_RX mapped to PB8, CAN_TX mapped to PB9 (not available on 36-pin package)
* @retval None
*/
...
My CAN1 is connected to PB8 and PB9. And USB_OTG_FS - to PA11 and PA12.I tried remap CAN1__HAL_RCC_AFIO_CLK_ENABLE();
__HAL_AFIO_REMAP_CAN1_2();No effect...