Hi,
I'm using the keil to compile a project for the 8051.
I want to place a single function in a specific address in the rom.
I found a lot of answers, in the forum, but non of them actually worked.
How can i "tell" the keil that the specific function MUST be at address 0x1234, for example? if it helps, the function is written in a seperate file. Thanks, Noam
"it's a bit difficult to explain, but in a nutshell there is a register that holds an address in the ROM. this address is the first address of the bugged function."
Is this a custom design in ASIC or FPGA or something?
yes, and the link above proved to work fine!
Noam, Per mentioned a very good point. If you recompile, you (possibly) lose all reference. But maybe you can prevent that by filling in the gaps: The C167 processor a special linker directive (I think it is called "RESERVE" by the Tasking linker) that reserves pieces of memory. If you can somehow use that thing, maybe your memory map will not change. But this has, of course, serious limitations.
The C51 linker also has a RESERVE directive that you can use to block address ranges from being used.