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


Sun Feb 04 2018, 09:38 PM
Hi Dave. Good to see you.
Tue Jan 09 2018, 07:55 PM
It's been a few years since I poked around here - Hi all...
Mon Jan 08 2018, 07:19 PM
Hi TPS. it's been a while..
۞ TPS ۞
Sun Jan 07 2018, 06:42 PM
Thu Jan 04 2018, 01:50 PM
sayyad affrid
its AT89S52
Thu Jan 04 2018, 01:50 PM
sayyad affrid
sir, i want embedded c code for ultrasonic sensor having buzzer interfaced with AT9S52
Mon Dec 18 2017, 08:12 PM
i am making digital voltmeter using AT89C51, ADC and LCD 16x2,,, kindly someone please send me hex file in assembly language
Fri Dec 15 2017, 12:18 PM
can not find dhtxx.md file in proteus 8.0 can anybody help me please?
Fri Dec 08 2017, 12:47 PM
can i get gsm a6 library? can anybody help? tia
Sat Nov 25 2017, 08:32 AM
Can i get the code of Monitering and controlling of green house effect? ... Can anyone help me ?



Sat Feb 17 2018, 07:14 AM
Fri Feb 16 2018, 12:19 PM
Wed Feb 14 2018, 04:46 PM
Tue Feb 13 2018, 03:18 PM
Sun Feb 11 2018, 12:00 PM
Sat Feb 10 2018, 11:02 PM
Thu Feb 08 2018, 09:01 AM
Tue Feb 06 2018, 06:49 AM


Guests: 50, Members: 0 ...

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

Members: 37963
Newest member: justotemon
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed Feb 14 2018, 08:43 PM
>strange to don't define the way Write or Read..fo...
paulfjujo Avatar
Posted By paulfjujo
Wed Feb 14 2018, 02:25 PM
hello,Thank for your answer, but today i wrote thi...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Feb 13 2018, 09:43 PM
Glad you sorted it.I'm sure you will remember if f...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Feb 13 2018, 09:38 PM
>When i initialise UART_Init (9600); i get error=1...
Martinv Avatar
Posted By Martinv
Tue Feb 13 2018, 09:26 PM
Mmmm feel quite silly, but learned a lot. I must ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Feb 13 2018, 08:07 PM
Can you zip and attach your full code.Using a seco...
paulfjujo Avatar
Posted By paulfjujo
Tue Feb 13 2018, 12:28 PM
hello,i tried this litle code with MikroC for 8051...
Martinv Avatar
Posted By Martinv
Tue Feb 13 2018, 09:22 AM
Thanks for the reply. The part of the main loop t...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Feb 13 2018, 01:12 AM
Unless "READSMS" has some very long delays I doubt...
paulfjujo Avatar
Posted By paulfjujo
Sun Feb 11 2018, 06:52 PM
hello,The chip is probably locked.Why not build t...