Of course it's a bootloader...why else do people have to fool with #ORG :-)
The program is self-contained except for write_program_eeprom().
That function (and the read, for some reason) insists on locating in low memory. Can I relocate that somehow, or am I stuck writing my own?
Could be worse, I suppose. And the compiler listing will help me write my own version ;-)
Barry
___________________________
This message was ported from CCS's old forum
Original Post ID: 13033
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Re: Relocate a built-in() ?
Posted: Mon Mar 24, 2003 7:51 pm
:=Of course it's a bootloader...why else do people have to fool with #ORG :-)
:=
:=The program is self-contained except for write_program_eeprom().
:=That function (and the read, for some reason) insists on locating in low memory. Can I relocate that somehow, or am I stuck writing my own?
:=
----------------------------------------------------------
CCS shows how to do this in their LOADER.C example file.
They use the "default" parameter with an #org statement.
This is briefly explained in the README file.
You can compile a test project, called EX_LOAD.PJT, and
examine the .LST file to verify that write_program_memory()
has been put in the high ROM area.
___________________________
This message was ported from CCS's old forum
Original Post ID: 13035
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