5 years, 7 months ago.

Can I use a F103RC/D/E with mbed?

Will a code that's working on a Nucleo F103RB work on a F103RC, RD or RE processor using the web compiler? I don't mind if I am limited to the features of the Nucleo board (F103RB).

I plan to use mbed to have a working solution as fast as possible, but I would like to be able to upgrade the code later, even if I have to switch to a local compiler.

Question relating to:

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

3 Answers

5 years, 7 months ago.

Using mbed for variants of a supported device has been asked before eg http://developer.mbed.org/questions/4643/Does-mbed-support-STM32F030F4/

If the part varies only in size of flash and/or ram, then the solution as provided in that link is to import mbed-src instead of mbed library, and adjust the flash & ram sizes to suit the new device. If your production hardware uses different pins for ease of layout, eg LEDs, buttons, then you can also modify the PinNames.h file accordingly.

Accepted Answer

For this device more changes are necessary, e.g. the number of interrupt vectors varies depending on the density: low, medium, high and XL.

posted by Olaf Hagendorf 02 Jan 2015
5 years, 7 months ago.

With the offline tools it is not a problem to add F103RC/D/E. You have to change linker script, startup files and some mbed specific issues. When you know what to do a matter of perhaps half an hour, when you don't know what to do a liitle bit longer ;-)

5 years, 7 months ago.

Of course you can do that. But remember that RB is a product with medium density while RC/D/E are large density ones. You may change the startup script and the derivative setting of your compiler, then give it a try. One last thing, find out the differences of their pin configuration, it really helps.