stm32f030f4p6

Anything not related to STM32
Post Reply
ag123
Posts: 467
Joined: Thu Dec 19, 2019 5:30 am
Answers: 1

stm32f030f4p6

Post by ag123 »

there are quite a few of these '$1' boards around on Aliexpress
https://www.aliexpress.com/wholesale?ca ... 32f030f4p6
with 4k sram and 16k flash the specs is hardly impressive and 4k sram is squeezy
don't think libmaple nor official core would fit in this.
but interestingly the boards are fitted with a HSE external crystal
the slightly good thing is the existing compiler can be used to build 'sketches' on this little board
has anyone meddled with them?

mrburnette
Posts: 187
Joined: Thu Dec 19, 2019 1:23 am

Re: stm32f030f4p6

Post by mrburnette »

I would caution newbies against going this direction UNLESS they know for certain that a project would benefit from the constrained environment(not just SRAM and Flash): STM32F030F4P6
Cortex M0-M7.jpg
Cortex M0-M7.jpg (75.48 KiB) Viewed 369 times

.rpv
Posts: 24
Joined: Wed Dec 18, 2019 10:19 pm

Re: stm32f030f4p6

Post by .rpv »

Yes, I like the F030 series, the ST core supports the F030F4 already, but you can easily add support for other MCU, I think that support for the F030C8 will be added on the next core release and as you already saw, the MCU's are cheap on Ali, the only downside it's the flash (mostly on the F030F4-16kb and F030K6-32kb), the ST libraries for peripherals (i2c, spi, serial, ...) are quite big: an i2c rtc + led segmented library + serial can easily take > 14kb, so depending on what peripherals are you using the F030F4 may feel like a 512b-1kb arduino uno and the F030K6 like an 1kb-2kb arduino uno. For the F030C8 (64kb) isn't really that much of a problem.

ag123
Posts: 467
Joined: Thu Dec 19, 2019 5:30 am
Answers: 1

Re: stm32f030f4p6

Post by ag123 »

mrburnette wrote:
Sun Sep 06, 2020 2:12 pm
I would caution newbies against going this direction UNLESS they know for certain that a project would benefit from the constrained environment(not just SRAM and Flash): STM32F030F4P6
Cortex M0-M7.jpg
thanks, it is quite interesting to learn that M0 is a von Neumann architecture, hence it is possibly slower than M3
and the multiply divide instructions is a bummer

i'm actually taking a look between stm8s vs the 'smaller' stm32f0, in particular where usb isn't required (but literally stm32f070 has usb ! but memory and flash is less than stm32f103), stm8s103 (1k sram, 4k flash) is literally even more constrained compared to stm32f030
stm8s is very cheap
going for like $2 for 10 pieces
https://www.aliexpress.com/item/1005001341501051.html
stm32f030 is slightly pricier per piece. The marginal benefit here is more sram 4k and 16k flash, and that the current compiler can built for stm32f030.
of course being a 32 bit mcu may have some benefit as well

ag123
Posts: 467
Joined: Thu Dec 19, 2019 5:30 am
Answers: 1

Re: stm32f030f4p6

Post by ag123 »

.rpv wrote:
Sun Sep 06, 2020 8:50 pm
Yes, I like the F030 series, the ST core supports the F030F4 already, but you can easily add support for other MCU, I think that support for the F030C8 will be added on the next core release and as you already saw, the MCU's are cheap on Ali, the only downside it's the flash (mostly on the F030F4-16kb and F030K6-32kb), the ST libraries for peripherals (i2c, spi, serial, ...) are quite big: an i2c rtc + led segmented library + serial can easily take > 14kb, so depending on what peripherals are you using the F030F4 may feel like a 512b-1kb arduino uno and the F030K6 like an 1kb-2kb arduino uno. For the F030C8 (64kb) isn't really that much of a problem.
thanks !

for 'simple' apps e.g. simply read a sensor and driving a simple motor, even stm32f103 would seem like an overkill. this makes the 18 pin stm32f030f4 rather attractive due to its low costs etc. but of course 4k sram and 16k flash still feel a little squeezy but i think making a 'simple' program would fit in it and i can still use c/c++ to some extent, no need to resort to assembly. stm8s103 is worse at 1k sram and 8k flash, but that is a 8 bit mcu.
an attractive thing about stm32f0 is that i'd not need a separate compiler to work with it, and the tools are all the same. but like ray mentioned, there are some downsides like the multiply and divide limitations.

.rpv
Posts: 24
Joined: Wed Dec 18, 2019 10:19 pm

Re: stm32f030f4p6

Post by .rpv »

ag123 wrote:
Mon Sep 07, 2020 8:33 am
.rpv wrote:
Sun Sep 06, 2020 8:50 pm
Yes, I like the F030 series, the ST core supports the F030F4 already, but you can easily add support for other MCU, I think that support for the F030C8 will be added on the next core release and as you already saw, the MCU's are cheap on Ali, the only downside it's the flash (mostly on the F030F4-16kb and F030K6-32kb), the ST libraries for peripherals (i2c, spi, serial, ...) are quite big: an i2c rtc + led segmented library + serial can easily take > 14kb, so depending on what peripherals are you using the F030F4 may feel like a 512b-1kb arduino uno and the F030K6 like an 1kb-2kb arduino uno. For the F030C8 (64kb) isn't really that much of a problem.
thanks !

for 'simple' apps e.g. simply read a sensor and driving a simple motor, even stm32f103 would seem like an overkill. this makes the 18 pin stm32f030f4 rather attractive due to its low costs etc. but of course 4k sram and 16k flash still feel a little squeezy but i think making a 'simple' program would fit in it and i can still use c/c++ to some extent, no need to resort to assembly. stm8s103 is worse at 1k sram and 8k flash, but that is a 8 bit mcu.
an attractive thing about stm32f0 is that i'd not need a separate compiler to work with it, and the tools are all the same. but like ray mentioned, there are some downsides like the multiply and divide limitations.
I fully agree, you not always need a bluepill or other beast. What IDE/tool will you use to program it?, I got those STM8 and I used this core for arduino:

https://github.com/tenbaht/sduino

works fine but only supports C, not C++, so most libraries had to be rewritten.

ag123
Posts: 467
Joined: Thu Dec 19, 2019 5:30 am
Answers: 1

Re: stm32f030f4p6

Post by ag123 »

@.rpv i'm basically using eclipse and the gcc toolchain. in fact, i used a makefile. Hence i can literally go 'ide free' i can do partially 'arduino-ish' by porting the pieces i need for the 'smaller' chip

dannyf
Posts: 23
Joined: Sat Jul 04, 2020 7:46 pm

Re: stm32f030f4p6

Post by dannyf »

I use Keil and an old version of CoIDE.

Post Reply

Return to “Off topic”