Recent

Author Topic: Cross Compiling to Windows CE - ARM  (Read 6014 times)

Anderson Tomkelski

  • New Member
  • *
  • Posts: 11
Cross Compiling to Windows CE - ARM
« on: September 24, 2015, 03:01:55 pm »
Hi

I need cross compiling to ARMV5, but if I set target processor like ARMV5 doesn't work. What can I do? Should I install something to ARMV5?

Thank you guys.

vincococka

  • Full Member
  • ***
  • Posts: 101
Re: Cross Compiling to Windows CE - ARM
« Reply #1 on: September 24, 2015, 03:16:33 pm »
Hi Thomas,

1, if not already installed, please install cross compiler for ARM (e.g. for Windows its file available on SourceForge: lazarus-1.4.2-fpc-2.6.4-cross-arm-wince-win32.exe).
2, send here output from "Messages" window.
---
  Guide me God and I`ll find you

Anderson Tomkelski

  • New Member
  • *
  • Posts: 11
Re: Cross Compiling to Windows CE - ARM
« Reply #2 on: September 24, 2015, 03:28:01 pm »
Thank you Vinco. The cross compiler for ARM is installed
The error is:

project1.lpr(22,0) Error: Error while assembling exitcode 1

The project is a button. Only test of cross compiling

vincococka

  • Full Member
  • ***
  • Posts: 101
Re: Cross Compiling to Windows CE - ARM
« Reply #3 on: September 24, 2015, 04:09:15 pm »
Please set "Processor target" to "default" in Project Options (not "armv5").

Try to build and run, and if it works enjoy and have fun :).
---
  Guide me God and I`ll find you

Anderson Tomkelski

  • New Member
  • *
  • Posts: 11
Re: Cross Compiling to Windows CE - ARM
« Reply #4 on: September 24, 2015, 04:18:15 pm »
It's work but, don't run into device :/

Any target processor work, if I don't set, compiling but doesn't run into device

vincococka

  • Full Member
  • ***
  • Posts: 101
Re: Cross Compiling to Windows CE - ARM
« Reply #5 on: September 24, 2015, 04:21:51 pm »
What device do you have ?
---
  Guide me God and I`ll find you

Laksen

  • Hero Member
  • *****
  • Posts: 616
    • J-Software
Re: Cross Compiling to Windows CE - ARM
« Reply #6 on: September 24, 2015, 04:25:49 pm »
How does it not work? Does it crash or does nothing happen. If the last then make sure that the form Left and Top are set to zero

Anderson Tomkelski

  • New Member
  • *
  • Posts: 11
Re: Cross Compiling to Windows CE - ARM
« Reply #7 on: September 24, 2015, 04:27:31 pm »
I have a colibri vf61 - sorry I said ARMv5 but is ARM Cortex-M4 and ARM Cortex-A5.

This - https://www.toradex.com/computer-on-modules/colibri-arm-family/freescale-vybrid-vf6xx

Anderson Tomkelski

  • New Member
  • *
  • Posts: 11
Re: Cross Compiling to Windows CE - ARM
« Reply #8 on: September 24, 2015, 04:29:39 pm »
It Nothing happen. How I can see this (Left and Top are set to zero)? Lasken

vincococka

  • Full Member
  • ***
  • Posts: 101
Re: Cross Compiling to Windows CE - ARM
« Reply #9 on: September 24, 2015, 04:35:31 pm »
See "Object Inspector" when you click on form, then you`ll see Left and Top properties ... set`em to 0.
---
  Guide me God and I`ll find you

Anderson Tomkelski

  • New Member
  • *
  • Posts: 11
Re: Cross Compiling to Windows CE - ARM
« Reply #10 on: September 24, 2015, 04:38:08 pm »
I set 0 but don't work, in task bar nothing appears.

Laksen

  • Hero Member
  • *****
  • Posts: 616
    • J-Software
Re: Cross Compiling to Windows CE - ARM
« Reply #11 on: September 24, 2015, 05:16:22 pm »
Cortex A5 is an ARMv7A. Windows CE only supports ARMv4I (ARMv4T) and ARMv7I (ARMv7A) as far as I understand.

Try adding
-Cparmv4t
in Project Options->Other->Custom Options for your project

Anderson Tomkelski

  • New Member
  • *
  • Posts: 11
Re: Cross Compiling to Windows CE - ARM
« Reply #12 on: September 25, 2015, 01:23:28 pm »
It's return:

Illegal parameter: -CpARMV7A

Thanks, for "Cortex A5 is an ARMv7A. Windows CE only supports ARMv4I (ARMv4T) and ARMv7I (ARMv7A)" this about ARM, I did not know. I would suffer very kkkk

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7359
Re: Cross Compiling to Windows CE - ARM
« Reply #13 on: September 25, 2015, 01:54:00 pm »
It's return:

Illegal parameter: -CpARMV7A

Thanks, for "Cortex A5 is an ARMv7A. Windows CE only supports ARMv4I (ARMv4T) and ARMv7I (ARMv7A)" this about ARM, I did not know. I would suffer very kkkk

2.6.4 does not have armv6+7 support.

Anderson Tomkelski

  • New Member
  • *
  • Posts: 11
Re: Cross Compiling to Windows CE - ARM
« Reply #14 on: September 25, 2015, 02:46:52 pm »
Ahhh

Is there any version? Where I can compile this