Menu

Prevent overwrite of USB bootloader

Help
2009-08-09
2013-05-30
  • Nobody/Anonymous

    I would like to prevent the overwriting of any pre-loaded bootloader code, vectors, etc. below 0x800 and have all GCBASIC code start at 0x800

    Preferably the command would be
    #option bootloader 0x800

    How do I stop the generation of code below 0x800 to protect my bootloader?
    Note: I'm using a UBW (USB Bit Wacker from SparkFun) and the USB bootloader is from Microchip.

    If no immediate solution, who do I contact to send modified basic code to update GCBASIC?

    I would like to have an easy BASIC programming of PIC's for middle schoolers without modifying assembly code before assembling and downloading (one button compile and loading).

    Thanks in advance.
    Richard Burton
    richard.burton@onsemi.com

     
    • Hugh Considine

      Hugh Considine - 2009-08-12

      Have added the command exactly as you requested. I haven't used bootloaders myself, and so haven't tested the command, but the generated hex files look fine. Please download the update (info at http://gcbasic.sourceforge.net/update.html\) and let me know if it works!

       
    • Hugh Considine

      Hugh Considine - 2009-08-12

      Seems the forums added the ) to the end of the link, it should read:

      http://gcbasic.sourceforge.net/update.html

       
  • Mauried

    Mauried - 2010-05-20

    Hi there.
    Which version of GCBASIC does this , ie adds the extra pagesel line like below.
    Vectors
    ORG 0
    pagesel BASPROGRAMSTART
    goto BASPROGRAMSTART
    ORG 4
    goto INTERRUPT

    Im using the latest version 0.9 20-04-10 with a 16F88 which supports Bootloaders and it wont insert the pagesel line in the ASM code.
    Is there some option to the Bootloader command thats needed.
    Looking thru the Gcbasic.bas file, I cant find any referance to adding pagesel line before the main jump.
    Most of the common Bootloaders seem to want the Pagesel line before the main Jump .

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.