Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Rpi3 - Cross compiler - Plc don't start

Rpi3 - Cross compiler - Plc don't start 6 years 6 months ago #9208

  • cresus
  • cresus's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
Hello,

I'm trying to develop a system for my Rpi3 with the cross compiler( I read for that the document"Proview on raspberry pi)". Somethimes it is working, somethimes no. The boot node is OK and the distribute too.
On my RPI3, I always can open the application, but somethimes the Plc don't start. I maybe foud out when but i don't understand why.
I don't works when i have the message "file found: $pwrp_root/bld/arm_linux/exe/plc_rpi3b_0001_plc" when i do the distribute to my Rpi3.
what this message means?
I need your help.
And i'm sorry for my poor english...

Thanks

Developent station: PWR55 and Linux Mint 18
Process station: Rpi3 and Rapsbian jessie (kernel 4.4)
Attachments:
Last Edit: 6 years 6 months ago by cresus.
The administrator has disabled public write access.

Rpi3 - Cross compiler - Plc don't start 6 years 6 months ago #9212

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3170
  • Thank you received: 497
  • Karma: 133
Hi cresus,

plc_rpi3b_0001_plc is the executable for the plc program. It should be generated when you build the rpi3b node. Probably the linking failed and the executable was never created. Always check the terminal window for error messages when you build the node.

/Claes
The administrator has disabled public write access.

Rpi3 - Cross compiler - Plc don't start 6 years 6 months ago #9214

  • cresus
  • cresus's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
Hi Claes,
first of all, I want to thank you and all the team for your excellent work.
True, the plc_rpi3b_0001_plc was not generated in this folder:/usr/local/pwrp/rpi3c/bld/arm_linux/exe.
And I'd like to undersand why. So i created a new projetc called "rpi3e" and i watch what happen in this folder: /usr/local/pwrp/rpi3e/bld/arm_linux/exe.
I wrote a little program and i build it: no plc_rpi3e=_0001_plc genetated...
On the Pwr VolRpie window, when i build the node rpie: always nothing generated...
Now, On the Pwr Directory window, when i build the node rpie:
1-no _0001_plc genetated...
2-on the terminal window: Build node rpie
3- i have a error message from Workbench messages window: "volume not loaded: 0.01.1.17"
Why that?
Regards



Setting base /usr/pwr55
-- Project created Rpi3-rpie
Project root created
Creating directory database
Open rpie
args: rpie pwrp pwrp
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
Welcome to
rpie V5.5

Revision history
2017-09-14 pwrp Project created
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
-- Processing line: 2
-- Building volume directory
-- Saving file /usr/local/pwrp/rpie/src/db/directory.wb_load -> /usr/local/pwrp/rpie/src/db/dirad.1
%WNAV-I-MSG, Unable to open file
-- Opening volume 'VolRpie'
PrStation configuration
wb_vrepdb::adopt, n.put rc -30994
wb_vrepdb::adopt, n.put rc -30994
%WNAV-I-MSG, Unable to open file
%GSX-I-FILECREA, file pwrp_inc:ra_plc_user.h is created
-- Plc window generated O20-O21-W
-- Plc window compiled for x86_64_linux optimized -O3 O20-O21-W
%GSX-I-CCSUCC, Window compiled O20-O21-W
-- Plc plcpgm compiled for x86_64_linux optimized -O3 O20-O21
-- Plc window generated O20-O21-W
-- Plc window compiled for x86_64_linux optimized -O3 O20-O21-W
%GSX-I-CCSUCC, Window compiled O20-O21-W
-- Plc plcpgm compiled for x86_64_linux optimized -O3 O20-O21

(wb:60236): GLib-CRITICAL **: Source ID 7210 was not found when attempting to remove it

(wb:60236): GLib-CRITICAL **: Source ID 4680 was not found when attempting to remove it

(wb:60236): GLib-CRITICAL **: Source ID 5545 was not found when attempting to remove it
-- Build node rpie
-- Building archive for volume: 000_001_001_017
-- Archive built for volume: 000_001_001_017
-- Working with load file volume 'VolRpie'...
-- Open file...
-- Successfully created load file for volume 'VolRpie'
-- 35 objects with a total body size of 50888 bytes were written to new file.
-- Creating bootfile for node rpie
-- Plc thread generated priority 22, scantime 0.10000 s, 1 plcpgm's
-- Plc process compiled for x86_64_linux optimized -O3 Dummy
-- Plc program linked for x86_64_linux plc_rpie_0001_plc
-- Build node PcDev1
-- Creating bootfile for node PcDev1
-- Plc thread generated priority 22, scantime 0.10000 s, 1 plcpgm's
-- Plc process compiled for x86_64_linux optimized -O3 Dummy
-- Plc program linked for x86_64_linux plc_pcdev1_0999_plc
-- Build node rpie
Attachments:
Last Edit: 6 years 6 months ago by cresus.
The administrator has disabled public write access.

Rpi3 - Cross compiler - Plc don't start 6 years 6 months ago #9215

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3170
  • Thank you received: 497
  • Karma: 133
Hi cresus,

You are building the node for x86_64_linux, not for arm_linux. To build for arm whith cross compilation you should set operating system to CustomBuild both in Volume attributes for the root volume, and in the NodeConfig object in the directory volume. Then you create a CustomBuild object under the NodeConfig object where you specify the platform and cross compilator. Read more about this in Proview on Raspberry Pi.

/Claes
The administrator has disabled public write access.

Rpi3 - Cross compiler - Plc don't start 6 years 6 months ago #9216

  • cresus
  • cresus's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
Claes,
I did not finished the rpi3e project as it is written to the "man_rpi PDF". I thought that it was not necessary for to show you what is wrong. So this is a bad example...
But my first example, the rpi3b is complete. I check it. I read all the document"Proview on raspberry pi" before do it.
After i did this:
-I opened the rpi3b project
-i opened an modified the Plc Programm
-I saved it
-and after, when i build the rpi3b node, the plc_rpi3b_0001_plc was generated!!!
I did the same thing for all the other projects.
That's great now.

another little question Claes,
the rpi3 is a arm 64 bits, isn'it?
Should i set OperatingSystem to Linux on ARM64?

Thank you
Attachments:
Last Edit: 6 years 6 months ago by cresus.
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 8.599 seconds