This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[C2000 linker] Can we achevie such kind of idea to relocate the address by offset

Hi Champs ,

Our customer get the specification for  in system programming which is need like the bellowing structure.

There will be two section for updating the new firmware.

Our question is the image should be able to work at section A and section B at the same time.

However, the location address will be defined when we build the image.

Is it possible to achieve that ? such like using the general register to be an offset  and force the branch using indirect address 

which we can control it by offset value to make it for section A and section B at the same time. 

Thanks

BR

Brian

  • You are talking about a concept called position independent code.  You can learn more about it by performing a search on that term.  Unfortunately, the C2000 compiler tools have no features that support position independent code.

    Thanks and regards,

    -George