Debugging a code with a board simulator in Eclipse (no hardware) - c

I'm using Eclipse IDE for debugging a code with an STM32 microcontroller, and looking for a way to simulate the MCU board and not need to connect and use the actual micrcontroller, it is very helpful to run simple codes and testing.
I was using IAREW before and it is possible, it has an option for a simulator driver in the debugging tool and you can run and see the results normally as if the board is connected; i was wondering if it is also possible with Eclipse?
In the Eclipse Debugger -> Debug probe, there are only 3 options which are ST-Link(GDB), J-Link and ST-LINK(Open-OCD); i'm new to Eclipse and couldn't figure out if it could be possible somehow by modifying something with one of those options.
Update:
I have found a kind of a solution, to add an extension to include the IAR EW debugger inside eclipse:
http://eclipse-update.iar.com/plugin-manager-install.html
It is not a good solution as both IDEs need to be installed, and the project need to be created specifically for IAR to use its simulator, so it is not possible to create an STM32 project and use the IAR simulator for debugging.
Are there other solutions within eclipse, without using another IDE or an extesion?

Related

Debugger tool for Kaa Application with Kaa C SDK

I need to try with debugging Kaa application by Kaa C SDK for Raspberry Pi.
For example: Cassandra data analytics demo.
1- Please, suggest to me the best debugger tool, and
2- How can I import and setup project with debugger tool.
Note: I can do it with simple way just put "printf" function and then seeing the result, But I need a debugger tool.
This question is not Kaa specific, as it is just a regular C application, so you can use any debugging tool you know.
The default debugging tool for Linux is GDB, though you can use any graphical GDB interface you like. For example, you can use KDbg, Emacs plugin, or any other C IDE. (Refer to you tool documentation for further instructions.)
To enable debugging, it is recommended to enable debug symbol generation in CMake and disable optimizations. This is done with -DCMAKE_BUILD_TYPE=Debug CMake flag.

Cross Compilation for C applications using Eclipse

I'm developing a java application which uses native code with JNI, so I developped a C shared library using Eclipse with the CDT plugin on Linux Redhat. Everything works fine since I can launch my java application and call the native methods without any problem. But my problem is, I need to compile my code on every platform (Linux, Windows, x86/x64). It's not a problem to get the libXXX.so file but I also need a .dll to run on Windows, except I can't just compile my code on it, I need a way to do that locally on Linux with Eclipse. So I am looking for some simple solutions to do that locally with Eclipse using cross compilation.
I've made some researches but I can't find a real tutorial to explain how to do that, each time people say to compile on the specified platform. So if someone could help me with this that would be great.
My configuration is : Linux RedHat, Eclipse Juno, CDT plugin 8.1
You need a Linux -> Windows cross compiler. The MinGW tools would do the job, but, last I checked, they only provide binary downloads to run on Windows (i.e. not a cross-compiler). There are some (old) instructions for building your own here.
The CodeBench compiler is probably exactly what you want, but it's not free (there is a free trial though). It's basically a professional build of the MinGW tools, and comes with it's own customized Eclipse so there's no fiddling about needed in that department.
A quick google also comes up with these tools on sourceforge, but I've not tried them.

Debugging in QtCreator 5 using Mingw+Gdb on Windows?

I have been looking for a solution for hours. I have QTC 5, Mingw and Gdb under Windows7. I can compile and run my project however I have not been able to figure out how to debug and create a debug configuration in QT 5 under Windows. Bear in mind that everything works as it should in this IDE. I am happy with it just that I have not been able to figure out debugging with this particular configuration.
Most tutorials were concerned with CDB or Qt project or in other platforms, or were talking about some tabs or menus that are not available in v5 as far as I can tell.
What is the right way of setting up a debug configuration and running my .exe in a debug environment using QT 5 and Gdb? My project is mostly C and some C++ with no Qt component. I am just using it as an IDE for C/C++.
thanks

Is there an IDE that works with CUDA on mac osx lion?

I'm trying to learn Cuda and its very interesting but I'm having problems creating code without a bit of help from an IDE. I know Java/Python but I'm unfamiliar with C/C++ so I have been using eclipse and Xcode to help me with commands and finding things(via code code completion). I can't seem to get these options for CUDA?
I have seen examples and can build them find(nvcc is working) but without the IDE to help catch some of my mistakes I'm a bit lost editing the code in just a text editor. I found a toolkit plugin for eclipse but although it seems to install I think its for a older build of eclipse because most of the options in the instructions do not match my version(Indigo). Nvidia has a plugin for Visual studio only on their site(I'd rather not install windows on my mac to use Cuda).
I'm sorry if this sounds bad but I'm curious to how people are developing cuda on Mac's. I don't care what IDE I use as long as it helps me see the options and warn me if I have syntax issues,etc..(I'm not the best programmer but switching IDE's for me has just been a matter of finding out where things are so I'm really fine with any solution as long as it helps me as I'm learning).
Nsight Eclipse Edition is available as a part of the CUDA Toolkit 5.0 (no additional download required).
Qt Creator!
You can read Qt Creator + CUDA + Linux for inspiration on how to setup the build environment on Mac OS X.
You could think about using JCuda:
http://www.jcuda.de/
There is XCode plug-in for CUDA development. I found it there. There is the main discussion on nvidia.com
Visual Studio Code + this extension:
https://github.com/gangliao/VS-Code-Cuda.
For me, Visual Studio Code is my favorite IDE for every language I found out there

Eclipse Plugin To Read Breakpoint Information

I'm working with a legacy embedded debugging tool and it's frustrating to work with. I just found out however that it can be automated in many ways, such at setting breakpoints on start up.
Since I use eclipse cdt as my development environment, I was wondering if I could write an eclipse plugin that reads all my breakpoints so I can generate a script in my debugging tools proprietary language and then launch the debugger. This way I can set breakpoints in eclipse and have them load up in my debugger when ever I need them.
Right-click in the breakpoint view and select "Export breakpoints..."

Resources