• PicŪ Basic

  • How To... Warning! Code will overwrite bootloader routine

    When compiling with a device which can use the bootloader function (16F876,...) you get :

    Warning! Code will overwrite bootloader routine at top of program area.

    This is due to the fact that the compiler defaults to a bootloader required. It assumes that the bootloader uses the upper 256 words of the FLASH code space.

    At compile time, your code reached the limit of the PICŪ less the 256 words. The compiler issues a WARNING.

    If you're not using a bootloader, issue the statement: -


    and the compiler will not produce the warning and will free up a couple of bytes. See the DECLARES section in the help file.

    Thanks to Olivier for contributing this article.