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.
Open the "properties" window
Select "XC8 linker"
Option categories: Select "Memory Model".
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
Please try this.
Evan
A report for you.
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
like Rom ranges : 04-1f80
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
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.
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.
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
Ok, hopefully works on a real chip.
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
I would simply load into IPE, edit the config to suit, and, save. This is the easiest method.
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
Upload the orginal and modified hex. Let me have a look
ok i have see the tool "mplab ipe" i will try that, thanks a gain
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
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)
He is the original adapted with PPL, CPD and CP set. All edited in IPE and the exported.
thanks a lot, file edited with gq-4x mcumall interface
i haven't found how to do that with Mplab IPE