-
Notifications
You must be signed in to change notification settings - Fork 117
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
USB serial not working #97
Comments
Need this for MicroFlo (a dataflow programming env I ported to radio), so I can live program it from host : ) |
I have tried to use CDC as well, with both the rad1o library code and NXP's library code for the NXP4330. In both cases I could not get it to work: The VCP device does not appear on my laptop and the code appears to wait forever on a call to vcom_connected(). Also in the testapp's cdc tester does not work at first use, it hangs as well. It does work when starting the testapp, selecting msc, stopping msc, and then starting cdc. So it looks like the msc code initialises something cdc needs as well.. |
@erikbos So when you run the msc code first, you see the serial device on laptop? |
Yes, the usb device appears on my Mac. "screen /dev/tty.usbmodem-" connects to it and the cdc option in the demo app echos everything that I type back to me. Characters typed are echoed with bracket as the code is supposed to do, so it is not the local terminal doing the echoing. |
FYI: as work around in my rad1o app code I added:
to toggle MSC mode on and immediately off, followed by calling |
The USB phy initialization wasn't called in CDCenable(). To make that function behave like MSCenable() (and make testapp/cdc.c work), add that initialization there. Fixes rad1o#97
Under https://github.com/rad1o/f1rmware/blob/master/doc/debugging.md it is mentioned that USB serial should be possible, and that the
testapp -> CDC
does something with this.I tried to
udevadm monitor
on computer (Linux 4.1) to observe for devices being connectedtestapp
, startCDC
. Poke joystick around.Expected:
Actual:
Tested both USB ports. Tested on two different devices. Running f1rmware from git. MSC mode works fine.
The text was updated successfully, but these errors were encountered: