Search the Community
Showing results for tags 'reset vector'.
Found 1 result
Hi, I have implemented a microchip AN1310 bootloader on PIC18F25K80.Its works on first program via the uart, but does not work again after my firmware has been loaded on the microcontroller. After checking the Pic's datasheet , the "application reset vector" is at location 0000h but then again the AN1310 bootloader has a "bootloader reset vector" at the same address 0000h . This means when i download my program code via the uart bootloader, it overwrites the "bootloader reset vector" at 0000h with the "application reset vector". Hence i cannot use the bootloader after the 1st program code download. 1. How do i define a new application reset vector or program start address in boost C? I have seen examples on the forum of including a linker option -rt <new address> but it does not work.If it does, can anyone pls explain where i can include this to the linker?Maybe I am including it wrongly. 2. Is there a way I can write protect the bootloader reset vector address at 0000h in code or via the Pic's CONFIG bits? Thanks