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

HWCDC Serial and USBCDC Serial conflict #1

Open
Sheepshell opened this issue Dec 6, 2023 · 3 comments
Open

HWCDC Serial and USBCDC Serial conflict #1

Sheepshell opened this issue Dec 6, 2023 · 3 comments

Comments

@Sheepshell
Copy link

2edd13c17ef6e9b3d56b6b918c31c8f As shown above, would you mind tell me what exactly i need to do to run your code?
@drogne
Copy link

drogne commented Dec 28, 2023

I commented that line out, and it does compile. After downloading a memory card appeared but was said unformatted for some reason. I popped it out checked it, it was FAT32 with data on it. Then I reconnected to ESP32 and now it showing hardware unrecognized, and was wondering how to debug this problem. This HWCDC serial might be the way one needs to debug this code, I am not sure.

@Sheepshell
Copy link
Author

Thanks for the hint, I work that out.

@cgreening
Copy link
Contributor

Sorry for not picking this up earlier.

You'll need to update the platformio.ini:

  ; make sure serial output works
  ; -DARDUINO_USB_MODE
  ; -DARDUINO_USB_CDC_ON_BOOT
  ; prevent hardware serial being used - we'll use USB serial
  -DNO_GLOBAL_SERIAL

The -DNO_GLOBAL_SERIAL prevents the conflict.

Debugging is really tricky!

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

3 participants