Victor
|
Useful keysPosted at:2014-01-27 15:07:29 Edited at:2015-01-05 18:20:20
|
vm-ware fusio 6 Serial number: VZ15K-DKD85-M85EP-W4P79-XAAU4
How to Relocate User Code
Edit the Linker script 18f452_c.lkr to protect the boot block, and rebuild the C18 startup objects c018.o and c018i.o. The Linker script 18f4620_c.lkr must be used for models that use a 2048 boot block. Also be certain you have not defined absolute code sections in the source code to start in the boot block. For instance: #pragma code InterruptVectorHigh = 0x08 must be changed to #pragma code InterruptVectorHigh = 0x208 or for models that use 2048 bytes boot block: #pragma code InterruptVectorHigh = 0x808 PIC Basic ProHad the following line: DEFINE RESET_ORG 200h or DEFINE RESET_ORG 800h to be continued
|