Did you try a "DEFINE LOADER_USED 1" ... to see in MPLAB prog window what it does ???
Alain
Did you try a "DEFINE LOADER_USED 1" ... to see in MPLAB prog window what it does ???
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
I ALWAYS use that define, because it is necessary if you use MCLoader. It appears to move the RESET vector up by 8 locations.
Below is a cut-and-paste from PBPP18.LIB
ifdef LOADER_USED
LIST
ORG RESET_ORG + 8 ; Make sure no library code in first 4 locs
NOLIST
endif
Charles Linquist
I might have found it - one of the first lines of PBPP18.lib is
If I change that line, it does relocate the code. Now I just have to test to see if it still runs.
ifndef RESET_ORG
RESET_ORG EQU 0
endif
Charles Linquist
Instead of changing the library file, you can ....
DEFINE RESET_ORG xxxx
In your bootloader program.
That way it doesn't mess things up for your other programs.
<br>
DT
Bookmarks