Discussion in "Project Help" started by    Utsavi    Jul 5, 2017.
Wed Jul 05 2017, 04:42 pm
#1
Hello

I am using Tasking EDE and working on XAG-49.

How can I place a code at absolute address.

In FC51 just by changing batch file I am able to place code on absolute address. But in Tasking How can I do that?

Where can I find my linker file location?

I go through Linker/Locator->Change CODE option but that show me an error.

I also change RESET_VECTOR in XA.dsc file but that fails to place code at absolute address(seen from .hex file).

Regards
Utsavi Bharuchwala
Thu Jul 06 2017, 01:23 am
#2
If this can be done, it will be specialised for the linker you are using.
I certainly don't know how
In 'c' it is very unusual to put code at a fixed location.
Why do you need to do it ?
Thu Jul 06 2017, 09:50 am
#3
Hi Experimental UK,

In my case I have made a custom bootloader for XAG-49. And I want to place my bootloader in Block 0 (0H-2000H).

My main program is large having size of 0xD147. And If I can shift it to block 1 then, I can erase all blocks except block1.

Regards,
Utsavi Bharuchwala


[ Edited Thu Jul 06 2017, 09:52 am ]
Fri Jul 07 2017, 02:38 am
#4
Most IDEs (Integrated Development Environment) call the linker using a
command line string.
Does your IDE have a Linker settings tab, that allows you to add items to the string ?

Most IDEs echo the build strings in the compilation message window.

If you can see that string, you may be able to call the linker separately
using your own string with the Location command added.
Mon Jul 17 2017, 12:02 pm
#5
Tasking EDE has linker script facility available you need to link your code to start location where you wanted the code start area for application.
If you do not want to write a linker script then inside project Linker/Locator option you can specify ROM address in "Memory" tab. You can specify the start address where you want to load application code.
Mon Jul 17 2017, 03:27 pm
#6
Hello Ajay_Bhargav,

Thanks for your reply. Yes, you are right. By writing HCODE and CODE sections address in Linker/Locator->Code, I am able to relocate program at my desire address.

The name of address I got from .map file and the syntax I got from .i file and from documents I have.

Regards
Utsavi Bharuchwala

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

ManuelInvof
Mon Jan 30 2023, 03:59 am
JosephMuh
Mon Jan 30 2023, 03:22 am
Ocuprimetal
Sun Jan 29 2023, 01:29 pm
YmondPex
Sun Jan 29 2023, 02:06 am
MpestoPex
Sun Jan 29 2023, 01:57 am
PencPex
Sun Jan 29 2023, 01:35 am
volkovch
Fri Jan 27 2023, 05:50 am
Michailadz
Fri Jan 27 2023, 01:39 am