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

Place function at certain address

Hi All

I use compliler for XC161 MCU and I can't find how is possible place one function at certain address (for example at 0xC10000)

Do you know which linker directive can I use for this?

Thank you

Parents
  • 1. Put the function in a separate source module containing just that function.

    2. Add a #pragma RENAMECLASS compiler directive to the file before the function.

    3. Use the SECTIONS linker directive to place the function to the address you want.

    Sauli

Reply
  • 1. Put the function in a separate source module containing just that function.

    2. Add a #pragma RENAMECLASS compiler directive to the file before the function.

    3. Use the SECTIONS linker directive to place the function to the address you want.

    Sauli

Children