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

Hello,

We have an STM32F37xx MCU (and the ST eval board) and we would like to create Position Independent code (the -fpic switch).

Keil has a nice checkbox with "Read-Only Position Independent" etc. Problem is that the standard STM32F3xx setup sets "--apcs=interwork", which will conflict with PIC.

The error it gives is:

error: C3903U: Argument '/ropi' not permitted for option 'apcs'.

How do I remove the "--apcs=interwork" or how do I create PIC code?