Skip to content

Deploying fails in Debug Target Build Configuration SDK Version 2020.0

Good morning,

i wanted to use the debugger for a project. I started to watch the tutorial video provided for the configuration and usage.

I got stuck early in the tutorial as i can't build the project when "Debug all targets" or "Debug AXC...." is selected. I have attached a screenshot with the error message. If I use the release option instead of debug the project builds and deploys just fine.

I am using Eclipse 2019-12 and the 2020.0 version of the SDK. The project I am trying to debug is the CppDataTypeTest from your github repo.

LastPart

Best regards,

Simon Schackmann

Comments

  • Hi Simon,

    This is a bug in the PLCnext Eclipse add-in. It should include the option "-b Debug" in the deploy step, when you change the configuration to Debug.

    To work around this problem, you can add this option yourself from the Project Properties window - shown below.

    Hope this helps.

    ~ Martin.

     

    2020 02 15 153540

  • Hello Martin,

    this solved the issue, thank you very much.

    Best regards

    Simon Schackmann

  •  

    Captura

    This works for me, but when Debuging, i get this error, when In the Select Preferred Launcher dialog box,
    choose GDB (DSF) Manual Remote Debugging Launcher:

    Could not determine GDB version using command: C:\PLCnext\Win64\2020.0\sysroots\x86_64-pokysdk-mingw32\usr\bin\arm-pxc-linux-gnueabi\arm-pxc-linux-gnueabi-gdb.exe --version

     

    If i choose Automatic Remote Debugging Launcher y get this log (Spanish):

    [?25l
    [2K[0m
    [1G[?25h[?25l
    [2KMicrosoft Windows [Versión 10.0.18362.836]
    [2K
    [1G[?25h]0;Administrador: [?25l
    [2K(c) 2019 Microsoft Corporation. Todos los derechos reservados.
    [2K
    [2KC:\Program Files\eclipse_photon>192.168.255.002 :2345 /C:/PLCnext/Win64/2020.0/
    [2Ksysroots/cortexa9t2hf-neon-pxc-linux-gnueabi/usr/bin/Arp.System.Application;exit
    [2K
    [2K"192.168.255.002" no se reconoce como un comando interno o externo,
    [2Kprograma o archivo por lotes ejecutable.
    [2K
    [2KC:\Program Files\eclipse_photon>
    [33G[?25h

    [2K"192.168.255.002" no se reconoce como un comando interno o externo->this means that IP isnt recognised as command.

     

    Any ideas?

  • Hello, I try to run arm-pxc-linux-gnueabi-gdb.exe from his folder and i get and error that "libwinpthread-1.dll" was missing, i copy it from bin folder, to arm-pxc-linux-gnueabi, and its works.

    But in eclipse y get a new error:
    Captura2

    192.168.255.2:2345: A connection cannot be established since the target computer has expressly denied such a connection.

     

  • Hello,

    Can you please confirm that you executed the gdbserver --attach command on the PLC? Please note that the pid of Arp.System.Application changes every time the PLCnext runtime restarts, so this command must be executed with a different pid every time.

    ~ Martin.

  • Thank you Martin, i do it two times before post, and didn't work. Now attaching and running works...

Sign In or Register to comment.