Update: Scope shows 12mhz on CLKOUT..
Trying to get the bootloader to work on a PIC18F13K50.. Oscillator is 12 mhz and PLL 4x is OFF. (at this point) TX Port on the 13K50 is RB7 and RX is RB5. Code compiles and uploads fine. Program memory shows GOTO 0X1dc0 at 0000. Have a 10k pullup on reset and button to ground
So far..
Settings.inc:
processor 18F13K50
#define OSCF 12000000
#define BLINIT 2000
#define HELLOTRIES 2
#define BLTIME 2000
#define USE_UART1 1
#define BAUDRATE 57600
#define USE_BRG16 1
#define USE_TXENABLE 1
#define TXE_DELAY 10
#define TRISR_TXE TRISB
#define LATR_TXE LATB
#define TRISB_TXE TRISB7
#define LATB_TXE RB7
config XINST = OFF ;Disabled
config FOSC = HS ;XT oscillator
config PLLEN = OFF ;Enabled
config FCMEN = OFF ;Disabled
config IESO = OFF ;Disabled
config PWRTEN = OFF ;Disabled
config BOREN = OFF ;Brown Out Detect
config WDTEN = OFF
config WDTPS = 32768 ;1:32768
config MCLRE = ON ;MCLR Enabled, RG5 Disabled
config STVREN = ON ;Stack Overflow
user_code.inc:
movlw b'00000000' ;xxx disable
movwf ADCON0 ;xxx analog on tx/rx
Bus Pirate shows activity hits the RX pin from the ds30loaderconsole, so activity is hitting the processor with:
ds30loaderconsole -f=blink.HEX -d=PIC18F13K50 -k=com10 -r=57600 -l -p
but I get this:
Initiating write...
Creating port: com10
Opening port com10@57600
Searching for bl . . . . . . . . . (discarded null byte) (discarded null byt
. . . . . . . . response timed out
Found PIC24FJ256DA110
Firmware version timed out
Closing port
Tx 26 bytes / Rx 5 bytes / 13.7s
Write failed
1) Why does it say PCI24FJ256DA110? (Hey if I can upgrade a 13K50 to a 24FJ with this program I AM ALL IN)
2) I have tried 9600, 19200, 57600 all of which should be close to zero error based on USE_BRG16. At least at 12mhz.
3) Tried 48mhz 12+PLLEN and 12mhz-PLLEN
Any thoughts?
Trying to get the bootloader to work on a PIC18F13K50.. Oscillator is 12 mhz and PLL 4x is OFF. (at this point) TX Port on the 13K50 is RB7 and RX is RB5. Code compiles and uploads fine. Program memory shows GOTO 0X1dc0 at 0000. Have a 10k pullup on reset and button to ground
So far..
Settings.inc:
processor 18F13K50
#define OSCF 12000000
#define BLINIT 2000
#define HELLOTRIES 2
#define BLTIME 2000
#define USE_UART1 1
#define BAUDRATE 57600
#define USE_BRG16 1
#define USE_TXENABLE 1
#define TXE_DELAY 10
#define TRISR_TXE TRISB
#define LATR_TXE LATB
#define TRISB_TXE TRISB7
#define LATB_TXE RB7
config XINST = OFF ;Disabled
config FOSC = HS ;XT oscillator
config PLLEN = OFF ;Enabled
config FCMEN = OFF ;Disabled
config IESO = OFF ;Disabled
config PWRTEN = OFF ;Disabled
config BOREN = OFF ;Brown Out Detect
config WDTEN = OFF
config WDTPS = 32768 ;1:32768
config MCLRE = ON ;MCLR Enabled, RG5 Disabled
config STVREN = ON ;Stack Overflow
user_code.inc:
movlw b'00000000' ;xxx disable
movwf ADCON0 ;xxx analog on tx/rx
Bus Pirate shows activity hits the RX pin from the ds30loaderconsole, so activity is hitting the processor with:
ds30loaderconsole -f=blink.HEX -d=PIC18F13K50 -k=com10 -r=57600 -l -p
but I get this:
Initiating write...
Creating port: com10
Opening port com10@57600
Searching for bl . . . . . . . . . (discarded null byte) (discarded null byt
. . . . . . . . response timed out
Found PIC24FJ256DA110
Firmware version timed out
Closing port
Tx 26 bytes / Rx 5 bytes / 13.7s
Write failed
1) Why does it say PCI24FJ256DA110? (Hey if I can upgrade a 13K50 to a 24FJ with this program I AM ALL IN)
2) I have tried 9600, 19200, 57600 all of which should be close to zero error based on USE_BRG16. At least at 12mhz.
3) Tried 48mhz 12+PLLEN and 12mhz-PLLEN
Any thoughts?