This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

putting a function in a specific address in ROM

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

Parents
  • "this is the only reason to use it from the first place"

    No, in general it's not the only reason - the other reason is that it's non-volatile!

    In general, for test/debug purposes, you would remove the ROM and replace it with RAM or a "ROM Emulator" or somesuch.

    "do you know how can i place the fixed function in a specific location (0xa000)?"

    What have you tried so far?
    In what way(s) did that "not work"?

Reply
  • "this is the only reason to use it from the first place"

    No, in general it's not the only reason - the other reason is that it's non-volatile!

    In general, for test/debug purposes, you would remove the ROM and replace it with RAM or a "ROM Emulator" or somesuch.

    "do you know how can i place the fixed function in a specific location (0xa000)?"

    What have you tried so far?
    In what way(s) did that "not work"?

Children
No data