Welcome, Guest
Username: Password: Remember me

TOPIC: cross compile "file not recognized"

cross compile "file not recognized" 2 years 3 months ago #11310

  • seec
  • seec's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 78
  • Karma: 0
hi claes

redirect in the make file don't work


usrprotocol_top : usrprotocol

include $(pwr_exe)/pwrp_rules.mk pwrp_rules_cross.mk

pwrp_obj := $(pwrp_root)/bld/arm_linux/obj


usrprotocol_modules = \
$(pwrp_obj)/rt_io_user.o \
$(pwrp_obj)/rt_io_m_gen_copy_io_signals.o \
$(pwrp_obj)/rt_io_m_gen_tools.o \
$(pwrp_obj)/rt_io_m_gen_objects.o \
................
......





In PwRDirectory:
I run make file before build (BuildExe)
I copy obj-files from /bld/arm_linux/obj to /bld/arm_linux/obj
before build


cees
The administrator has disabled public write access.

cross compile "file not recognized" 2 years 3 months ago #11311

  • seec
  • seec's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 78
  • Karma: 0
hi claes

Now i started from scratch

Clean dir $pwmp_bld dir's

I edit my CVol ClassVolumes and build them.

I saved PwR Directory

In VolEvoPro:

I opened all my PlcPgm save and build

Now i look in my obj libs
Only .o files from my Appl

NO plc .o files

In the Tmp directory I see
plc code: .gc code

i look like some not working



cees
The administrator has disabled public write access.

cross compile "file not recognized" 2 years 3 months ago #11312

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3178
  • Thank you received: 502
  • Karma: 133
Hi Cees,

Build the node with force. Set force in Options/Settings.

/Claes
The administrator has disabled public write access.

cross compile "file not recognized" 2 years 3 months ago #11313

  • seec
  • seec's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 78
  • Karma: 0
Hi claes

Test project created with only my MQTT project.....
This project works with pi 3 programmed in pi distribute without crosscopiling (pwrp5.5)
Try to run on pi3 (buster)(32bits) programed on lubuntu20 64 bits (pwrp5.9)


this is my logfile

I pwr_plc 3654 22-01-09 12:15:51.27 Adding application. aix: 12
I €Xÿv 3654 22-01-09 12:15:51.27 Setting subscription defaults to 1.000 seconds
I €Xÿv 3654 22-01-09 12:15:51.27 Priority set, plc thread 100 ms, prio 22
I €Xÿv 3654 22-01-09 12:15:51.27 Init of IO agent VolTestPro:Nodes-TestPro
I €Xÿv 3654 22-01-09 12:15:51.27 IO init: no read or write actions found for this process
I pwr_io 3641 22-01-09 12:15:51.27 Init of IO agent VolTestPro:Nodes-TestPro
I pwr_io 3641 22-01-09 12:15:51.27 IO init: no read or write actions found for this process
I rt_xtt 3662 22-01-09 12:15:56.30 Adding application. aix: 13



Workbench messages:


I 22-01-09 12:42:30 Distribute package for node rpi12
W 22-01-09 12:42:26 Distribute warnings node rpi12: 8 warnings
W 22-01-09 12:42:26 No file found: $pwrp_cnf/rpi12/.rhosts:$pwra_db/.rhosts
W 22-01-09 12:42:26 No file found: $pwrp_load/rpi12/b55/xtt_setup.rtt_com:$pwrp_load/rpi12/xtt_setup.rtt_com:$pwrp
W 22-01-09 12:42:26 No file found: $pwrp_load/rpi12/b55/Rt_xtt:$pwrp_load/rpi12/Rt_xtt:$pwrp_load/Rt_xtt
W 22-01-09 12:42:26 No file found: $pwrp_exe/*.pwg
W 22-01-09 12:42:26 No file found: $pwrp_load/rtt_crrs_000_168_179_001.dat
W 22-01-09 12:42:26 No file found: $pwrp_load/rtt_crrc_000_168_179_001.dat
W 22-01-09 12:42:26 No file found: $pwrp_load/rtt_crro_000_168_179_001.dat
W 22-01-09 12:42:26 No file found: $pwrp_load/rtt_crr_000_168_179_001.dat
I 22-01-09 12:42:20 User pwrp logged in


ARM_Build.jpg



project.jpg



Object file: plc_rpi12_0612_plc.opt

`: Autogenerated options file, Do not edit !!` $pwrp_obj/rt_io_m_gen_tools.o $pwrp_obj/rt_io_m_gen_objects.o $pwrp_obj/rt_io_m_gen_copy_io_signals.o $pwrp_obj/rt_io_m_tmt_agent.o $pwrp_obj/rt_io_m_tmt_rack.o $pwrp_obj/rt_io_m_tmt_sw_card.o -lz $pwrp_obj/rt_io_m_mqtt.o $pwrp_obj/rt_io_user.o -lpwr_rt -lpwr_piface_dummy -lpwr_rt -lpwr_pnak_dummy -lpwr_cifx_dummy -lpwr_usb_dummy -lpwr_usbio_dummy -lpwr_nodave_dummy -lpwr_mqtt_dummy -lpwr_epl_dummy

Object .O files copied to: /usr/local/pwrp/testproj/bld/arm_linux/obj



O_files.jpg


No compile and build errors

Cees
The administrator has disabled public write access.

cross compile "file not recognized" 2 years 3 months ago #11314

  • seec
  • seec's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 78
  • Karma: 0
Hi Claes


1e I have to create a PlcPgm (without any code) ,
Then "plc_rpi12_0612_plc" is created


withPlcPgm.jpg


Cross compiling is now working......
this test project is working

Cees
The administrator has disabled public write access.

cross compile "file not recognized" 2 years 3 months ago #11315

  • seec
  • seec's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 78
  • Karma: 0
Hi claes

I build my Evo project from scrach. Example version 5.5
fresh configure in 5.9

Without any plc programs it is working.
cross compiling works
communication with evo system works.

Next try with some plc code,
self made fo's

cees
The administrator has disabled public write access.
Time to create page: 9.183 seconds