Someone pointed me at this page:
http://wiki.freepascal.org/TARGET_Embedded
And I started adding a device (and perhaps more after that), starting with a cortex-m3 though which is thumb/thumb2 only.
Following the instructions on the page work fine:
fpc -Parm -Tembedded -Wplpc2124 tled1.pp
Added my device as well as tried the two other cortex-m3 devices and
fpc -Parm -Tembedded -Wpdevice test.pp
I tried -Parm, -Pthumb, thumb2, cortex-m3 but it just keeps generating arm instructions. I can certainly target an arm processor first but would rather try a thumb/thumb2 first.
Thanks,
David
