Welcome, Guest
Username: Password: Remember me
CodeTyphon Cross-Build Development, discussions and problems
  • Page:
  • 1

TOPIC:

Program built by toolChain for raspbian not works 9 years 8 months ago #6922

  • Study Ding
  • Study Ding's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
I correctly setup and have everything compiled Codetyphon, Since I want to make program for Raspbian, I compile the cross compiler, the weird thing is that if I use the compiler using reapberryPi compiler(in the red box), the program will not run and I got "Segmentation Fault", while If I compile using the arm-linux-pi compile(in the green box), everything works just fine.

I checked the them in the toolChain folders(C:\codetyphon\binToolchains\win64-arm-linux and C:\codetyphon\binToolchains\win64-arm-raspberrypi), they exectuables are not the same,
but it should work.

Another thing I found is there is readme file in each folder, the readme file in the arm-linux-pi folder says this:

Files in this directory are part of CodeTyphon Studio Toolchains Library.Build with CodeTyphon Center and GNU Binutils version 2.23.1 for EABI=0


The readme file in the arm-linux-raspberryPi folder says this:

Files in this directory are part of CodeTyphon Studio Toolchains Library. Build with CodeTyphon Center and GNU Binutils version 2.24.0 for arm linux eabi hardfloat
1) Build xxx-armeb-linux--hardfloat
2) Rename everything with "armeb" to "arm"


Raspberry PI should support hardfloat, why does it not work?

Can anyone help?


Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by Study Ding.

Program built by toolChain for raspbian not works 9 years 8 months ago #6923

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
My suggestion Sir
is to use FPC32 and Typhon32 for simple arm-Linux-raspberryPi (32bit CPU)
Did you read this ?

Did you see then difference of
x_FPC_Build_Cross_armeb_linux_hardfloat (general arm-linux script) and
x_FPC_Build_Cross_arm_linux_RapberryPi scripts
are NOT the same, they build FPC elements with difference options:
at line 150: OPT="-CpARMV6" and OPT="-CaEABIHF -CpARMV6 -CfVFPV2 -OoFASTMATH"

it's arm world ...
PilotLogic Architect and Core Programmer
The following user(s) said Thank You: Study Ding

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Program built by toolChain for raspbian not works 9 years 8 months ago #6925

  • Study Ding
  • Study Ding's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
Thanks man!
Your suggestion is to use FPC32, Did you mean I have to use FPC32?

Actually, The program built by FPC64 works fine on Model A, but not on Model A+

and I tried to compile using FPC32, there is no difference.

Can you please shed some light on me?

By the way, can you please explain the options on line 150?

Please Log in or Create an account to join the conversation.

Last edit: by Study Ding.

Program built by toolChain for raspbian not works 9 years 8 months ago #6926

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
You can start from here Sir
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.
  • Page:
  • 1