Cannot attach debugger to FX30

I was running applications and attaching the debugger to the mangOH Green board just fine, with both Developer Studio and the device running framework version 16.10.4.

Recently I have switched development to the FX 30 instead.

When I try to just run an application on the FX30 from Developer Studio, I am shown the following error message:

framework

I can click “OK” and it allows me to proceed and executes the application seemingly successfully.

The trouble I have noticed is when I want to attach the debugger and am shown the following error message:

debug

I followed the instructions at Developer Mode - Legato Docs to attempt to install devMode to the target, and it completed without error.

However, I still cannot attach the debugger.

Hi @cmccarthy

Please can you tell which package you’re using in DS to build your app, and which version is running on your FX30 (from where did you get it from)?

Thanks!

I am using the following:

package

On both the device and in Developer Studio.

Yet, despite flashing the firmware directly from Developer Studio, using the same package I use to compile the application with, I still get message that the device and application are using different toolchain packages.

I tried to install devMode on it using this command:

app install $LEGATO_ROOT/build/wp85/tools/devMode.wp85.update 192.168.2.2

And I received this output from the device (for some reason I can’t get the time to sync on FX30, maybe because I am running it only on ethernet and not with cellular modem?):

Jan  6 00:37:23 | updateDaemon[515]/updateDaemon T=main | updateUnpack.c JsonDone() 867 | App with MD5 sum 37ce3f8710f97c3ef41d057a57e989e7 being unpacked.
Jan  6 00:37:23 | updateDaemon[515]/updateDaemon T=main | updateUnpack.c CopyBytesToPipeline() 554 | Payload copied: 117559/117559
Jan  6 00:37:24 | updateDaemon[515]/updateDaemon T=main | system.c system_Snapshot() 798 | Snapshot taken of system index 81.  Current system index is now 82.
Jan  6 00:37:24 | updateDaemon[515]/updateDaemon T=main | system.c system_MarkModified() 871 | Current system is now "modified".
Jan  6 00:37:24 | updateDaemon[515]/updateDaemon T=main | system.c system_SymlinkApp() 547 | Creating symlink /legato/systems/current/apps/devMode -> /legato/apps/37ce3f8710f97c3ef41d057a57e989e7
Jan  6 00:37:24 | updateDaemon[515]/appUser T=main | appUser.c appUser_Add() 43 | Creating user 'appdevMode' for application 'devMode'.
Jan  6 00:37:24 | updateDaemon[515]/framework T=main | LE_FILENAME user_Create() 1119 | Created user 'appdevMode' with uid 1022 and gid 1022.
Jan  6 00:37:25 | updateDaemon[515]/framework T=main | LE_FILENAME sysStatus_MarkTried() 261 | Current system has been marked "tried 1".
Jan  6 00:37:25 | updateDaemon[515]/updateDaemon T=main | supCtrl.c supCtrl_StartApp() 60 | Starting app 'devMode'.
Jan  6 00:37:25 | supervisor[487]/supervisor T=main | app.c CreateFileLink() 1504 | Created file link '/legato/systems/current/apps/devMode/read-only/lib/libComponent_devMode.so' to '/legato/systems/current/appsWriteable/devMode/lib/libC
Jan  6 00:37:25 | supervisor[487]/supervisor T=main | app.c CreateFileLink() 1504 | Created file link '/legato/systems/current/apps/devMode/read-only/bin/devMode' to '/legato/systems/current/appsWriteable/devMode/bin/devMode'.
Jan  6 00:37:25 | supervisor[487]/supervisor T=main | app.c CreateFileLink() 1504 | Created file link '/legato/systems/current/apps/devMode/read-only/bin/gdbserver' to '/legato/systems/current/appsWriteable/devMode/bin/gdbserver'.
Jan  6 00:37:25 | supervisor[487]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxCoreDumpFileBytes to value 102400.
Jan  6 00:37:25 | supervisor[487]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxFileBytes to value 102400.
Jan  6 00:37:25 | supervisor[487]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxLockedMemoryBytes to value 8192.
Jan  6 00:37:25 | supervisor[487]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxFileDescriptors to value 256.
Jan  6 00:37:25 | supervisor[487]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxMQueueBytes to value 512.
Jan  6 00:37:25 | supervisor[487]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxThreads to value 20.
Jan  6 00:37:25 | supervisor[487]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxQueuedSignals to value 100.
Jan  6 00:37:25 | supervisor[487]/supervisor T=main | proc.c proc_Start() 1190 | Starting process 'devMode' with pid 7741
Jan  6 00:37:25 | updateDaemon[515]/updateDaemon T=main | app.c app_InstallIndividual() 662 | App devMode <37ce3f8710f97c3ef41d057a57e989e7> installed
Jan  6 00:37:25 | updateDaemon[515]/updateDaemon T=main | updateDaemon.c ApplyAppUpdate() 664 | App 'devMode<37ce3f8710f97c3ef41d057a57e989e7>' installed properly.
Jan  6 00:37:25 | updateDaemon[515]/updateDaemon T=main | updateDaemon.c StartProbation() 190 | System on probation (timer started).
Jan  6 00:37:25 | supervisor[7741]/supervisor T=main | proc.c proc_Start() 1155 | Execing 'devMode'
Jan  6 00:37:25 | serviceDirectory[495]/serviceDirectory_exe T=main | serviceDirectory.c DispatchToServer() 713 | Client (uid 0 'root', pid 7741) disagrees with server (uid 0 'root', pid 550) on protocol ID of service 'devMode.devMode.le
Jan  6 00:37:25 | _UNKNOWN_[7741]/framework T=main | LE_FILENAME ReceiveSessionOpenResponse() 684 | Unexpected server response: -6 (LE_FAULT).
Jan  6 00:37:25 | supervisor[487]/supervisor T=main | proc.c proc_SigChildHandler() 1942 | Process 'devMode' (PID: 7741) has exited with exit code 1.
Jan  6 00:37:25 | supervisor[487]/supervisor T=main | proc.c GetFaultAction() 1744 | No fault action specified for process 'devMode'. Assuming 'ignore'.
Jan  6 00:37:26 | supervisor[487]/supervisor T=main | app.c app_SigChildHandler() 3221 | Process 'devMode' in app 'devMode' faulted: Ignored.
Jan  6 00:37:26 | _appStopClient[7742]/framework T=main | LE_FILENAME CreateSocket() 550 | Socket opened as standard i/o file descriptor 2!
Jan  6 00:37:26 | supervisor[487]/supervisor T=main | apps.c DeactivateAppContainer() 340 | Application 'devMode' has stopped.

When you’re doing this, are you absolutely sure that your LEGATO_ROOT is set to 16.10.4?
The error looks like a mismatch between the embedded Legato and the app…