Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USB doesnt work for STM32F3xx #52

Open
Hoel opened this issue Dec 16, 2017 · 1 comment
Open

USB doesnt work for STM32F3xx #52

Hoel opened this issue Dec 16, 2017 · 1 comment

Comments

@Hoel
Copy link

Hoel commented Dec 16, 2017

Hi, i made a target folder for STM32F303CCT6 based on the indications so using a USB VCP STM32CubeMx project, in variant.c i used the clock configuration from the STM32CubeMX project, i also added usbd_conf_F3.c in the core USB folder (taken from the working STM32CubeMX project).

When i test with blink example If i set USB : Serial (Virtual COM port) the board stalls at runtime, if i set USB : disabled, it blinks as it should, what could be the problem?
variant.c.zip
usbd_conf_F3.c.zip

@arpruss
Copy link

arpruss commented May 16, 2018

I got it working here: https://github.com/arpruss/STM32GENERIC
The trick was to drop in the usbd_conf_F3.c file and add this to the USBDevice.cpp:

//F3
extern "C" void USB_LP_CAN_RX0_IRQHandler(void) {
HAL_PCD_IRQHandler(&hpcd_USB_FS);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants