[Beremiz-devel] [YAPLC] C Build crashed

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Beremiz-devel] [YAPLC] C Build crashed

Beremiz-Devel mailing list
Hi Paul,

I am trying compile simple example in YAPLC IDE. I have followed the steps as mentioned in BuildOnLinux.md. However when I compile the following message appears. Could you see if I am missing something. Do I need to do some configuration for the toolchain paths etc.

start build in /home/imran/projects/beremiz/example2/build
Generating SoftPLC IEC-61131 ST/IL/SFC code...
Compiling IEC Program into C code...
Extracting Located Variables...
C code generated successfully.
PLC :
   [CC]  plc_main.c -> plc_main.o
C Build crashed !
Traceback (most recent call last):
  File "/home/imran/YAPLC/beremiz/ProjectController.py", line 1064, in _Build
    if not builder.build() :
  File "/home/imran/YAPLC/IDE/yaplctargets/toolchain_yaplc.py", line 68, in build
    if toolchain_gcc.build(self):
  File "/home/imran/YAPLC/beremiz/targets/toolchain_gcc.py", line 187, in build
    (self.compiler, CFile, objectfilename, Builder_CFLAGS, CFLAGS)
  File "/home/imran/YAPLC/beremiz/util/ProcessLogger.py", line 134, in __init__
    self.Proc = subprocess.Popen( self.Command, **popenargs )
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Regards,
Imran

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Beremiz-devel] [YAPLC] C Build crashed

Beremiz-Devel mailing list
Hi, Imran!

You need gnu arm embedded toolchain installed and added to PATH.

IDE coulgn't find arm-none-eabi-gcc and gave the error.

Best Regards,
Paul Beltyukov.

пятница, 23 июня 2017 г. пользователь написал:

> Hi Paul,
> I am trying compile simple example in YAPLC IDE. I have followed the steps as mentioned in BuildOnLinux.md. However when I compile the following message appears. Could you see if I am missing something. Do I need to do some configuration for the toolchain paths etc.
> start build in /home/imran/projects/beremiz/example2/build
> Generating SoftPLC IEC-61131 ST/IL/SFC code...
> Compiling IEC Program into C code...
> Extracting Located Variables...
> C code generated successfully.
> PLC :
>    [CC]  plc_main.c -> plc_main.o
> C Build crashed !
> Traceback (most recent call last):
>   File "/home/imran/YAPLC/beremiz/ProjectController.py", line 1064, in _Build
>     if not builder.build() :
>   File "/home/imran/YAPLC/IDE/yaplctargets/toolchain_yaplc.py", line 68, in build
>     if toolchain_gcc.build(self):
>   File "/home/imran/YAPLC/beremiz/targets/toolchain_gcc.py", line 187, in build
>     (self.compiler, CFile, objectfilename, Builder_CFLAGS, CFLAGS)
>   File "/home/imran/YAPLC/beremiz/util/ProcessLogger.py", line 134, in __init__
>     self.Proc = subprocess.Popen( self.Command, **popenargs )
>   File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
>     errread, errwrite)
>   File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
>     raise child_exception
> OSError: [Errno 2] No such file or directory
> Regards,
> Imran
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Beremiz-devel] [YAPLC] C Build crashed

Beremiz-Devel mailing list
Hi Paul,

I have added to PATH variable and before opening the YAPLCIDE, if I type arm-none-eabi-gcc, it works. 
e.g.

arm-none-eabi-gcc
arm-none-eabi-gcc: fatal error: no input files
compilation terminated.

Do I need to specify compiler command prefixes somewhere?

Regards,
Imran
 

On Fri, Jun 23, 2017 at 4:56 PM, <[hidden email]> wrote:
Hi, Imran!

You need gnu arm embedded toolchain installed and added to PATH.

IDE coulgn't find arm-none-eabi-gcc and gave the error.

Best Regards,
Paul Beltyukov.

пятница, 23 июня 2017 г. пользователь написал:

> Hi Paul,
> I am trying compile simple example in YAPLC IDE. I have followed the steps as mentioned in BuildOnLinux.md. However when I compile the following message appears. Could you see if I am missing something. Do I need to do some configuration for the toolchain paths etc.
> start build in /home/imran/projects/beremiz/example2/build
> Generating SoftPLC IEC-61131 ST/IL/SFC code...
> Compiling IEC Program into C code...
> Extracting Located Variables...
> C code generated successfully.
> PLC :
>    [CC]  plc_main.c -> plc_main.o
> C Build crashed !
> Traceback (most recent call last):
>   File "/home/imran/YAPLC/beremiz/ProjectController.py", line 1064, in _Build
>     if not builder.build() :
>   File "/home/imran/YAPLC/IDE/yaplctargets/toolchain_yaplc.py", line 68, in build
>     if toolchain_gcc.build(self):
>   File "/home/imran/YAPLC/beremiz/targets/toolchain_gcc.py", line 187, in build
>     (self.compiler, CFile, objectfilename, Builder_CFLAGS, CFLAGS)
>   File "/home/imran/YAPLC/beremiz/util/ProcessLogger.py", line 134, in __init__
>     self.Proc = subprocess.Popen( self.Command, **popenargs )
>   File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
>     errread, errwrite)
>   File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
>     raise child_exception
> OSError: [Errno 2] No such file or directory
> Regards,
> Imran
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Beremiz-devel] [YAPLC] C Build crashed

Beremiz-Devel mailing list
In reply to this post by Beremiz-Devel mailing list
In addition to last email: 

I wanted to say that even after setting the PATH variable, YAPLC IDE still  giving the same error. i.e.

C code generated successfully.
PLC :
   [CC]  plc_main.c -> plc_main.o
C Build crashed !
Traceback (most recent call last):
  File "/home/imran/YAPLC/beremiz/ProjectController.py", line 1064, in _Build
    if not builder.build() :
  File "/home/imran/YAPLC/IDE/yaplctargets/toolchain_yaplc.py", line 68, in build
    if toolchain_gcc.build(self):
  File "/home/imran/YAPLC/beremiz/targets/toolchain_gcc.py", line 187, in build
    (self.compiler, CFile, objectfilename, Builder_CFLAGS, CFLAGS)
  File "/home/imran/YAPLC/beremiz/util/ProcessLogger.py", line 134, in __init__
    self.Proc = subprocess.Popen( self.Command, **popenargs )
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Regards,
Imran

