Skip to content

USB Serial is not working with STM32FreeRTOS in STM32 black pill #70

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

Closed
arunk98475 opened this issue May 12, 2024 · 1 comment
Closed
Labels
invalid This doesn't seem right

Comments

@arunk98475
Copy link

In my STM32 project i want to use both FreeRTOS and Serial communication . But after include FreeRTOS dependency , the serial connection is not working. I am working in PlatformIO
See the below is my test code

//#include <STM32FreeRTOS.h>
#include <Arduino.h>
void setup() {

  Serial.begin(9600);
  Serial.println("Serial Started...");
}
void loop() {
  Serial.println("Hello world..");
  delay(1000);
}

And PlatformIO configuration is below

[env:STM32]
platform = ststm32
board = blackpill_f411ce
framework = arduino
upload_protocol = dfu
monitor_speed = 115200
build_flags = 
    -D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
    -D USBCON
build_src_filter=+<*> -<.git/> -<.svn/> -<doc/>
lib_deps=https://github.com/stm32duino/STM32FreeRTOS.git

But I found that COM port is detecting in the windows but serial monitor is not able to connect to the COM port . If i comment out the line 'lib_deps=https://github.com/stm32duino/STM32FreeRTOS.git' then serial starts working

@arunk98475 arunk98475 added the bug Something isn't working label May 12, 2024
@fpistm fpistm added invalid This doesn't seem right and removed bug Something isn't working labels May 12, 2024
@fpistm
Copy link
Member

fpistm commented May 12, 2024

#58 (comment)

@fpistm fpistm closed this as completed May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants