Menu

Bootloader for 16F1825

Requests
Moi
2022-11-21
2022-12-06
  • Moi

    Moi - 2022-11-21

    Hi

    After speaking with you on another topic i likle if you can share a bootloader for this pic 16F1825

    If this is configurable i like to use default RX TX pin RC5 RC4.

    Thanks a lot

     
  • Anobium

    Anobium - 2022-11-21

    Please try this.

    Evan

     
  • Anobium

    Anobium - 2022-11-21

    A report for you.

     
  • Moi

    Moi - 2022-11-22

    Thanks a lot, i will try it soon (need some days before getting the pic from seller)

    Is there something to configure in mplab x ide for compiling my project in the way needed for use bootloader ?

    Br

     
  • Moi

    Moi - 2022-11-22

    like Rom ranges : 04-1f80

     
  • Moi

    Moi - 2022-11-22

    Trying this settings i get :

    ::: warning: (1394) attempting to create memory range (4 - 1f80) larger than page size 800

    edit : Rom ranges : 1f80-1FFF seem to do the job

    But what about bytes 0 to 3 ? they can be overwritten without issue ?

     

    Last edit: Moi 2022-11-22
    • Anobium

      Anobium - 2022-11-22

      I am not able to test, and, I use Great Cow BASIC and this is not required to be configured. But, I think....

      To set up in MPLAB X.

      1. Open the "properties" window
      2. Select "XC8 linker"
      3. Option categories: Select "Memory Model".
      4. Now on the "Memory Ranges" line, put "4-1eff"

      The intent of the range of protects the bootloader vector at 0x0000-0x0003 and the top 0x100 words. If I havd the top range incorrect then please adjust.

       
  • Moi

    Moi - 2022-11-23

    for now i have set :
    defaults,1F80-1FFF

    trying other value cause error.

    If you bootloader take care to write provided file at the good adress (0x4) i think the good settings can be : defaults,1F7B -1FFF

    edit : i havec badly read you suggest to protect x100 so it will be "defaults,1EFF -1FFF" that allow to already add enough some space for the first 4 bytes

     
    • Anobium

      Anobium - 2022-11-23

      Ok, hopefully works on a real chip.

       
  • Moi

    Moi - 2022-12-06

    Hello

    It seem to work fine, many thanks !!

    Can i ask a version with CPD_ON & CP_ON also _PLLEN_ON

    Really cool to use a working bootloader another thanks

     
  • Anobium

    Anobium - 2022-12-06

    I would simply load into IPE, edit the config to suit, and, save. This is the easiest method.

     
  • Moi

    Moi - 2022-12-06

    but it seem my programers gq-4x usb does not set the bit correctly and trying to save the modified config the saved file will be broken (garbage like only a line FFFFFFFFFFF

     
    • Anobium

      Anobium - 2022-12-06

      Upload the orginal and modified hex. Let me have a look

       
  • Moi

    Moi - 2022-12-06

    ok i have see the tool "mplab ipe" i will try that, thanks a gain

     
  • Moi

    Moi - 2022-12-06

    file is not like yesterady it seem ok opened it again.

    But i do not understand why is really big your boot code stop here 103FF000 and the dump continu until 10DFF000

    I all way the config page from gq-4x does not report the same value as your report like PLL and LVP

     
  • Anobium

    Anobium - 2022-12-06

    I not sure how you edited but the original file loads as expected but you adapted files is broken.

    Load your adapted file into IPE (fails) then load the originbal file (works ok)

    Loading code from C:\Users\admin\Downloads\mods read off tmbl16f1nnnnfamily15_v106.hex...
    Warning: C:\Users\admin\Downloads\mods read off tmbl16f1nnnnfamily15_v106.hex contains code that is located at addresses that do not exist on the PIC16F1825.
    Code incompletely loaded starting at 0x2000 (0x400).
    2022-12-06 15:00:30 +0000 - Hex file(s) loaded successfully.
    Loading code from C:\Users\admin\Downloads\TMBL16F1nnnnFamily15_V106.HEX...
    2022-12-06 15:01:03 +0000 - Hex file(s) loaded successfully.
    
     
  • Anobium

    Anobium - 2022-12-06

    He is the original adapted with PPL, CPD and CP set. All edited in IPE and the exported.

     
  • Moi

    Moi - 2022-12-06

    thanks a lot, file edited with gq-4x mcumall interface

    i haven't found how to do that with Mplab IPE

     

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.