ChPr wrote: Sun Jul 14, 2024 9:45 am
ag123 wrote: Sun Jul 14, 2024 6:23 am ...This feature is not there in the stm32f103. But that stm32f4 has a different RTC, and different structure for the registers.
I've seen that there are STM32F411-based boards
https://fr.aliexpress.com/item/10050061 ... ry_from%3A. They seem to be pin-to-pin compatible with Blue Pill. They can also be programmed with an ST Link V2. Are there any incompatibilities?
Sincerely.
Pierre.
the RTC is at least different (check the 2 relevant ref manuals), then between stm32f4xx (e.g. f401/f411) vs stm32f103 there are many more differences.
e.g. stm32f4xx has that 'ART accelerator' (on chip cache lines that is used in modern cpu L1 or L2 cache) and FPU. single precision floating point math (fpu vs calc using arm codes) is like 10-100x faster than stm32f103 depending on what is calculated. overall stm32f4xx is (much, qualifier: if your codes can be 'ART accelerated' i.e. is in cache, the wait states drop from like assume 3-5 wait states to *zero* wait states in cache) faster for the same hz
and stm32f4xx tend to bundle more sram and flash, something which i consider important esp for mcus.
but that actually some benchmarks is needed to put things in perspective
ILI9341 SPI LCD library for STM32duino
https://github.com/ag88/Adafruit_ILI934 ... nd-results
Adafruit benchmark
stm32f401ccu libmaple 1123052 u seconds
stm32f103c libmaple 1632651 u secs
about 30% faster, for the rest of stuff IO is the bottleneck and it won't be faster either way. (e.g. if you run SPI at a particular Mhz, then that'd be the speed)
the excellence performance in libmaple core is (unfortunately) due to DMA
it (SPI with DMA) gives this type of performance
https://www.youtube.com/watch?v=7Ey1U36YtY0
i think this is partly what inspire many to play with stm32(duino)
the videos used to go this way:
https://www.youtube.com/watch?v=5mDnKBNl9sY
for 'newbies' I'd tend to suggest simply go with stm32f401/f411 boards
- more sram (vs 20k in the stm32f103c8 bluepills)
- more flash (most f4xx tend to have more than 64k, some are generous as to give 512k e.g. ceu6)
- fast ART accelerator
- fast fpu
- better hardware in nearly every aspect vs stm32f103
it tend to give that 'no nonsense' experience, big fat clumsy binaries 'just works',
on 'small squeezy' mcus e.g. stm32f030f4p6 4k sram 16k flash, g030f6p6 8k sram 32k flash, c031f6p6 12k sram 32k flash, you fight for every byte of the binary size, and often the lack of sram in small squeezy mcus is neglected to be mentioned
(aliX vendors sell them like 'candies' often going for < $1 for every piece of raw sop20 mcu excluding shipping,
a trouble is that sop20 e.g. stm32g030f6p6
https://www.st.com/resource/en/datashee ... g030f6.pdf
https://www.aliexpress.com/w/wholesale- ... 0f6p6.html
is often 'too cute' to ignore lol
the thinking goes just get spo20 'adapter boards' and solder them and you have a 'development board'
https://www.aliexpress.com/w/wholesale- ... apter.html
that has its own thread here
viewtopic.php?t=1848
)
with enough sram and flash, one can even run Adafruit's circuit python or Micropython rather than code in straight c/c++