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?
I think --apcs=interwork is not the problem. Are you using a "Lite" version? They don't do /ropi. See http://www.keil.com/demo/limits.asp
Ah yes, I hadn't seen that one.
Well, there's an easy fix for that ;)