I need to Link Functions at Specific address
I have 5 functions that i want to go into 0xFA00 ONWARDS
I am using uvision2 and 0xFAOO onwards is a part of flash that will not be erased
I can fix one function using...
?PR?_LOADER?LOADER(0FA00h) command in the (BL51 Locate) TAB
Do I have to specifically locate ever function this way or can i just specify the first function in a file.
All functions are in the same file..
if I change application code the bootloader will get re-Linked so the app code will know where to find the bootloader
If both the bootloader and the app is in C there is the risk that when they are linked together the "support functions" e.g. switch support will be linked in the app area and on the next release the bootloader will blow.
You need to do one of two: code the bootloader in assembler OR link the two iondependently.
Erik
thats exactly wot is to does, unable to use your options. if i link separately how do i load the bootloader and app code first time with JTAG.
the way i get round this is to specify start address of all loader functions...
0xFA00 Loader 0xFCA0 function A 0xFCB0 function B 0xFCC0 function C...etc
This is very messy
I have seen the following on Keil site would this work??
In the µVision IDE, go to Project -> 'Options for Target' -> 'BL51 Misc', and in the 'Misc controls' section, enter:
CODE (?pr?*?myfile (0x100))
where all functions are in myfile.obj