10 years, 1 month ago.

Off line Nucleo F401RE off-line programming and debugging

Off-line Nucleo F401RE programming and debugging

Hi, I want to be able to program and debug using an IDE such as Eclipse. Can someone give details on how setting up Eclipse for this.

And I'd like to know why we can't export our programs for GCC (ARM Embedded) but only for Keil uVision ? Thanks for your answers. Fab

Question relating to:

Affordable and flexible platform to ease prototyping using a STM32F401RET6 microcontroller.

4 Answers

10 years ago.

Have a look on the Em::Blocks ide. Support the STM32 out of the box. The nucleo boards can be programmed and debugged. I'm currenty on the way to import the mbed lib sources ...

Accepted Answer

Checked it out through Wine and it launches and seems good. On the other hand, I'm targeting offline mode with a toolchain using Eclipse. Cannot get the mbed sdk to compile using arm-none-eabi tools. I get "NUCLEO_F401RE target is not yet supported by toolchain GCC_ARM".

So what I'm looking for is a way to get this to work so that I can integrate it into an Eclipse template and build offline.

posted by Josh N 21 Mar 2014

Managed to get the mbed to build for the Nucleo_F401RE by modifying targets.py and adding GCC_ARM to the F401RE entry and adding my path to private_settings.py. The issue I have when invoking the include on mbed.h is the following and could be related to not finding the proper C++ libs on Mac OS X: "<snipped>workspace/smbed/libs/mbed/platform.h:25:19: fatal error: cstddef: No such file or directory #include <cstddef>".

Maybe a conflict between homebrew and Mac OS X or something related.

posted by Josh N 22 Mar 2014

Have you tried my project file ? I have changed the linker file. Have you add "Use C++ libraries" under Linker settings ?

posted by Peter Drescher 22 Mar 2014

Yes, I had done that right after and it seemed at the time that progress was being made but I had only added the path to the C++ include to the assembly and gcc settings.. Now, the error I have is the following and is link-time:

"In file included from /usr/include/c++/4.2.1/bits/c++config.h:41:0, from /usr/include/c++/4.2.1/cstddef:50, from /Users/<snipped>/Documents/workspace/smbed/libs/mbed/platform.h:25, from /Users/<snipped>/Documents/workspace/smbed/libs/mbed/mbed.h:21, from ../src/main.c:2: /usr/include/c++/4.2.1/bits/os_defines.h:63:26: fatal error: Availability.h: No such file or directory

  1. include <Availability.h>"
posted by Josh N 22 Mar 2014
10 years, 1 month ago.

Hello,

good start is with Handbook http://mbed.org/handbook/Homepage#further-technical-topics. How to set eclipse? There are many tutorials on the web, I for example I wrote one http://mbed.org/users/Kojto/notebook/offline-gcc-compiling-and-debugging-with-mbed/. It is for KL25Z, not much work to change it for nucleo targets.

Why GCC is not supported for F401RE? Because nobody has written the files needed to support that toolchain.

Regards,
0xc0170

10 years, 1 month ago.

Hello Martin,

Thank you for this answer, I'll try to find a suitable compiler instead of GCC. Regards

10 years ago.

What does writing the files needed to support the GCC toolchain imply? Could someone base an implementation on existing toolchains and take it from there? If so, how?