PIC18F26K42 Bootloader XC8 --
I have a low bootloader (below ox800) and the related application at 0x800 using codeoffset.
I am using the mcc generated bootloader and modified to get it working.
Erasing the program at 0x800 to 0x810 and then resetting to trigger bootloading.
Using the unified PC app 1.8 to then send the update to the bootloader.
The serial bootloading completes and then the bootloader does reset.
The bootloader then detects the program was loaded since the region 0x800-0x810 is now programmed.
The interrupt was remapped successfully using
And then 0x808 in the target application is setup by using
This seems to be working ok as a LED toggle that uses the TMR0 interrupt is working.
I see the UART2_Transmit_ISR is being called from debugging but nothing is getting shifted out.
The target application works fine by itself and sends out the bytes to the serial hardware as expected.
I also verified that the the same SYSTEM_Initialize() used by the target was executed.
I used the bootloader config suggestion that results in the target application mcc config being used and see the build messages indicating it was used (and not the bootloader config).
At this point I don't know why the TMR0 and interrupts work but noting out of the serial shift register.
The target mcc config should take care of the PPS via the PIN_MANAGER_Initialize function.
I am out of ideas at this point.
Any suggestions on what it missing would be appreciated.
Found that PPS1WAY needed to be disabled... All working now.
post edited by cemerick - 2018/01/10 13:35:58