Open AntoineMugnier opened 2 years ago
fails when openning the com port.
What error do you get?
Also, can you try connecting with a pre-made terminal program, like PuTTY?
Also, please paste the full trace-level logs since program start.
I had to do some workaround in the nRF example to get the USB serial working on windows: https://github.com/embassy-rs/embassy/blob/master/examples/nrf/src/bin/usb_serial.rs#L43-L48 Does it also fix your issue?
What error do you get?
"Unable to open connection to com{x}" with putty
In Windows I also get the warning "This peripheral cannot start (Code 10) " in Devices Manager
I had to do some workaround in the nRF example to get the USB serial working on windows: https://github.com/embassy-rs/embassy/blob/master/examples/nrf/src/bin/usb_serial.rs#L43-L48 Does it also fix your issue?
It solved it, but for me a simpler workaround is to replace the lines you put:
config.device_class = 0xEF;
config.device_sub_class = 0x02;
config.device_protocol = 0x01;
config.composite_with_iads = true;
by
config.device_class = 0x02; // USB CDC
I cannot make the USB-serial.rs example works on my blue pill (with Windows). After the MCU has been flashed, I see the rtt logs appearing up to the following lines:
On my PC, I can see that the device is recognized as a VIRTUAL COM PORT, and I see its PID and VID. I wanted to use the serial-com crate for sending packets to the target and observing its answer, but I fails when openning the com port.
I have tried running the Arduino Hello example on my device, which prints continuously the "hello world" message. For this one I can connect to the port and see the messages.