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

ST Nucleo F302R8 with mbed on EmBlocks

15 Oct 2014

Here attached is my project so anybody can use and debug mbed with the good EmBlocks IDE.

(updated with the latest ARM GCC Toolchain included) /media/uploads/PakNucleo/nucleo_f302r8_mbed.rar

However, in debug mode, if the Uart is opened (like in the Nucleo_printf example) there is a ROM overflow.

== Nucleo_f302R8, Debug ===
bin\Debug\Nucleo_f302R8.elf section `.text' will not fit in region `ROM'
region `ROM' overflowed by 3312 bytes
== Build finished: 2 errors, 0 warnings (0 minutes, 2 seconds) ===

In Release mode is working properly.

Don't know how demanding is mbed in memory yet.

Enjoy

02 Oct 2014

Does it use GCC ? Can you share here the setup (linker and compiler flags)? Did you select newlib library and also floating support?

Thanks for sharing.

14 Oct 2014

Martin Kojtal wrote:

Does it use GCC ? Can you share here the setup (linker and compiler flags)? Did you select newlib library and also floating support?

Thanks for sharing.

Hi Martin.

Yes, it uses GCC and floating point.

You can find more info about the issue here: http://developer.mbed.org/forum/platform-32-ST-Nucleo-L152RE-community/topic/4802/?page=1#comment-25586

14 Oct 2014

I don't know why but your project is pulling in 21K of cp demangle functions on the "verbose_terminate_handlerEv".

I think it has something to do with throw-non-throw mechanisms which are pulled in by the coding style.

.text._ZN9gnu_cxx27verbose_terminate_handlerEv 0x08002694 0x98 e:/_emblock/svn/src/build/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m\libstdc++_s.a(vterminate.o) 0x08002694 gnu_cxx::verbose_terminate_handler() .text 0x0800272c 0x5780 e:/_emblock/svn/src/build/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m\libstdc++_s.a(cp-demangle.o) 0x08007dcc cxa_demangle 0x08007e90 gcclibcxx_demangle_callback

15 Oct 2014

New version of the project uploaded due to this thread and the help of EmBlocks admin: http://developer.mbed.org/forum/platform-32-ST-Nucleo-L152RE-community/topic/4802/?page=2#comment-25596

Updated project: /media/uploads/PakNucleo/nucleo_f302r8_mbed.rar