Arduino STM32 USB initialization Stall Problem Ask Question
Posted: Mon Mar 29, 2021 4:43 pm
0
I am developing on Nucelo-64 L476RG board, Serial and USB used to work before with stm32duino, now, perhaps I am doing something wrong, The below code stalls at USB_CoreInit() which is before the setup()
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
SerialUSB.begin(115200); // also stalls if this line is commented out
}
void loop() {
// put your main code here, to run repeatedly:
Serial.print(4);
delay(1000);
}
The flags enabled are as
Usart support : Enabled (generic Serial)
USB Support: CDC Generics (also tried with no Generics)
USB Speed : Low/Full speed
Optimize: Debug (-g)
I am developing on Nucelo-64 L476RG board, Serial and USB used to work before with stm32duino, now, perhaps I am doing something wrong, The below code stalls at USB_CoreInit() which is before the setup()
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
SerialUSB.begin(115200); // also stalls if this line is commented out
}
void loop() {
// put your main code here, to run repeatedly:
Serial.print(4);
delay(1000);
}
The flags enabled are as
Usart support : Enabled (generic Serial)
USB Support: CDC Generics (also tried with no Generics)
USB Speed : Low/Full speed
Optimize: Debug (-g)