ATmega328p with internal RC oscillator?
Posted: Sun Dec 10, 2017 4:40 pm
Hi
I'm working on using micronucleus with the ATmega328p. It works fine with an external 16MHz crystal, but when I try using the internal RC oscillator, then the host doesn't recognize the USB device. In the syslog (on Ubuntu Linux 16.04) I get:
Has anyone used V-USB on the ATmega328p with the internal RC oscillator? What configuration did you use?
P.S. Feel free to join our discussion on the micronucleus pages: https://github.com/micronucleus/micronucleus/issues/107
I'm working on using micronucleus with the ATmega328p. It works fine with an external 16MHz crystal, but when I try using the internal RC oscillator, then the host doesn't recognize the USB device. In the syslog (on Ubuntu Linux 16.04) I get:
Dec 10 15:33:09 cypresse kernel: [17708.254022] usb 1-7: new low-speed USB device number 87 using xhci_hcd
Dec 10 15:33:09 cypresse kernel: [17708.462266] usb 1-7: device descriptor read/64, error -71
Dec 10 15:33:10 cypresse kernel: [17708.749926] usb 1-7: device descriptor read/64, error -71
Dec 10 15:33:10 cypresse kernel: [17709.037867] usb 1-7: new low-speed USB device number 88 using xhci_hcd
Dec 10 15:33:10 cypresse kernel: [17709.245908] usb 1-7: device descriptor read/64, error -71
Dec 10 15:33:11 cypresse kernel: [17709.534086] usb 1-7: device descriptor read/64, error -71
Dec 10 15:33:11 cypresse kernel: [17709.825904] usb 1-7: new low-speed USB device number 89 using xhci_hcd
Dec 10 15:33:11 cypresse kernel: [17709.853330] usb 1-7: Device not responding to setup address.
Dec 10 15:33:11 cypresse kernel: [17710.086536] usb 1-7: Device not responding to setup address.
Dec 10 15:33:11 cypresse kernel: [17710.293854] usb 1-7: device not accepting address 89, error -71
Dec 10 15:33:11 cypresse kernel: [17710.474133] usb 1-7: new low-speed USB device number 90 using xhci_hcd
Dec 10 15:33:11 cypresse kernel: [17710.502095] usb 1-7: Device not responding to setup address.
Dec 10 15:33:12 cypresse kernel: [17710.737315] usb 1-7: Device not responding to setup address.
Dec 10 15:33:12 cypresse kernel: [17710.942111] usb 1-7: device not accepting address 90, error -71
Dec 10 15:33:12 cypresse kernel: [17710.942149] usb usb1-port7: unable to enumerate USB device
Has anyone used V-USB on the ATmega328p with the internal RC oscillator? What configuration did you use?
P.S. Feel free to join our discussion on the micronucleus pages: https://github.com/micronucleus/micronucleus/issues/107