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

Correct use of position independent code

Hello there,

I'm currently working on a Cortex-M0 project, where I'd like to generate position independent code for a bootloader that may load images from several locations.

I'm new to the concept of having to explicitly generate independent code, from what I understand I can not use scatter files with PIC and would need to modify my startup.s file.

Would anyone be willing to explain the process and/or provide a simple example project that employs PIC?

Many thanks

0