11 years, 2 months ago.

Two questions (Debugger and Compiler)

Hi All

The first thing I've noticed was that there seems to be no functionality for debugging the code generated within the online compiler. For example: when you want to go step by step through your code. Maybe I missed it? I hope some of you mbed gurus can help me out ? :)

Also I was wondering if I could use an other platform to develop my code? Like Eclipse or something else.. or am I strictly bound to the online compiler?

Thanks A lot guys and a happy new year to you all!!

4 Answers

11 years, 2 months ago.

If you use my gcc4mbed project on github then it has the ability to produce debuggable binaries with the GNU toolchain. You can then read this page which provides an overview of how to then use the GDB debugger with GCC4MBED built projects through the use of my MRI debug monitor library.

Accepted Answer
11 years, 2 months ago.

The online compiler currently does not support debugging other than simple printf.

You can use offline toolchains without loosing the benefit of the mbed libraries. It is possible to export to Keil and other (expensive) commercial tools. You can also use free tools like programmers notepad and gcc. See http://mbed.org/handbook/Exporting-to-offline-toolchains

Debugging support for the mbed hardware should be possible (in future). See http://mbed.org/blog/entry/mbed-Interface-v20-CMSIS-DAP-Beta/

11 years, 2 months ago.

Hi,

The mbed team released few weeks ago a new beta firmware in order to enable debugging capabilities (load new program, step by step execution, breakpoints, ...). There is a webpage explaining how to debug your mbed programs using Keil MDK: https://mbed.org/handbook/CMSIS-DAP-MDK.

Cheers, Sam

11 years, 2 months ago.

Thanks you Wim, Adan and Samuel for the information!