6 years, 10 months ago.

Offline code compilation for use on STM32F103RB boards

Hi,

I exported the latest revision 144 of mbed C/C++ SDK to my desktop IDE (Eclipse Neon.3) for further use on my STM32 Nucleo F103RB dev board. I picked "NUCLEO-F103RB" as the board and am using Eclipse-GCC-ARM toolchain. Now that I've added mbed library to my project, I get the (I guess the infamous :)) error about device.h file missing. Has anyone had this problem before? If so is there a solution to this? Thanks!

1 Answer

6 years, 10 months ago.

Not sure how you're adding the mbed library, but a quick way of preparing the library is through mbed CLI:

$ mbed export -i eclipse_gcc_arm -m NUCLEO_F103RB

^ Generates a valid Makefile which builds fine.

Although this should work fine from the online compiler too.

Thanks Jan! It turned out that the export of mbed was correct. It was my mistake of not adding the proper includes to my project. :) I got it working now.

posted by Karlis Veilands 20 Jun 2017