Search the Community
Showing results for tags 'bootloader'.
Found 2 results
Hi, I have some basic questions about bootloader, 1. I have seen the example bootloader code on the sourcboost site. I noticed only global variables were used, function never take any parameters. Any reason for that? 2. If boot loader uses some ram memory, will the application program overwrite some or all of that ram memory or is the Ram memory unique to bootloader and application program?. 3. If I did not specify -rb command, by default at what location will my code reside? 4. Also I need a common memory space (prefer RAM) which can be accessed by both application and bootloader program. How can I do that. I need this so bootloader can read the application firmware version , vice versa. Thank you John
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