7 years, 8 months ago.

Library compile options

Are libraries offered in different compile configurations? For example, can I get an mbed library for the stm NUCLEO_F302 (or any nucleo) with floating point support?

2 Answers

7 years, 5 months ago.

Link to F302R8 target in answer is broken ("definition of the F302R8 target") clicking highlighted link results in display of a 404 (page not found) error page

7 years, 8 months ago.

This is already done. F.e. here is the definition of the F302R8 target. As you can see it has M4F as core (M4 + FPU). This is expanded to the macro __FPU_PRESENT, which then can load FPU specific code (search in mbed-os folder for 'FPU_PRESENT' and you'll find examples).

Yes. Thanks Jan. I imported the easy rtos example to your web based ide and it built fine. I then exported it to my local computer to build with STM open ide. It did not link because of floating point issues. I didn't see how to change options for this in your online ide.

I think the best thing for me to do is to build all source from scratch locally. I think the best way to do this is to just clone the git source locally and choose what to build. Do you agree? I will be playing a lot with optimization and different targets.

THanks for your time, Jan. I appreciate it.

Mark.

posted by Mark McDougald 05 Sep 2016

Hi Mark, to build locally just use mbed CLI, it'll bring in all dependencies and select the right features based on your target (including FPU). From there you can build with GCC, ARMCC or IAR toolchain.

posted by Jan Jongboom 06 Sep 2016