On Wed, Jun 28, 2017 at 1:45 PM, Muhammad Imran Afaqy <[hidden email]> wrote:
Hi Paul,

I have added to PATH variable and before opening the YAPLCIDE, if I type arm-none-eabi-gcc, it works. 
e.g.

arm-none-eabi-gcc
arm-none-eabi-gcc: fatal error: no input files
compilation terminated.

Do I need to specify compiler command prefixes somewhere?

Regards,
Imran
 

On Fri, Jun 23, 2017 at 4:56 PM, <[hidden email]> wrote:
Hi, Imran!

You need gnu arm embedded toolchain installed and added to PATH.

IDE coulgn't find arm-none-eabi-gcc and gave the error.

Best Regards,
Paul Beltyukov.

пятница, 23 июня 2017 г. пользователь написал:

> Hi Paul,
> I am trying compile simple example in YAPLC IDE. I have followed the steps as mentioned in BuildOnLinux.md. However when I compile the following message appears. Could you see if I am missing something. Do I need to do some configuration for the toolchain paths etc.
> start build in /home/imran/projects/beremiz/example2/build
> Generating SoftPLC IEC-61131 ST/IL/SFC code...
> Compiling IEC Program into C code...
> Extracting Located Variables...
> C code generated successfully.
> PLC :
>    [CC]  plc_main.c -> plc_main.o
> C Build crashed !
> Traceback (most recent call last):
>   File "/home/imran/YAPLC/beremiz/ProjectController.py", line 1064, in _Build
>     if not builder.build() :
>   File "/home/imran/YAPLC/IDE/yaplctargets/toolchain_yaplc.py", line 68, in build
>     if toolchain_gcc.build(self):
>   File "/home/imran/YAPLC/beremiz/targets/toolchain_gcc.py", line 187, in build
>     (self.compiler, CFile, objectfilename, Builder_CFLAGS, CFLAGS)
>   File "/home/imran/YAPLC/beremiz/util/ProcessLogger.py", line 134, in __init__
>     self.Proc = subprocess.Popen( self.Command, **popenargs )
>   File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
>     errread, errwrite)
>   File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
>     raise child_exception
> OSError: [Errno 2] No such file or directory
> Regards,
> Imran
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Beremiz-devel] [YAPLC] C Build crashed

Beremiz-Devel mailing list
Dear Imran!

   The issue is the same IDE can't execute arm-none-eabi-gcc command.

What is you os?
Where is gcc located?
How did you add gcc to PATH?

Best regards,
Paul Beltyukov

2017-06-28 8:46 GMT+05:00 <[hidden email]>:
In addition to last email: 

I wanted to say that even after setting the PATH variable, YAPLC IDE still  giving the same error. i.e.

C code generated successfully.
PLC :
   [CC]  plc_main.c -> plc_main.o
C Build crashed !
Traceback (most recent call last):
  File "/home/imran/YAPLC/beremiz/ProjectController.py", line 1064, in _Build
    if not builder.build() :
  File "/home/imran/YAPLC/IDE/yaplctargets/toolchain_yaplc.py", line 68, in build
    if toolchain_gcc.build(self):
  File "/home/imran/YAPLC/beremiz/targets/toolchain_gcc.py", line 187, in build
    (self.compiler, CFile, objectfilename, Builder_CFLAGS, CFLAGS)
  File "/home/imran/YAPLC/beremiz/util/ProcessLogger.py", line 134, in __init__
    self.Proc = subprocess.Popen( self.Command, **popenargs )
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Regards,
Imran

On Wed, Jun 28, 2017 at 1:45 PM, Muhammad Imran Afaqy <[hidden email]> wrote:
Hi Paul,

I have added to PATH variable and before opening the YAPLCIDE, if I type arm-none-eabi-gcc, it works. 
e.g.

arm-none-eabi-gcc
arm-none-eabi-gcc: fatal error: no input files
compilation terminated.

Do I need to specify compiler command prefixes somewhere?

Regards,
Imran
 

On Fri, Jun 23, 2017 at 4:56 PM, <[hidden email]> wrote:
Hi, Imran!

You need gnu arm embedded toolchain installed and added to PATH.

IDE coulgn't find arm-none-eabi-gcc and gave the error.

Best Regards,
Paul Beltyukov.

пятница, 23 июня 2017 г. пользователь написал:

> Hi Paul,
> I am trying compile simple example in YAPLC IDE. I have followed the steps as mentioned in BuildOnLinux.md. However when I compile the following message appears. Could you see if I am missing something. Do I need to do some configuration for the toolchain paths etc.
> start build in /home/imran/projects/beremiz/example2/build
> Generating SoftPLC IEC-61131 ST/IL/SFC code...
> Compiling IEC Program into C code...
> Extracting Located Variables...
> C code generated successfully.
> PLC :
>    [CC]  plc_main.c -> plc_main.o
> C Build crashed !
> Traceback (most recent call last):
>   File "/home/imran/YAPLC/beremiz/ProjectController.py", line 1064, in _Build
>     if not builder.build() :
>   File "/home/imran/YAPLC/IDE/yaplctargets/toolchain_yaplc.py", line 68, in build
>     if toolchain_gcc.build(self):
>   File "/home/imran/YAPLC/beremiz/targets/toolchain_gcc.py", line 187, in build
>     (self.compiler, CFile, objectfilename, Builder_CFLAGS, CFLAGS)
>   File "/home/imran/YAPLC/beremiz/util/ProcessLogger.py", line 134, in __init__
>     self.Proc = subprocess.Popen( self.Command, **popenargs )
>   File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
>     errread, errwrite)
>   File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
>     raise child_exception
> OSError: [Errno 2] No such file or directory
> Regards,
> Imran
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Beremiz-devel] [YAPLC] C Build crashed

Beremiz-Devel mailing list
Dear Paul
I am using ubuntu 16.04 Lts
Gcc is installed in /opt
I modified /etc/environment  to add to path

Regards
Imran


On Wed, 28 Jun 2017 at 7:57 pm, <[hidden email]> wrote:
Dear Imran!

   The issue is the same IDE can't execute arm-none-eabi-gcc command.

What is you os?
Where is gcc located?
How did you add gcc to PATH?

Best regards,
Paul Beltyukov

2017-06-28 8:46 GMT+05:00 <[hidden email]>:
In addition to last email: 

I wanted to say that even after setting the PATH variable, YAPLC IDE still  giving the same error. i.e.

C code generated successfully.
PLC :
   [CC]  plc_main.c -> plc_main.o
C Build crashed !
Traceback (most recent call last):
  File "/home/imran/YAPLC/beremiz/ProjectController.py", line 1064, in _Build
    if not builder.build() :
  File "/home/imran/YAPLC/IDE/yaplctargets/toolchain_yaplc.py", line 68, in build
    if toolchain_gcc.build(self):
  File "/home/imran/YAPLC/beremiz/targets/toolchain_gcc.py", line 187, in build
    (self.compiler, CFile, objectfilename, Builder_CFLAGS, CFLAGS)
  File "/home/imran/YAPLC/beremiz/util/ProcessLogger.py", line 134, in __init__
    self.Proc = subprocess.Popen( self.Command, **popenargs )
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Regards,
Imran

On Wed, Jun 28, 2017 at 1:45 PM, Muhammad Imran Afaqy <[hidden email]> wrote:
Hi Paul,

I have added to PATH variable and before opening the YAPLCIDE, if I type arm-none-eabi-gcc, it works. 
e.g.

arm-none-eabi-gcc
arm-none-eabi-gcc: fatal error: no input files
compilation terminated.

Do I need to specify compiler command prefixes somewhere?

Regards,
Imran
 

On Fri, Jun 23, 2017 at 4:56 PM, <[hidden email]> wrote:
Hi, Imran!

You need gnu arm embedded toolchain installed and added to PATH.

IDE coulgn't find arm-none-eabi-gcc and gave the error.

Best Regards,
Paul Beltyukov.

пятница, 23 июня 2017 г. пользователь написал:

> Hi Paul,
> I am trying compile simple example in YAPLC IDE. I have followed the steps as mentioned in BuildOnLinux.md. However when I compile the following message appears. Could you see if I am missing something. Do I need to do some configuration for the toolchain paths etc.
> start build in /home/imran/projects/beremiz/example2/build
> Generating SoftPLC IEC-61131 ST/IL/SFC code...
> Compiling IEC Program into C code...
> Extracting Located Variables...
> C code generated successfully.
> PLC :
>    [CC]  plc_main.c -> plc_main.o
> C Build crashed !
> Traceback (most recent call last):
>   File "/home/imran/YAPLC/beremiz/ProjectController.py", line 1064, in _Build
>     if not builder.build() :
>   File "/home/imran/YAPLC/IDE/yaplctargets/toolchain_yaplc.py", line 68, in build
>     if toolchain_gcc.build(self):
>   File "/home/imran/YAPLC/beremiz/targets/toolchain_gcc.py", line 187, in build
>     (self.compiler, CFile, objectfilename, Builder_CFLAGS, CFLAGS)
>   File "/home/imran/YAPLC/beremiz/util/ProcessLogger.py", line 134, in __init__
>     self.Proc = subprocess.Popen( self.Command, **popenargs )
>   File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
>     errread, errwrite)
>   File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
>     raise child_exception
> OSError: [Errno 2] No such file or directory
> Regards,
> Imran
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
--
Regards
Imran

Sent from mobile device

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Beremiz-devel] [YAPLC] C Build crashed

Beremiz-Devel mailing list
Hi Imran!

This is my system:

uname -a
 
Linux myhostname 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:58:04 UTC 2016 i686 i686 i686 GNU/Linux
 
aptitude search arm-none-eabi
 
i   binutils-arm-none-eabi                       
i   gcc-arm-none-eabi                         
p   gcc-arm-none-eabi-source                                    
i   gdb-arm-none-eabi                        
i   libnewlib-arm-none-eabi
i   libstdc++-arm-none-eabi-newlib

Project build works well.

Can You try to install Distros tools for arm?

Best regards,
Paul Beltyukov

2017-06-28 15:05 GMT+05:00 <[hidden email]>:
Dear Paul
I am using ubuntu 16.04 Lts
Gcc is installed in /opt
I modified /etc/environment  to add to path

Regards
Imran


On Wed, 28 Jun 2017 at 7:57 pm, <[hidden email]> wrote:
Dear Imran!

   The issue is the same IDE can't execute arm-none-eabi-gcc command.

What is you os?
Where is gcc located?
How did you add gcc to PATH?

Best regards,
Paul Beltyukov

2017-06-28 8:46 GMT+05:00 <[hidden email]>:
In addition to last email: 

I wanted to say that even after setting the PATH variable, YAPLC IDE still  giving the same error. i.e.

C code generated successfully.
PLC :
   [CC]  plc_main.c -> plc_main.o
C Build crashed !
Traceback (most recent call last):
  File "/home/imran/YAPLC/beremiz/ProjectController.py", line 1064, in _Build
    if not builder.build() :
  File "/home/imran/YAPLC/IDE/yaplctargets/toolchain_yaplc.py", line 68, in build
    if toolchain_gcc.build(self):
  File "/home/imran/YAPLC/beremiz/targets/toolchain_gcc.py", line 187, in build
    (self.compiler, CFile, objectfilename, Builder_CFLAGS, CFLAGS)
  File "/home/imran/YAPLC/beremiz/util/ProcessLogger.py", line 134, in __init__
    self.Proc = subprocess.Popen( self.Command, **popenargs )
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Regards,
Imran

On Wed, Jun 28, 2017 at 1:45 PM, Muhammad Imran Afaqy <[hidden email]> wrote:
Hi Paul,

I have added to PATH variable and before opening the YAPLCIDE, if I type arm-none-eabi-gcc, it works. 
e.g.

arm-none-eabi-gcc
arm-none-eabi-gcc: fatal error: no input files
compilation terminated.

Do I need to specify compiler command prefixes somewhere?

Regards,
Imran
 

On Fri, Jun 23, 2017 at 4:56 PM, <[hidden email]> wrote:
Hi, Imran!

You need gnu arm embedded toolchain installed and added to PATH.

IDE coulgn't find arm-none-eabi-gcc and gave the error.

Best Regards,
Paul Beltyukov.

пятница, 23 июня 2017 г. пользователь написал:

> Hi Paul,
> I am trying compile simple example in YAPLC IDE. I have followed the steps as mentioned in BuildOnLinux.md. However when I compile the following message appears. Could you see if I am missing something. Do I need to do some configuration for the toolchain paths etc.
> start build in /home/imran/projects/beremiz/example2/build
> Generating SoftPLC IEC-61131 ST/IL/SFC code...
> Compiling IEC Program into C code...
> Extracting Located Variables...
> C code generated successfully.
> PLC :
>    [CC]  plc_main.c -> plc_main.o
> C Build crashed !
> Traceback (most recent call last):
>   File "/home/imran/YAPLC/beremiz/ProjectController.py", line 1064, in _Build
>     if not builder.build() :
>   File "/home/imran/YAPLC/IDE/yaplctargets/toolchain_yaplc.py", line 68, in build
>     if toolchain_gcc.build(self):
>   File "/home/imran/YAPLC/beremiz/targets/toolchain_gcc.py", line 187, in build
>     (self.compiler, CFile, objectfilename, Builder_CFLAGS, CFLAGS)
>   File "/home/imran/YAPLC/beremiz/util/ProcessLogger.py", line 134, in __init__
>     self.Proc = subprocess.Popen( self.Command, **popenargs )
>   File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
>     errread, errwrite)
>   File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
>     raise child_exception
> OSError: [Errno 2] No such file or directory
> Regards,
> Imran
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
--
Regards
Imran

Sent from mobile device

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Beremiz-devel] [YAPLC] C Build crashed

Beremiz-Devel mailing list
Hi Paul,

I am able to build it now. The problem was that I was starting yaplcide with sudo python yaplcide.py command. If I start it without sudo, my example is compiled. This example is not using any located variables.

However, if I start yaplcide without sudo command, i can not connect to target. I am using YAPLC:///dev/ttyUSB0 in my URI location. Then I start yaplcide with sudo command and try to connect to target, then the following error appears.

Connecting to:/dev/ttyUSB0
<yaplcconnectors.YAPLC.YAPLCProto.GET_LOGCOUNTSTransaction instance at 0x7f9680851248>Exception in PLC protocol : PLC protocol transaction error : Exception in PLC protocol : controller did not answer as expected!

Please note that I have already build yaplc runtime for my discovery board and programmed it using ST-Link util.

Here is my procedure (please check if it is correct).

1. STM32F4-Disc1 has been programmed with yaplc runtime.

2. Boot 0 is connected to VDD via jumper wire.

3. Boot 1 is connected to GND. Boot 1 is PB2 on my board I have shorted it to GND via jumper wire.

4. Then I start IDE using sudo command and see the above error I mentioned.

Could you see if I am doing anything wrong?

Regards,
Imran

On Wed, Jun 28, 2017 at 8:31 PM, <[hidden email]> wrote:
Hi Imran!

This is my system:

uname -a
 
Linux myhostname 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:58:04 UTC 2016 i686 i686 i686 GNU/Linux
 
aptitude search arm-none-eabi
 
i   binutils-arm-none-eabi                       
i   gcc-arm-none-eabi                         
p   gcc-arm-none-eabi-source                                    
i   gdb-arm-none-eabi                        
i   libnewlib-arm-none-eabi
i   libstdc++-arm-none-eabi-newlib

Project build works well.

Can You try to install Distros tools for arm?

Best regards,
Paul Beltyukov

2017-06-28 15:05 GMT+05:00 <[hidden email]>:
Dear Paul
I am using ubuntu 16.04 Lts
Gcc is installed in /opt
I modified /etc/environment  to add to path

Regards
Imran


On Wed, 28 Jun 2017 at 7:57 pm, <[hidden email]> wrote:
Dear Imran!

   The issue is the same IDE can't execute arm-none-eabi-gcc command.

What is you os?
Where is gcc located?
How did you add gcc to PATH?

Best regards,
Paul Beltyukov

2017-06-28 8:46 GMT+05:00 <[hidden email]>:
In addition to last email: 

I wanted to say that even after setting the PATH variable, YAPLC IDE still  giving the same error. i.e.

C code generated successfully.
PLC :
   [CC]  plc_main.c -> plc_main.o
C Build crashed !
Traceback (most recent call last):
  File "/home/imran/YAPLC/beremiz/ProjectController.py", line 1064, in _Build
    if not builder.build() :
  File "/home/imran/YAPLC/IDE/yaplctargets/toolchain_yaplc.py", line 68, in build
    if toolchain_gcc.build(self):
  File "/home/imran/YAPLC/beremiz/targets/toolchain_gcc.py", line 187, in build
    (self.compiler, CFile, objectfilename, Builder_CFLAGS, CFLAGS)
  File "/home/imran/YAPLC/beremiz/util/ProcessLogger.py", line 134, in __init__
    self.Proc = subprocess.Popen( self.Command, **popenargs )
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Regards,
Imran

On Wed, Jun 28, 2017 at 1:45 PM, Muhammad Imran Afaqy <[hidden email]> wrote:
Hi Paul,

I have added to PATH variable and before opening the YAPLCIDE, if I type arm-none-eabi-gcc, it works. 
e.g.

arm-none-eabi-gcc
arm-none-eabi-gcc: fatal error: no input files
compilation terminated.

Do I need to specify compiler command prefixes somewhere?

Regards,
Imran
 

On Fri, Jun 23, 2017 at 4:56 PM, <[hidden email]> wrote:
Hi, Imran!

You need gnu arm embedded toolchain installed and added to PATH.

IDE coulgn't find arm-none-eabi-gcc and gave the error.

Best Regards,
Paul Beltyukov.

пятница, 23 июня 2017 г. пользователь написал:

> Hi Paul,
> I am trying compile simple example in YAPLC IDE. I have followed the steps as mentioned in BuildOnLinux.md. However when I compile the following message appears. Could you see if I am missing something. Do I need to do some configuration for the toolchain paths etc.
> start build in /home/imran/projects/beremiz/example2/build
> Generating SoftPLC IEC-61131 ST/IL/SFC code...
> Compiling IEC Program into C code...
> Extracting Located Variables...
> C code generated successfully.
> PLC :
>    [CC]  plc_main.c -> plc_main.o
> C Build crashed !
> Traceback (most recent call last):
>   File "/home/imran/YAPLC/beremiz/ProjectController.py", line 1064, in _Build
>     if not builder.build() :
>   File "/home/imran/YAPLC/IDE/yaplctargets/toolchain_yaplc.py", line 68, in build
>     if toolchain_gcc.build(self):
>   File "/home/imran/YAPLC/beremiz/targets/toolchain_gcc.py", line 187, in build
>     (self.compiler, CFile, objectfilename, Builder_CFLAGS, CFLAGS)
>   File "/home/imran/YAPLC/beremiz/util/ProcessLogger.py", line 134, in __init__
>     self.Proc = subprocess.Popen( self.Command, **popenargs )
>   File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
>     errread, errwrite)
>   File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
>     raise child_exception
> OSError: [Errno 2] No such file or directory
> Regards,
> Imran
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
--
Regards
Imran

Sent from mobile device

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Beremiz-devel] [YAPLC] C Build crashed

Beremiz-Devel mailing list
Hi, Imran!

We use uart to communicate with boards.

You should connect with USB-UART converter to Discoverys USART1 (see plc_config.h).

After that you should be able to communicate with the board.

Best regard,
Paul Beltyukov

2017-06-29 10:49 GMT+05:00 <[hidden email]>:
Hi Paul,

I am able to build it now. The problem was that I was starting yaplcide with sudo python yaplcide.py command. If I start it without sudo, my example is compiled. This example is not using any located variables.

However, if I start yaplcide without sudo command, i can not connect to target. I am using YAPLC:///dev/ttyUSB0 in my URI location. Then I start yaplcide with sudo command and try to connect to target, then the following error appears.

Connecting to:/dev/ttyUSB0
<yaplcconnectors.YAPLC.YAPLCProto.GET_LOGCOUNTSTransaction instance at 0x7f9680851248>Exception in PLC protocol : PLC protocol transaction error : Exception in PLC protocol : controller did not answer as expected!

Please note that I have already build yaplc runtime for my discovery board and programmed it using ST-Link util.

Here is my procedure (please check if it is correct).

1. STM32F4-Disc1 has been programmed with yaplc runtime.

2. Boot 0 is connected to VDD via jumper wire.

3. Boot 1 is connected to GND. Boot 1 is PB2 on my board I have shorted it to GND via jumper wire.

4. Then I start IDE using sudo command and see the above error I mentioned.

Could you see if I am doing anything wrong?

Regards,
Imran

On Wed, Jun 28, 2017 at 8:31 PM, <[hidden email]> wrote:
Hi Imran!

This is my system:

uname -a
 
Linux myhostname 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:58:04 UTC 2016 i686 i686 i686 GNU/Linux
 
aptitude search arm-none-eabi
 
i   binutils-arm-none-eabi                       
i   gcc-arm-none-eabi                         
p   gcc-arm-none-eabi-source                                    
i   gdb-arm-none-eabi                        
i   libnewlib-arm-none-eabi
i   libstdc++-arm-none-eabi-newlib

Project build works well.

Can You try to install Distros tools for arm?

Best regards,
Paul Beltyukov

2017-06-28 15:05 GMT+05:00 <[hidden email]>:
Dear Paul
I am using ubuntu 16.04 Lts
Gcc is installed in /opt
I modified /etc/environment  to add to path

Regards
Imran


On Wed, 28 Jun 2017 at 7:57 pm, <[hidden email]> wrote:
Dear Imran!

   The issue is the same IDE can't execute arm-none-eabi-gcc command.

What is you os?
Where is gcc located?
How did you add gcc to PATH?

Best regards,
Paul Beltyukov

2017-06-28 8:46 GMT+05:00 <[hidden email]>:
In addition to last email: 

I wanted to say that even after setting the PATH variable, YAPLC IDE still  giving the same error. i.e.

C code generated successfully.
PLC :
   [CC]  plc_main.c -> plc_main.o
C Build crashed !
Traceback (most recent call last):
  File "/home/imran/YAPLC/beremiz/ProjectController.py", line 1064, in _Build
    if not builder.build() :
  File "/home/imran/YAPLC/IDE/yaplctargets/toolchain_yaplc.py", line 68, in build
    if toolchain_gcc.build(self):
  File "/home/imran/YAPLC/beremiz/targets/toolchain_gcc.py", line 187, in build
    (self.compiler, CFile, objectfilename, Builder_CFLAGS, CFLAGS)
  File "/home/imran/YAPLC/beremiz/util/ProcessLogger.py", line 134, in __init__
    self.Proc = subprocess.Popen( self.Command, **popenargs )
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Regards,
Imran

On Wed, Jun 28, 2017 at 1:45 PM, Muhammad Imran Afaqy <[hidden email]> wrote:
Hi Paul,

I have added to PATH variable and before opening the YAPLCIDE, if I type arm-none-eabi-gcc, it works. 
e.g.

arm-none-eabi-gcc
arm-none-eabi-gcc: fatal error: no input files
compilation terminated.

Do I need to specify compiler command prefixes somewhere?

Regards,
Imran
 

On Fri, Jun 23, 2017 at 4:56 PM, <[hidden email]> wrote:
Hi, Imran!

You need gnu arm embedded toolchain installed and added to PATH.

IDE coulgn't find arm-none-eabi-gcc and gave the error.

Best Regards,
Paul Beltyukov.

пятница, 23 июня 2017 г. пользователь написал:

> Hi Paul,
> I am trying compile simple example in YAPLC IDE. I have followed the steps as mentioned in BuildOnLinux.md. However when I compile the following message appears. Could you see if I am missing something. Do I need to do some configuration for the toolchain paths etc.
> start build in /home/imran/projects/beremiz/example2/build
> Generating SoftPLC IEC-61131 ST/IL/SFC code...
> Compiling IEC Program into C code...
> Extracting Located Variables...
> C code generated successfully.
> PLC :
>    [CC]  plc_main.c -> plc_main.o
> C Build crashed !
> Traceback (most recent call last):
>   File "/home/imran/YAPLC/beremiz/ProjectController.py", line 1064, in _Build
>     if not builder.build() :
>   File "/home/imran/YAPLC/IDE/yaplctargets/toolchain_yaplc.py", line 68, in build
>     if toolchain_gcc.build(self):
>   File "/home/imran/YAPLC/beremiz/targets/toolchain_gcc.py", line 187, in build
>     (self.compiler, CFile, objectfilename, Builder_CFLAGS, CFLAGS)
>   File "/home/imran/YAPLC/beremiz/util/ProcessLogger.py", line 134, in __init__
>     self.Proc = subprocess.Popen( self.Command, **popenargs )
>   File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
>     errread, errwrite)
>   File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
>     raise child_exception
> OSError: [Errno 2] No such file or directory
> Regards,
> Imran
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
--
Regards
Imran

Sent from mobile device

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Beremiz-devel] [YAPLC] C Build crashed

Beremiz-Devel mailing list
Here are some remarks on using STM32F4-discovery:

https://github.com/nucleron/RTE/tree/testing

Best regards,
Paul Beltyukov

2017-06-29 11:43 GMT+05:00 <[hidden email]>:
Hi, Imran!

We use uart to communicate with boards.

You should connect with USB-UART converter to Discoverys USART1 (see plc_config.h).

After that you should be able to communicate with the board.

Best regard,
Paul Beltyukov

2017-06-29 10:49 GMT+05:00 <[hidden email]>:
Hi Paul,

I am able to build it now. The problem was that I was starting yaplcide with sudo python yaplcide.py command. If I start it without sudo, my example is compiled. This example is not using any located variables.

However, if I start yaplcide without sudo command, i can not connect to target. I am using YAPLC:///dev/ttyUSB0 in my URI location. Then I start yaplcide with sudo command and try to connect to target, then the following error appears.

Connecting to:/dev/ttyUSB0
<yaplcconnectors.YAPLC.YAPLCProto.GET_LOGCOUNTSTransaction instance at 0x7f9680851248>Exception in PLC protocol : PLC protocol transaction error : Exception in PLC protocol : controller did not answer as expected!

Please note that I have already build yaplc runtime for my discovery board and programmed it using ST-Link util.

Here is my procedure (please check if it is correct).

1. STM32F4-Disc1 has been programmed with yaplc runtime.

2. Boot 0 is connected to VDD via jumper wire.

3. Boot 1 is connected to GND. Boot 1 is PB2 on my board I have shorted it to GND via jumper wire.

4. Then I start IDE using sudo command and see the above error I mentioned.

Could you see if I am doing anything wrong?

Regards,
Imran

On Wed, Jun 28, 2017 at 8:31 PM, <[hidden email]> wrote:
Hi Imran!

This is my system:

uname -a
 
Linux myhostname 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:58:04 UTC 2016 i686 i686 i686 GNU/Linux
 
aptitude search arm-none-eabi
 
i   binutils-arm-none-eabi                       
i   gcc-arm-none-eabi                         
p   gcc-arm-none-eabi-source                                    
i   gdb-arm-none-eabi                        
i   libnewlib-arm-none-eabi
i   libstdc++-arm-none-eabi-newlib

Project build works well.

Can You try to install Distros tools for arm?

Best regards,
Paul Beltyukov

2017-06-28 15:05 GMT+05:00 <[hidden email]>:
Dear Paul
I am using ubuntu 16.04 Lts
Gcc is installed in /opt
I modified /etc/environment  to add to path

Regards
Imran


On Wed, 28 Jun 2017 at 7:57 pm, <[hidden email]> wrote:
Dear Imran!

   The issue is the same IDE can't execute arm-none-eabi-gcc command.

What is you os?
Where is gcc located?
How did you add gcc to PATH?

Best regards,
Paul Beltyukov

2017-06-28 8:46 GMT+05:00 <[hidden email]>:
In addition to last email: 

I wanted to say that even after setting the PATH variable, YAPLC IDE still  giving the same error. i.e.

C code generated successfully.
PLC :
   [CC]  plc_main.c -> plc_main.o
C Build crashed !
Traceback (most recent call last):
  File "/home/imran/YAPLC/beremiz/ProjectController.py", line 1064, in _Build
    if not builder.build() :
  File "/home/imran/YAPLC/IDE/yaplctargets/toolchain_yaplc.py", line 68, in build
    if toolchain_gcc.build(self):
  File "/home/imran/YAPLC/beremiz/targets/toolchain_gcc.py", line 187, in build
    (self.compiler, CFile, objectfilename, Builder_CFLAGS, CFLAGS)
  File "/home/imran/YAPLC/beremiz/util/ProcessLogger.py", line 134, in __init__
    self.Proc = subprocess.Popen( self.Command, **popenargs )
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Regards,
Imran

On Wed, Jun 28, 2017 at 1:45 PM, Muhammad Imran Afaqy <[hidden email]> wrote:
Hi Paul,

I have added to PATH variable and before opening the YAPLCIDE, if I type arm-none-eabi-gcc, it works. 
e.g.

arm-none-eabi-gcc
arm-none-eabi-gcc: fatal error: no input files
compilation terminated.

Do I need to specify compiler command prefixes somewhere?

Regards,
Imran
 

On Fri, Jun 23, 2017 at 4:56 PM, <[hidden email]> wrote:
Hi, Imran!

You need gnu arm embedded toolchain installed and added to PATH.

IDE coulgn't find arm-none-eabi-gcc and gave the error.

Best Regards,
Paul Beltyukov.

пятница, 23 июня 2017 г. пользователь написал:

> Hi Paul,
> I am trying compile simple example in YAPLC IDE. I have followed the steps as mentioned in BuildOnLinux.md. However when I compile the following message appears. Could you see if I am missing something. Do I need to do some configuration for the toolchain paths etc.
> start build in /home/imran/projects/beremiz/example2/build
> Generating SoftPLC IEC-61131 ST/IL/SFC code...
> Compiling IEC Program into C code...
> Extracting Located Variables...
> C code generated successfully.
> PLC :
>    [CC]  plc_main.c -> plc_main.o
> C Build crashed !
> Traceback (most recent call last):
>   File "/home/imran/YAPLC/beremiz/ProjectController.py", line 1064, in _Build
>     if not builder.build() :
>   File "/home/imran/YAPLC/IDE/yaplctargets/toolchain_yaplc.py", line 68, in build
>     if toolchain_gcc.build(self):
>   File "/home/imran/YAPLC/beremiz/targets/toolchain_gcc.py", line 187, in build
>     (self.compiler, CFile, objectfilename, Builder_CFLAGS, CFLAGS)
>   File "/home/imran/YAPLC/beremiz/util/ProcessLogger.py", line 134, in __init__
>     self.Proc = subprocess.Popen( self.Command, **popenargs )
>   File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
>     errread, errwrite)
>   File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
>     raise child_exception
> OSError: [Errno 2] No such file or directory
> Regards,
> Imran
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
--
Regards
Imran

Sent from mobile device

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Beremiz-devel] [YAPLC] C Build crashed

Beremiz-Devel mailing list
In reply to this post by Beremiz-Devel mailing list
Hi Imran,

On 17-06-29 15:49, [hidden email] wrote:
> Hi Paul,
>
> I am able to build it now. The problem was that I was starting yaplcide
> with sudo python yaplcide.py command. If I start it without sudo, my
> example is compiled. This example is not using any located variables.

Don't run IDE as root user.


> However, if I start yaplcide without sudo command, i can not connect to
> target. I am using YAPLC:///dev/ttyUSB0 in my URI location. Then I start
> yaplcide with sudo command and try to connect to target, then the following
> error appears.

Do you (your Linux user) have access rights on /dev/ttyUSB0.
Are you member of dialout user group?
Show output of commands "id" and "ls -l /dev/ttyUSB0".


