USB CDC and CAN not running together on STM32F103 (imported from CubeMX)
Hello guys.
I have a problem running a project that uses CDC (virtual port com) and CAN. Project is generated in CubeMX(latest version) and imported. The only function that I introduced in the program, is a blinking led.
If I compile CDC + blinking led ---> program runs OK. Windows7 detects VID/PID OK
If I compile CAN + blinking led ---> program runs OK
If I compile CAN + CDC + blinking led ---> program NOK.Led does not blink. Windows does not detect correctly VID, PID (everything is 0x0000)
I try to debug the program, and from what I understood, after ” USBD_Start(&hUsbDeviceFS); “, it goes to “void HardFault_Handler(void)” and enters into a continuous loop.
What could generate this problem?
Thanks