Menu

Bootloader for PIC16F18855

2016-08-22
2017-02-19
<< < 1 2 (Page 2 of 2)
  • Anobium

    Anobium - 2016-08-29

    This compiles without error - BORV is now correct. I will test.

     
  • Mark Osborne

    Mark Osborne - 2016-08-29

    Hello, I'll try this on my system tomorrow, when I return.
    Thanks
    Mark

     
  • Anobium

    Anobium - 2016-08-30

    Tests completed - all good!

     
  • Mark Osborne

    Mark Osborne - 2016-08-30

    Hello I'm testing this on my system,
    bootloader seems to be working.

    What do I need to do to my APP code, I understand I need to to adjust the program store range. I'm using MPLAB X IDE.

    Check Device...
    Open COM4 serial port at 115200bd
    Found: 16F w/8Kw flash & 256B EEPROM (Blk32)
    Open HEX file: C:\Mark\Pic_bootloader\System_PIC.X.production.hex
    Hex file verified, OK
    WARNING: pclath not fully initialised before GOTO! ...
    WARNING: first 4 words of code could not be fixed
    Maybe you should use some directive in your compiler
    to enable the use of bootloaders
    Transferring flash...
    Transferring program memory...
    Transferring HEX successfull :-)
    Close COM4 serial port


    Mark

     
    • Anobium

      Anobium - 2016-08-30

      @Mark. For Great Cow BASIC no changes to the code are required.

       
  • Mark Osborne

    Mark Osborne - 2016-09-08

    Hello,
    The bootloader is working
    I'm getting these warnings

    WARNING: pclath not fully initialised before GOTO! ...
    WARNING: first 4 words of code could not be fixed
    Maybe you should use some directive in your compiler
    to enable the use of bootloaders

    What do these warnings mean?
    And if any what directives do I need to remove these warnings?

    Mark

     
  • Dan

    Dan - 2016-09-08

    Hi,Mark

    It does not affect the operation of either of the warning.

    reference
    https://sourceforge.net/p/tinypicbootload/discussion/help/thread/a9a6d71f/

     
    • Anobium

      Anobium - 2016-09-08

      The latest Great Cow BASIC compiler now has a new compiler command to support TBL+.

      If you add #OPTION TBL to the user program the messages 'WARNING: pclath not fully initialised before GOTO! ... and WARNING: first 4 words of code could not be fixed' are not issued as the goto meets the required specification.

       
  • Mark Osborne

    Mark Osborne - 2016-09-13

    Hi
    Do I need to add the following to my user program at the beginning ?

    ;Vectors
        ORG 0
        goto    BASPROGRAMSTART
        ORG 4
        retfie
    
    ;********************************************************************************
    
    ;Start of program memory page 0
        ORG 5
    BASPROGRAMSTART
    

    I'm writting my program in C, using XC8 compiler, so i.e.

    //;Vectors
    asm("ORG    0");
    asm("movlw  0");
    asm("movwf  PCLATH");
    asm("goto   BASPROGRAMSTART");
    asm("ORG    4");
    asm("retfie");
    
    //;********************************************************************************
    
    //;Start of program memory page 0
        asm("ORG    5");
        asm("BASPROGRAMSTART");
    

    Any info on this would be great

    Thank you
    Mark

     
  • Mohammed Shalash

    Hi Guyes
    Is this bootloader actualy working on the PIC16F18855?
    THANKS

     
  • Anobium

    Anobium - 2017-02-19

    Yes Pop over to Great Cow BASIC on Source forge and grab the latest hex and tool.

     
<< < 1 2 (Page 2 of 2)

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.