> Connecting to:/dev/ttyUSB0
> <yaplcconnectors.YAPLC.YAPLCProto.GET_LOGCOUNTSTransaction instance at
> 0x7f9680851248>Exception in PLC protocol : PLC protocol transaction error :
> Exception in PLC protocol : controller did not answer as expected!
>
> Please note that I have already build yaplc runtime for my discovery board
> and programmed it using ST-Link util.
>
> Here is my procedure (please check if it is correct).
>
> 1. STM32F4-Disc1 has been programmed with yaplc runtime.
>
> 2. Boot 0 is connected to VDD via jumper wire.
>
> 3. Boot 1 is connected to GND. Boot 1 is PB2 on my board I have shorted it
> to GND via jumper wire.
>
> 4. Then I start IDE using sudo command and see the above error I mentioned.
>
> Could you see if I am doing anything wrong?
>
> Regards,
> Imran
>
> On Wed, Jun 28, 2017 at 8:31 PM, <[hidden email]>
> wrote:
>
> > Hi Imran!
> >
> > This is my system:
> >
> > uname -a
> >
> >
> >> Linux myhostname 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:58:04 UTC
> >> 2016 i686 i686 i686 GNU/Linux
> >
> >
> > aptitude search arm-none-eabi
> >
> >
> >> i   binutils-arm-none-eabi
> >> i   gcc-arm-none-eabi
> >> p   gcc-arm-none-eabi-source
> >> i   gdb-arm-none-eabi
> >> i   libnewlib-arm-none-eabi
> >> i   libstdc++-arm-none-eabi-newlib
> >
> >
> > Project build works well.
> >
> > Can You try to install Distros tools for arm?
> >
> > Best regards,
> > Paul Beltyukov
> >
> > 2017-06-28 15:05 GMT+05:00 <[hidden email]>:
> >
> >> Dear Paul
> >> I am using ubuntu 16.04 Lts
> >> Gcc is installed in /opt
> >> I modified /etc/environment  to add to path
> >>
> >> Regards
> >> Imran
> >>
> >>
> >> On Wed, 28 Jun 2017 at 7:57 pm, <[hidden email]>
> >> wrote:
> >>
> >>> Dear Imran!
> >>>
> >>>    The issue is the same IDE can't execute arm-none-eabi-gcc command.
> >>>
> >>> What is you os?
> >>> Where is gcc located?
> >>> How did you add gcc to PATH?
> >>>
> >>> Best regards,
> >>> Paul Beltyukov
> >>>
> >>> 2017-06-28 8:46 GMT+05:00 <[hidden email]>:
> >>>
> >>>> In addition to last email:
> >>>>
> >>>> I wanted to say that even after setting the PATH variable, YAPLC IDE
> >>>> still  giving the same error. i.e.
> >>>>
> >>>> C code generated successfully.
> >>>> PLC :
> >>>>    [CC]  plc_main.c -> plc_main.o
> >>>> C Build crashed !
> >>>> Traceback (most recent call last):
> >>>>   File "/home/imran/YAPLC/beremiz/ProjectController.py", line 1064, in
> >>>> _Build
> >>>>     if not builder.build() :
> >>>>   File "/home/imran/YAPLC/IDE/yaplctargets/toolchain_yaplc.py", line
> >>>> 68, in build
> >>>>     if toolchain_gcc.build(self):
> >>>>   File "/home/imran/YAPLC/beremiz/targets/toolchain_gcc.py", line 187,
> >>>> in build
> >>>>     (self.compiler, CFile, objectfilename, Builder_CFLAGS, CFLAGS)
> >>>>   File "/home/imran/YAPLC/beremiz/util/ProcessLogger.py", line 134, in
> >>>> __init__
> >>>>     self.Proc = subprocess.Popen( self.Command, **popenargs )
> >>>>   File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
> >>>>     errread, errwrite)
> >>>>   File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
> >>>>     raise child_exception
> >>>> OSError: [Errno 2] No such file or directory
> >>>>
> >>>> Regards,
> >>>> Imran
> >>>>
> >>>> On Wed, Jun 28, 2017 at 1:45 PM, Muhammad Imran Afaqy <
> >>>> [hidden email]> wrote:
> >>>>
> >>>>> Hi Paul,
> >>>>>
> >>>>> I have added to PATH variable and before opening the YAPLCIDE, if I
> >>>>> type arm-none-eabi-gcc, it works.
> >>>>> e.g.
> >>>>>
> >>>>> arm-none-eabi-gcc
> >>>>> arm-none-eabi-gcc: fatal error: no input files
> >>>>> compilation terminated.
> >>>>>
> >>>>> Do I need to specify compiler command prefixes somewhere?
> >>>>>
> >>>>> Regards,
> >>>>> Imran
> >>>>>
> >>>>>
> >>>>> On Fri, Jun 23, 2017 at 4:56 PM, <[hidden email]>
> >>>>> wrote:
> >>>>>
> >>>>>> Hi, Imran!
> >>>>>>
> >>>>>> You need gnu arm embedded toolchain installed and added to PATH.
> >>>>>>
> >>>>>> IDE coulgn't find arm-none-eabi-gcc and gave the error.
> >>>>>>
> >>>>>> Best Regards,
> >>>>>> Paul Beltyukov.
> >>>>>>
> >>>>>> пятница, 23 июня 2017 г. пользователь написал:
> >>>>>>
> >>>>>> > Hi Paul,
> >>>>>> > I am trying compile simple example in YAPLC IDE. I have followed
> >>>>>> the steps as mentioned in BuildOnLinux.md. However when I compile the
> >>>>>> following message appears. Could you see if I am missing something. Do I
> >>>>>> need to do some configuration for the toolchain paths etc.
> >>>>>> > start build in /home/imran/projects/beremiz/example2/build
> >>>>>> > Generating SoftPLC IEC-61131 ST/IL/SFC code...
> >>>>>> > Compiling IEC Program into C code...
> >>>>>> > Extracting Located Variables...
> >>>>>> > C code generated successfully.
> >>>>>> > PLC :
> >>>>>> >    [CC]  plc_main.c -> plc_main.o
> >>>>>> > C Build crashed !
> >>>>>> > Traceback (most recent call last):
> >>>>>> >   File "/home/imran/YAPLC/beremiz/ProjectController.py", line
> >>>>>> 1064, in _Build
> >>>>>> >     if not builder.build() :
> >>>>>> >   File "/home/imran/YAPLC/IDE/yaplctargets/toolchain_yaplc.py",
> >>>>>> line 68, in build
> >>>>>> >     if toolchain_gcc.build(self):
> >>>>>> >   File "/home/imran/YAPLC/beremiz/targets/toolchain_gcc.py", line
> >>>>>> 187, in build
> >>>>>> >     (self.compiler, CFile, objectfilename, Builder_CFLAGS, CFLAGS)
> >>>>>> >   File "/home/imran/YAPLC/beremiz/util/ProcessLogger.py", line
> >>>>>> 134, in __init__
> >>>>>> >     self.Proc = subprocess.Popen( self.Command, **popenargs )
> >>>>>> >   File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
> >>>>>> >     errread, errwrite)
> >>>>>> >   File "/usr/lib/python2.7/subprocess.py", line 1343, in
> >>>>>> _execute_child
> >>>>>> >     raise child_exception
> >>>>>> > OSError: [Errno 2] No such file or directory
> >>>>>> > Regards,
> >>>>>> > Imran
> >>>>>>
> >>>>>> ------------------------------------------------------------
> >>>>>> ------------------
> >>>>>> Check out the vibrant tech community on one of the world's most
> >>>>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> >>>>>> _______________________________________________
> >>>>>> Beremiz-devel mailing list
> >>>>>> [hidden email]
> >>>>>> https://lists.sourceforge.net/lists/listinfo/beremiz-devel
> >>>>>>
> >>>>>>
> >>>>>
> >>>>
> >>>> ------------------------------------------------------------
> >>>> ------------------
> >>>> Check out the vibrant tech community on one of the world's most
> >>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> >>>> _______________________________________________
> >>>> Beremiz-devel mailing list
> >>>> [hidden email]
> >>>> https://lists.sourceforge.net/lists/listinfo/beremiz-devel
> >>>>
> >>>>
> >>> ------------------------------------------------------------
> >>> ------------------
> >>> Check out the vibrant tech community on one of the world's most
> >>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot______
> >>> _________________________________________
> >>> Beremiz-devel mailing list
> >>> [hidden email]
> >>> https://lists.sourceforge.net/lists/listinfo/beremiz-devel
> >>>
> >> --
> >> Regards
> >> Imran
> >>
> >> Sent from mobile device
> >>
> >> ------------------------------------------------------------
> >> ------------------
> >> Check out the vibrant tech community on one of the world's most
> >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> >> _______________________________________________
> >> Beremiz-devel mailing list
> >> [hidden email]
> >> https://lists.sourceforge.net/lists/listinfo/beremiz-devel
> >>
> >>
> >
> > ------------------------------------------------------------
> > ------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > _______________________________________________
> > Beremiz-devel mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/beremiz-devel
> >
> >

> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot

> _______________________________________________
> Beremiz-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/beremiz-devel


--
Best regards,
Andrey Skvortsov

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

signature.asc (849 bytes) Download Attachment
Loading...