Modification of mbed-src library only for STM32F030F4, very cheap microcontroller in 20-Pin TSSOP package, with 16Kbytes of Flash and 4Kbytes of Ram. **Target for online compilator must be Nucleo 32F030R8.**

Dependents:   STM32F031_blink_LED_2

You are viewing an older revision! See the latest version

Homepage

STM32F030F4 pinout and pin functions supported in mbed library.

/media/uploads/mega64/mbedf4.jpg

other pins:

1. BOOT0 - GND

4. NRST - STLINK on Nucleo (CN4 pin 5)

5. VDDA - +3.3V

15. VSS - GND

16. VDD - +3.3V

19. SWDIO - STLINK on Nucleo (CN4 pin 4)

20. SWCLK - STLINK on Nucleo (CN4 pin 2)

GND -- STLINK on Nucleo (CN4 pin 3)

Remove jumpers CN2 on Nucleo when programming STM32F030F4 flash or debug.

/media/uploads/mega64/f4_nucleo.jpg

tested:

  • Serial (PA_2, PA_3), (PA_9,PA_10)
  • PwmOut PA_4, PA_6, PA_7, PB_1
  • AnalogIn PA_0, PA_1, PA_2, PA_3, PA_4, PA_5, PA_6, PA_7, PB_1
  • HSE with xtal 8Mhz + 2*22pF (auto detect ok)
  • i2c (PA_10, PA_9)

untested yet:

  • spi

issues

  • baud rate not exact (because 3% error of HSI) (Frame errors on PC side). But HSE with 8Mhz xtal does not help. Usart clock is HSI regardless use HSE?

Additional information (and inspiration for this modidication):

http://developer.mbed.org/forum/electronics/topic/5184/

http://developer.mbed.org/questions/4643/Does-mbed-support-STM32F030F4/

http://developer.mbed.org/questions/2927/mbed-on-other-packages-stm32f030f4-TSSOP/

http://developer.mbed.org/questions/4139/Programming-STM32F030F4-with-Nucleo-F030/


All wikipages