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

Position independent code Cortex-M3

Hello,

I want to generate a code that is address/position independant.

The objective is to download and execute the same code in both stm32 banks using Keil.

Could you please explain me step by step how to do ?

Thanks in advance
Radhwen

Parents
  • I understand where the vector table is located.

    But it's not enough to change the vector table.
    I can change the vector table in real time depending on the bank i want to execute the code,
    but the most important is how to do at project options so that the compiler does not take the address introduced on the linker in consideration.

Reply
  • I understand where the vector table is located.

    But it's not enough to change the vector table.
    I can change the vector table in real time depending on the bank i want to execute the code,
    but the most important is how to do at project options so that the compiler does not take the address introduced on the linker in consideration.

Children
No data