-
Notifications
You must be signed in to change notification settings - Fork 94
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
PIC18F45K50 #25
Comments
Poking around a little more, the error reported by Windows is
And here are the event logs for the device. Device not started
Device configured (usb.inf)
Device not migrated
Device deleted
|
Thanks for those. The last missing bit was the BUFFER_ADDR, I left that undefined like the 46J50. That's enough to get the device working, but unfortunately now the CDC demo seems to be stalling. The USB device itself runs fine, but when I try to attach to it with RealTerm, it freezes up RealTerm for a really long time before eventually spitting out a single block of letters and then stopping. At no point does the OS report any problems with the device. Not sure what's up with that. Edit: Just found #23 which may be the issue I'm running into here. |
The stalling issue I experienced seems to be isolated to the CDC demo. The HID demos seem to be working without any issue. Also, I'm not sure if "stalling" is really the right term since that term has specific meaning within the USB spec, so just to be clear there, my use of the word "stall" was purely colloquial. |
I've been playing around with the PIC18F45K50 for a few days now trying to get it working. Using the official MLA source, I was able to get the config pragmas and USB init sequence working. I tested it by loading the HID Mouse and CDC projects, duplicating the PIC18_Starter_Kit_PIC18F46J50 project config and switching the device to 18F45K50. This was enough to get the computer to start enumerating it, but unfortunately, it fails as an "Unrecognized device". Unfortunately, I'm rather limited in my ability to debug exactly where it's failing, but looking at the datasheets, it should be very compatible with the 46J50. I did at least confirm that my hardware is functional by building the HID Mouse demo from the official MLA examples, and that runs perfectly on my board. It would be really nice to get this chip working, as it is a 5V device with a ton of I/O pins which can run directly off of VBUS and its internal oscillator, needing only a couple of decoupling capacitors, making it a really good device for simple USB-to-I/O bridge applications like the 16F145x chips, but with way more pins.
Here are the config and initialization to get it running on the internal oscillator: qwertymodo@45e8bee
The text was updated successfully, but these errors were encountered: