Brem said:This is what I do:
Take your BOOTZ.HEX, change the first lines to:
Code:0000 MOVLB 0 0002 CLRF 0xF0,BANKED 0004 GOTO 0x1fdc .. 0008 GOTO 0x1f9c .. 0018 GOTO 0x1f9c
Keep RB7 High and RA4 Low, you can have a led at RC1.
Now it should start the bootloader first time because it doesn't see a OS at 0x2800. MPLAB will download it and... still gives an error. However the OS is down loaded correctly. Next time it resets it will start the OS. MPLAB will give another error: "Unable to connect to ICD".
Added after 25 minutes:
The bootloader uses low priority TMR0 interrupt, the OS high priority.
Maybe it should be 0x0008 GOTO 0x2808
Added after 24 minutes:
Changed CPU speed to 48 Mhz, now the switchover from bootloader to OS works.
silvio said:Hi zedman,
If RA4 can't sink 500 uA through 10K pullup resistor, then it has not been declared as output (clearing TRiSA bit). Otherwise I can see why it couldn't sink.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?