Search code examples
eclipsesystemstm32workbenchopenocd

Error in Final Launch Sequence - Eclipse System Workbench Debugging for STM32L476


I'm trying to debug and run simple assembly code for STM32L476. I've set up Eclipse Oxygen, installed the latest version of System Workbench plugin in Eclipse and installed ST-Link drivers. The IDE successfully builds the program without throwing any errors, however when I connect my STM Discovery Board and try to debug, the program throws the following error:

Error in Final Launch Sequence - Reset Command not defined for device 'Generic TCP/IP'.

Error Image 1, Error Image 2

I'm getting this error on both Ubuntu 17.10 and Windows 10 having used the exact same software. Having read a few other posts regarding issues similar to this, I was told to check whether I've OpenOCD and arm-none-eabi-gdb setup within Eclipse, and they have been set up properly as show in the image below.

Debugger Settings

Any help in resolving this issue will be much appreciated. Thanks


Solution

  • I had the same issue when updating to the latest version of Eclipse. After doing some research I found a bug report on the bug tracker page of Eclipse:

    Bug 529171 - Recent Pushed update causing - Reset Command not defined for device 'Generic TCP/IP'

    This states that the module causing the issue is C/C++ GDB Hardware Debugging version 9.4.0.201712051550. I verified it and I had the same version when the error occured. The current solution is to revert to a previous version. By reverting to version 9.3.2.201709131603 the issue is solved and I can use GDB to debug the STM microcontrollers.

    You can find the current version of this module in Help > About then Installation Details then under OpenSTM32 Remote debugging support. To revert to a previous you have two options. If you updated Eclipse then in the Installation Details window there is an Installation History tab, where you can revert to previous version. Otherwise you should delete the module and search for a previous version in the eclipse install repository.