Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set up starting absolute address of my C program

Status
Not open for further replies.

Jenda

Programmer
Feb 27, 2001
14
CZ
My target system is the board with processor Am186,

memory sytem:
SRAM with addresses 00000-7FFFF 256k x 16 bits
FLASH with addresses 80000 - FFFFF 256k x 16 bits.

! There is no operating system in this board. All the memory 00000 - FFFFF is free only for my application.


Problems:

1. I need burn(put) into FLASH boot program for example from address F0000 to address F8000 and how can I set up compiler (or what) to start this program on this address (F0000).

2. My boot program of course use some data (variables, fields and so on) and my question is how to set up compiler (or what) to writing and reading data only to/from SRAM and how much exactly can I set up the starting absolute address of any data.

Thank you for any answer Jenda
 
Here is nobody who can answer this "difficult" question.
So when nobody will answer today to 17:00 of Middle Europe time I murder myself. Jenda

P.S.: There's one mistake - the addresses are to FFFFFF (six F) not FFFFF (five F)
 
1.You need to find out where this am186 boots from when power up. The C compiler for this chip should suppose to locate your first instuction to that address and start from there.
2.you should be able to specify your variables's absolute
address at the beginning of the C program such as:
RTL0=0x0c;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top