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

Fubarino Mini USB Serial drops out after download #23

Open
lenhalio opened this issue Apr 3, 2019 · 23 comments
Open

Fubarino Mini USB Serial drops out after download #23

lenhalio opened this issue Apr 3, 2019 · 23 comments

Comments

@lenhalio
Copy link

lenhalio commented Apr 3, 2019

After downloading via the USB Serial port, the USB Serial port drops out and the application cannot re-establish the USB Serial connection (e.g. Serial(115200)) does not start and the USB serial link is not started even when "Serial" is selected in the IDE

@EmbeddedMan
Copy link
Contributor

Does the sketch you downloaded use the serial object?

@JacobChrist
Copy link

JacobChrist commented Apr 4, 2019 via email

@lenhalio
Copy link
Author

lenhalio commented Apr 4, 2019 via email

@lenhalio
Copy link
Author

lenhalio commented Apr 4, 2019 via email

@EmbeddedMan
Copy link
Contributor

OK, that's good to know. Something strange is definitely going on here. What version of chipKIT-core are you using? And can you tell me what version of Fubarino Mini you have?

@JacobChrist
Copy link

JacobChrist commented Apr 4, 2019 via email

@lenhalio
Copy link
Author

lenhalio commented Apr 4, 2019 via email

@EmbeddedMan
Copy link
Contributor

EmbeddedMan commented Apr 4, 2019 via email

@lenhalio
Copy link
Author

lenhalio commented Apr 4, 2019 via email

@EmbeddedMan
Copy link
Contributor

EmbeddedMan commented Apr 4, 2019 via email

@lenhalio
Copy link
Author

lenhalio commented Apr 4, 2019 via email

@lenhalio
Copy link
Author

lenhalio commented Apr 4, 2019 via email

@JacobChrist
Copy link

JacobChrist commented Apr 4, 2019 via email

@majenkotech
Copy link

Unfortunately I don't have a Fubarino Mini to hand at the moment (well, I do, but it's controlling the backlight in a monitor at the moment).

From UECIDE's perspective there are only two things that could affect it, and neither would be Mac specific:

  • The board.txt is configured wrong for USB, or
  • The Board_* files are out of date.

However both of those are taken direct from the chipKIT core files. The board.txt is the only "iffy" once, since that is generated using a script from data that is in the boards.txt file from the core. It's feasible that it's not generating it correctly for that board - I'll check.

@majenkotech
Copy link

Comparing the board.txt file for the Lenny with the Fub Mini looks identical in the places that matter, and differ in the places where they have to differ. It all looks fine.

You can try implementing the USB serial manually if you like to see if it's something that's not getting done by the core:

USBFS usbDevice;
USBManager USB(usbDevice, 0xa662, 0x0403);
CDCACM USBSerial;

void setup() {
    USB.addDevice(USBSerial);
    USB.begin();
}

void loop() {
    USBSerial.println(millis());
    delay(1000);
}

Set the USB profile to "Custom" in the Hardware -> Options -> USB menu, otherwise you could end up with multiple serial ports.

@lenhalio
Copy link
Author

lenhalio commented Apr 4, 2019 via email

@EmbeddedMan
Copy link
Contributor

Len/Matt any updates for this issue so far?

@lenhalio
Copy link
Author

lenhalio commented Apr 13, 2019 via email

@lenhalio
Copy link
Author

lenhalio commented Apr 13, 2019 via email

@ricklon
Copy link
Member

ricklon commented Apr 13, 2019 via email

@majenkotech
Copy link

I just dug my Mini out of the back of my monitor and tried it out. It worked fine first time in UECIDE:

[18341.869940] usb 2-1.4.6: new full-speed USB device number 13 using ehci-pci
[18341.999074] usb 2-1.4.6: New USB device found, idVendor=0403, idProduct=a662
[18341.999077] usb 2-1.4.6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[18341.999078] usb 2-1.4.6: Product: Fubarino Mini
[18341.999079] usb 2-1.4.6: Manufacturer: chipKIT
[18341.999080] usb 2-1.4.6: SerialNumber: CK14D04053FFFF
[18342.000499] cdc_acm 2-1.4.6:1.0: ttyACM0: USB ACM device

@lenhalio
Copy link
Author

lenhalio commented Apr 13, 2019 via email

@majenkotech
Copy link

majenkotech commented Apr 13, 2019

It could be I guess. Maybe everything is working fine, but the Mac isn't seeing the USB port for some reason. What does dmesg give you (or whatever the mac has nowadays...)

I do recall some CDC/ACM related issues in the past with OS X...

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

5 participants