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

Not micropython related: no ttyACM port when using Arduino framework #1

Open
stevewells20 opened this issue Mar 10, 2020 · 2 comments

Comments

@stevewells20
Copy link

This is not especially related to this repo, but I'm a bit at a loss and this repo has the most complete information I've seen for this specific dev board.

Using the micropython compile and upload works flawlessly, and Linux immediately recognizes the board and adds /dev/ttyACM0 port. However, when compiling with either the Arduino and CubeIDE frameworks, no port is added for the board, it is not listed in lsusb, and dmesg doesn't show any entry for it. Is there something special that micropython is doing to activate the serial port on the board so that it is observable to Linux?

@mcauser
Copy link
Owner

mcauser commented Mar 11, 2020

When you flash MicroPython to the board, it's creating a filesystem and mounting it as a USB storage device and enabling the VCP (Virtual COM Port) interface. See usb_mode() in boot.py

I am not familiar with the Arduino STM32 setup. Are there any other F407 boards which support setting USB modes (CDC/VCP) which you could pinch code from?

@stevewells20
Copy link
Author

Ah I see. Thanks for pointing out usb_mode(), sounds like that is a good starting place. I'll do some investigating when I have time, I'm sure there is some similar F407 USB code floating around. Haven't had too much experience with STM32 hardware before, so I didn't have a good starting place to work from. Thanks for the help!

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