8 years, 11 months ago.

Can we use the mbed functions for the STM32L0 microcontroller only (Not the nucleo, just the µC)

Hello,

I actually use the mbed functions in the online compiler and i would like to know if these function can be used to program the µC only. Indeed we program the Nucleo to learn and see the different possibilities of this microcontroller and if we go on a new design with this microcontroller we need to program the single micro. So it is possible to use these functions with the microcontroller even if it's just the component and not the nucleo board ? You can find a screen of the different function.

Thanks, Regards, Couturier Vincent.

/media/uploads/vincent91/mbed.png

1 Answer

8 years, 11 months ago.

The mbed code and libs will work on the target device/micro that the online compiler supports. You will need a programmer such as the one integrated on the nucleo board to flash the bin code from the online compiler into the target device. You will also need some Serial-to-USB converter when you want to use the host printf functions. This interface function is also provided by the programmer (ST link) part of the nucleo. The serial data will be available on a serial port of the target device identified by USB_TX/USB_RX. The target device on your own hardware will need an xtal for the RTC functions to work. A battery backup is probably also needed. Any other hardware you want to use such as the LEDs should obviously be copied on your own hardware.

Accepted Answer

Hello, Thanks for your answer. So if I have a STM32L0 with a ST-link i can flash the bin code from the online compiler into the micro ? Regards, Couturier Vincent

posted by COUTURIER Vincent 13 May 2015

Correct, you can use the stlink part of a nucleo to flash a target device on your own hardware. You need to set a few jumpers on the nucleo to make this work and connect some wires for the SWD port. Se the nucleo manual for instructions. You could also cut off the stlink part from nucleo and use it as separate programmer. Another option is to buy a standalone stlink board from STM or one of the clones or get a general purpose programmer like the Segger jlink. Note that the stlink programmers can only be used with ST devices whereas the Segger can also flash and debug devices from other vendors. The Segger on the other hand does not support mbed drag and drop programming but needs its own special software.

posted by Wim Huiskamp 15 May 2015