Please note that Developer Studio 2.0.0 is available for download from now.
An automatic update should be proposed the next time you’ll open your Developer Studio session.
This new delivery is synchronized with Open AT Software Suite 2.35 version, in order to let you use the major new feature of these new releases: Open AT applications debugging, on the target, and without extra hardware required (i.e. without JTAG probe).
This new functionality is compatible with all the modules able to run the 7.45 Firmware version.
The other major update of this new 2.0.0 version is the ability, when installing Developer Studio for the first time (using the installer), to select the components to install, allowing a lighter product setup if you don’t need all the features.
Until now, the only way to debug an Open AT application running on the target (I mean using a debugger) was to use a JTAG probe, and was only available on WMP modules.
This method is still available, but in addition, we introduced a new feature allowing to do the same, but without JTAG probe and available on all modules.
Indeed, we’ve implemented a “GDB stub” in Firmware 7.45 allowing to handle this functionality. DS communicates with it over the serial line, through frames multiplexed with the other ones (traces, AT commands…)
Hey guys, excited about this new version I grabbed it and did clean install using default selections without the Discovery Tool. From the toolchains only the ARM EABI GCC was selected. My project failed to build, I created new one and copy pasted the source and include files and it built just fine. However when I try to do target debug I get this error:
java.io.IOException: Cannot run program "gdb": Launching failed
at org.eclipse.cdt.utils.spawner.Spawner.exec(Spawner.java:297)
at org.eclipse.cdt.utils.spawner.Spawner.<init>(Spawner.java:88)
at org.eclipse.cdt.utils.spawner.Spawner.<init>(Spawner.java:116)
at org.eclipse.cdt.utils.spawner.Spawner.<init>(Spawner.java:108)
at org.eclipse.cdt.utils.spawner.ProcessFactory.exec(ProcessFactory.java:63)
at org.eclipse.cdt.debug.mi.core.MIProcessAdapter.createGDBProcess(MIProcessAdapter.java:115)
at org.eclipse.cdt.debug.mi.core.MIProcessAdapter.getGDBProcess(MIProcessAdapter.java:51)
at org.eclipse.cdt.debug.mi.core.MIProcessAdapter.<init>(MIProcessAdapter.java:38)
at org.eclipse.cdt.debug.mi.core.command.CommandFactory.createMIProcess(CommandFactory.java:456)
at org.eclipse.cdt.debug.mi.core.MIPlugin.createSession(MIPlugin.java:460)
at org.eclipse.cdt.debug.mi.core.AbstractGDBCDIDebugger.createGDBSession(AbstractGDBCDIDebugger.java:114)
at org.eclipse.cdt.debug.mi.core.AbstractGDBCDIDebugger.createSession(AbstractGDBCDIDebugger.java:68)
at org.eclipse.cdt.launch.internal.LocalCDILaunchDelegate.launchDebugSession(LocalCDILaunchDelegate.java:344)
at org.eclipse.cdt.launch.internal.LocalCDILaunchDelegate.createCDISession(LocalCDILaunchDelegate.java:469)
at org.eclipse.cdt.launch.internal.LocalCDILaunchDelegate.launchLocalDebugSession(LocalCDILaunchDelegate.java:146)
at org.eclipse.cdt.launch.internal.LocalCDILaunchDelegate.launchDebugger(LocalCDILaunchDelegate.java:113)
at org.eclipse.cdt.launch.internal.LocalCDILaunchDelegate.launch(LocalCDILaunchDelegate.java:73)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:702)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:923)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1126)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Soo… if it tries to run some gdb.exe it won’t have much of a success, as there is only arm-none-eabi-gdb.exe, I tried renaming to gdb.exe and didn’t work either. Missing something?
It appears that you didn’t use “Open AT Target Application” launch configuration, but maybe a standard CDT one, which won’t work…
Once your application is built, downloaded and started on the target, you can debug it by:
Right click on the project in the project explorer
Select Debug As > Open AT Target Application
Select the connection on which your target is running
Thanks, I had OpenAT Target application, but have ran it directly from the menu rather than going to debug configurations and creating new from there, so I deleted the one, created new and… it was crashing with some weird infinite loop exception. Restarted Dev studio and it is working now, very, very handy!
By the way “step over” and “step into” do not work if you already have 2 breakpoints in the code. I understand why, but it took me some time waiting for something to happen when I pressed “step over” and it never came to the next line, but never continued the program either, I had to stop the execution and restart it to continue, maybe just disabling them when you put 2 breakpoints or having a message pops that you cannot now do that.
Something happened with the debugging, I was actually able to debug the program only once, I can no longer do it so switched back to the message system, but it is great to get it back online…
This error code comes when the embedded GDB stub detects that the application is either not present or not started. Are you sure that your app is running and alive on the module?