Trying to port this bootloader to pic18f45k50 that uses internal high-precision self tuning oscillator.
I changed fuse settings as below:
- Code: Select all
CONFIG PLLSEL = PLL3X ; 3X PLL multiplier selected
CONFIG CFGPLLEN = OFF ; PLL turned on during execution
CONFIG CPUDIV = NOCLKDIV ; 1:1 mode (for 48MHz CPU)
CONFIG LS48MHZ = SYS48X8 ; Clock div / 8 in Low Speed USB mode
CONFIG FOSC = INTOSCIO ; HFINTOSC selected at powerup, no clock out
and added standard clock initialization procedure before bootloader starts (OSCTUNE, OSCCON, OSCCON2).
Bootloader starts, but PC writes that "USB device is not recognized".
Any idea what should be changed additionally to get it running?