PIC18F25Q10 Bootloader Issues
Currently, I am working on implementing the functionality of a bootloader on my PIC18F25Q10. I am running MP Lab X v5.25, XC V2.10, curiosity HPC PKoB and MCC v3.0. I have done some digging about online to find resources, and I assumed that the information in the bootloader generator User Guide (found here https://www.microchip.com/promo/8-bit-bootloader
) would be sufficient enough to get started with the pre generated microchip code but i have run into a few snags.
Issue 1) when attempting to combine the bootloader on my no configuration setting, with a simple blinky application, I get error (944) data conflict at address 300000h (my configuration bits) i set up an if defined to take out the config bits in device_config.c generated by mcc. I read that the two files will merge happily if the config bits match, which works, but wont be a good long term solution. I must be missing something here.
Issue 2) With the bootloader running on the target, I used a TTL-232 3v3 usb->serial converter to establish serial communication with the target device. The device shows properly in my devices at COM 5, so i set up the Unified Bootloader Host App to use com 5 at 9600 Baud. I am however confused about the Bootloader Offset address. for PIC18's it defaults to 0x300. my boot application is in memory locations 0x0-0x7FF (the boot sector of my device). What should this be set to? My first guess would be the remapped reset vector of my bootloader, which i put at 0x800 (the start of the user program memory).
Issue 3) More just inexperienced confusion on my part for this one, but what hex file should I be loading into the Unified bootloader application. I have tried the Bootloader w/ config, the offset blinky app (to 0x800) and the combined blinky app (boot loader in 0x0-0x7ff and app offset to 0x800). The results are as follows(all with the bootloader running on target):
Bootloader offset at 0x800: Failure Hint: Confirm Hex Offset, propably because the app is limited to 0x0-0x7ff.
Bootloader offset at 0x000: gets to the point where it resets the board, but then the device fails to respond. The device gets stuck polling the autobaud loop looking for a command.
Offset blinky app hex:
Bootloader offset at 0x800: Device fails to respond to the Checksum command
Bootloader offset at 0x000: Same as above
Combined blinky app hex:
Had same results as the offset app.
Hopefully i have provided the necessary information for my problems. Any help is appreciated!