I would like to bootload a file that already has the RESET vector modified in the .hex file.
Where in the C# code does it change the RESET vector ?
Can an extra button be created to select to Change/Not Change that RESET vector.
Thanks
Hi,donvukovic
This is exsamples.
How to bypass activation of the bootloader.
To provide a jumper switch pin which is not used for communication.
Program modifications
<tinybld12F617_8MHz_int_9600.asm>
;0000000000000000000000000 RESET 00000000000000000000000000
org 0x0000 pagesel IntrareBootloader goto IntrareBootloader ;view with TabSize=4
;&&&&&&&&&&&&&&&&&&&&&&& START &&&&&&&&&&&&&&&&& ;---------------------- Bootloader ----------------------
org first_address
; nop ; nop ; nop ; nop
org first_address+4
IntrareBootloader:
;* add these lines to your source file **
btfss GPIO,0 ;check Jumper pin goto first_address
;**********
;init int clock & serial port
#ifdef Direct_TX bcf GPIO,TX #else bsf GPIO,TX #endif
First start,
Writing a program to remove the jumper pin.
Second and subsequent,
Program run time, You plug the jumper pin
Program rewriting, You remove the jumper pin.
Log in to post a comment.
I would like to bootload a file that already has the RESET vector modified in the .hex file.
Where in the C# code does it change the RESET vector ?
Can an extra button be created to select to Change/Not Change that RESET vector.
Thanks
Hi,donvukovic
This is exsamples.
How to bypass activation of the bootloader.
To provide a jumper switch pin which is not used for communication.
Program modifications
<tinybld12F617_8MHz_int_9600.asm>
;0000000000000000000000000 RESET 00000000000000000000000000
;&&&&&&&&&&&&&&&&&&&&&&& START &&&&&&&&&&&&&&&&&
;---------------------- Bootloader ----------------------
; nop
; nop
; nop
; nop
IntrareBootloader:
;* add these lines to your source file **
;**********
#ifdef Direct_TX
bcf GPIO,TX
#else
bsf GPIO,TX
#endif
First start,
Writing a program to remove the jumper pin.
Second and subsequent,
Program run time, You plug the jumper pin
Program rewriting, You remove the jumper pin.