Discussion in "Project Help" started by    Utsavi    Jul 5, 2017.
Wed Jul 05 2017, 11:12 AM

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).

Utsavi Bharuchwala
Wed Jul 05 2017, 07:53 PM
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, 04:20 AM
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.

Utsavi Bharuchwala

[ Edited Thu Jul 06 2017, 04:22 AM ]
Thu Jul 06 2017, 09:08 PM
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, 06:32 AM
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, 09:57 AM
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.

Utsavi Bharuchwala

Get Social


Powered by e107 Forum System


Tue Sep 19 2017, 08:36 PM
In a missing pulse detector using a 555 timer connected as a monostable vibrator with a PNP transistor,how does the positve input pulse turn on the PNP transistor?
Sun Sep 03 2017, 10:29 AM
How do I connect an <NOKIA 1100 LCD > to an atmega328P ?
Sun Aug 20 2017, 06:23 AM
i am intending to interface sd card with STM32F4 and want to write a file in sd card using SPI protocol but using HAL only. Can anyone help me PLEASE!!!!
Sun Aug 20 2017, 06:22 AM
Fri Aug 18 2017, 07:37 AM
hi @ angel patel i will attach a file i hope it will be helpfull for you
Mon Aug 14 2017, 05:57 PM
@ angel patel... just log in and post your problem
Mon Aug 14 2017, 09:45 AM
angel patel
hey any one help to make the led scrolling display
Sat Jul 29 2017, 03:09 AM
I see the code for step motor h l 298 to rotate 45 degree, but all delay time, if I want to input sensor to h the pulses to stepmotor
Thu Jul 27 2017, 08:05 AM
okay fine
Wed Jul 26 2017, 03:51 PM
Please post questions in the forum, the chat box is for chat



Fri Sep 08 2017, 02:58 PM
Fri Sep 08 2017, 01:55 PM
Thu Sep 07 2017, 05:55 AM
Sat Sep 02 2017, 01:48 AM
Fri Sep 01 2017, 06:31 AM
Sat Aug 26 2017, 04:02 PM
Tue Aug 22 2017, 10:21 PM
Mon Aug 21 2017, 02:17 PM


Guests: 97, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 37888
Newest member: butt_butt
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Sep 11 2017, 12:07 AM
The hardware for connecting to a PC or a modem is...
Suseethra Avatar
Posted By Suseethra
Sat Sep 09 2017, 09:43 AM
Hi,we are doing the same project(LED scrolling dis...
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Aug 28 2017, 07:21 PM
First you have to decide which version of the 8051...
rawat742 Avatar
Posted By rawat742
Sat Aug 26 2017, 12:36 PM
Dear Sir, I want to purchase progra...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Aug 25 2017, 08:22 PM
Debuggers and programmers are different things.Whi...
rawat742 Avatar
Posted By rawat742
Thu Aug 24 2017, 04:30 PM
Dear Sir, if I am not purchase debugger then how ...
poojab51296 Avatar
Posted By poojab51296
Thu Aug 24 2017, 06:27 AM
I am using STM32 cube MX and Atollic truestudio so...
ajay_bhargav Avatar
Posted By ajay_bhargav
Wed Aug 23 2017, 01:30 PM
It will be easier to help if you can post the comp...
ajay_bhargav Avatar
Posted By ajay_bhargav
Wed Aug 23 2017, 01:24 PM
There is a company in china which makes 8051 micro...
ajay_bhargav Avatar
Posted By ajay_bhargav
Wed Aug 23 2017, 01:19 PM
Which library or driver are you using for SD card ...