Page 1 of 1

Re-position code start address not working

Posted: Wed Oct 07, 2020 3:36 pm
by David_Challenge
I am trying to re-position the code start address for some code to make way for a bootloader. This is on a program I have just migrated from Flowcode 4 to Flowcode 8 and it worked fine on Flowcode 4.

I have added the -rb directive to the Compiler Options as follows:
Config Page.png
Config Page.png (17.39 KiB) Viewed 1753 times
But when I load the .hex file into MPLAB X IPE v5.40 it is not positioned at 0x800 but at the start 0x000 as follows:
IPE.png
IPE.png (192.72 KiB) Viewed 1753 times
What am I missing?

I don't understand why the linker is called "DoNothing.exe" that seems a bit strange and my concern is that it is ignoring the directive.

David

Re: Re-position code start address not working

Posted: Wed Oct 07, 2020 8:03 pm
by kersing
DoNothing does what the name implies: nothing. Adding arguments won’t make it do anything else, it still does nothing.

You need to modify the compiler settings which in FC8 does both compilation and linking of the code.