Recent

Author Topic: "uses pfio,rpi_hal" crashes my app.  (Read 2812 times)

Tommi

  • Full Member
  • ***
  • Posts: 213
"uses pfio,rpi_hal" crashes my app.
« on: October 21, 2016, 02:58:01 pm »
I am developing for Raspberry.
If in my application I add "uses pfio,rpi_hal" the compiled program crashes also if I never use these units.

How is it possible ?

Thank you

Tommi

  • Full Member
  • ***
  • Posts: 213
Re: "uses pfio,rpi_hal" crashes my app.
« Reply #1 on: October 21, 2016, 04:00:41 pm »
I discovered that the same is with a lot of main units. If I add classes for example it is the same.

If I add sysutils or BaseUnix there is no problem

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: "uses pfio,rpi_hal" crashes my app.
« Reply #2 on: October 21, 2016, 05:05:56 pm »
Well, I just tried (with New Project -> Simple Program):
Code: Pascal  [Select][+][-]
  1. program project1;
  2.  
  3. uses Classes;
  4.  
  5. begin
  6.   writeln('Hello');
  7.   readln;
  8. end.

Target OS: Linux; Target CPU: arm.
No problemo on my RPi2.
What distro are you running on your RPi ?


Tommi

  • Full Member
  • ***
  • Posts: 213
Re: "uses pfio,rpi_hal" crashes my app.
« Reply #3 on: October 21, 2016, 05:15:50 pm »
I am using "Moebius distribution" on RPi1.

May be that is a fault of the distribution. I choiced it because it boots in just 11secs.

Did you try with Raspbian ?
I go to test with it.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: "uses pfio,rpi_hal" crashes my app.
« Reply #4 on: October 21, 2016, 05:42:19 pm »
The best thing you can do if you have your own specific distro, is to copy over the libraries from your RPi system towards your cross (Windows) system.

I, for myself, have different libraries (Linux/ARM) available for
* Ubuntu on BeagleBone Black
* Arch on RPi2

However, in your case, I would suggest using a mainstream distro.
And prepare yourself for RPi2 and RPi3.
Makes life easier.

 

TinyPortal © 2005-2018