If the application firmware project needs to be programmable by this bootloader firmware, there are two linker setting changes that are required to the application project:
1) Under the build configuration > XC8 global options > XC8 linker > Option categories: Additional options, the “Codeoffset” must be set to 0x1000
2) Under the build configuration > XC8 global options > XC8 linker > Option categories: Memory Model, the “ROM Ranges” must be set to: default, -0-FFF, -1006-1007,-1016-1017
NOTE: Once the above changes are made to the application project, the output .hex file will no longer work when programmed stand alone, but it will be programmable by the HID bootloader firmware. This can make further application development less convenient, until the bootloader and application project output is “merged” using the procedures described in the Merging Bootloader and Application Project Output section. |
MLA - USB Library Help Version : 2.16
![]() |