How do I put a program in memory that is not at address 0x00
Posted: Sat Jan 28, 2023 1:56 am
I want to write my own little bootloader and place it on top of the PIC18 memory, placing only the jump command to the beginning of the bootloader at address zero.
Placing the #ORG directive 0x3000 moves the program in memory to the right address, but at address 0x0000 there is a big chunk with the delay and COM port service routines.
How do I move everything to the end of memory?
Ttelmah
Joined: 11 Mar 2010 Posts: 19513
Posted: Sat Jan 28, 2023 2:43 am
First look at the booloader examples. These show exactly how to move
things.
Keys are two things. #BUILD, and how to add the code to relocate
the ISR with jump_to_isr.
Eddy71ua
Joined: 23 Sep 2009 Posts: 55 Location: Ukraine
Posted: Sat Jan 28, 2023 5:30 am
Thanks for the tip. Never heard of this directive before. I'm going to read and understand.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum