Re: [fpc-pascal] Compile for WinCE 7, target ARM, CPU Cortex-A9
On Thu, Apr 4, 2019 at 1:13 PM LacaK wrote: > Answering my own question: > > When I build cross compiler using FpcUpDeluxe, where I set "Cross Build > Options Override" to "-Cparmv7A" (The Cortex -A9 cores implement the > ARMv7-A architecture) then I can sucessfully compile my application for > WinCE 7. > > Drawback is that I must now maintain 2 FPC installations/cross-compilers > (Win32-WinCE): one for targer WinCE 5,6 with CPUs ARMv5 and another for > WinCE 7 with ARMv7 CPU (It is not sufficient to setup build modes in > project ... also all units must be pre-compiled ... at least I do not > know how to bypass this limitation) > > -Laco. > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal I suspect your problem is related to this feature request: https://bugs.freepascal.org/view.php?id=30294 Note that you probably don't need two different cross compilers if your cpu-OS target is the same, only two different versions of the RTL (and perhaps packages) in a way that enables the compiler to pick the correct version. For avr-embedded I change the unit output folder name to avr-embedded-SUBARCH and add the subarch macro to fpc.cfg. For arm you may also need to handle different ABI versions (I don't cross compile for arm). ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Compile for WinCE 7, target ARM, CPU Cortex-A9
Hi, Is there needed something special to setup when I want compile for my Symbol MC9200 device, which has Windows Embedded Compact 7 and Dual core 1GHz OMAP 4 processor (ARM Cortex-A9). When I set up simplest project with only few lines of code and compile for OS="WinCE", CPU family="arm" and I run this application I get Access Violation on target device. I have tested with target CPU = (default), ARMv3, ARMv4 but other CPUs like ARMv5,... does not compile ("Error while assembling exitcode 1"). Is ARM Cortex-A9 supported in Free Pascal compiler and does "Access violation" can be caused by wrong cross compiler setup? What to do to get working solution? Answering my own question: When I build cross compiler using FpcUpDeluxe, where I set "Cross Build Options Override" to "-Cparmv7A" (The Cortex -A9 cores implement the ARMv7-A architecture) then I can sucessfully compile my application for WinCE 7. Drawback is that I must now maintain 2 FPC installations/cross-compilers (Win32-WinCE): one for targer WinCE 5,6 with CPUs ARMv5 and another for WinCE 7 with ARMv7 CPU (It is not sufficient to setup build modes in project ... also all units must be pre-compiled ... at least I do not know how to bypass this limitation) -Laco. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal