Re:Debugging bare-metal STM32 from the seventh level of hell
by jhallenworld on Monday August 08, 2022 @02:23AM
(#32382847)
But balanced against basically unlimited flash size. Many of my projects end up having an external SPI-flash for one reason or another anyway.
Another similar chip is the i.MX rt1020 from NXP (except Cortex-M7 and way more expensive). The one gotcha was that there was only one QSPI-flash controller even though there were two ports. It meant that the extra port (which we assumed would be available during architecture) was not fully usable without interfering with the firmware.
Re:Debugging bare-metal STM32 from the seventh level of hell
by the__alchemist on Monday August 08, 2022 @03:23AM
(#32383100)
You can still get that with chips that have onboard flash, via QSPI or OctoSPI.
Re:Debugging bare-metal STM32 from the seventh level of hell
by dmitrygr on Monday August 08, 2022 @02:29AM
(#32382869)
> Many of my projects end up having an external SPI-flash for one reason or another anyway.
for what? What sort of possible thing would you need to do on a c-m0 that needs more than 128K of CODE!?
Re:Debugging bare-metal STM32 from the seventh level of hell
by jhallenworld on Monday August 08, 2022 @02:40AM
(#32382927)
Not so much for code, but lots of use for persistent data (logs, databases, etc.). Only a part of it would be used for XIP. Also with more flash space it's easy to have multiple banks for safe firmware update and the like.
Re:Debugging bare-metal STM32 from the seventh level of hell
by dmitrygr on Monday August 08, 2022 @03:01PM
(#32389540)
> logs, databases
in NOR flash???
:cringe:
Re:Debugging bare-metal STM32 from the seventh level of hell
by jhallenworld on Wednesday August 10, 2022 @02:41PM
(#32416611)
NOR is more durable than NAND (but smaller, more expensive per bit), but yes you have to be careful with logs. In most recent case, it was in the 10s of small records per day.
Re:Debugging bare-metal STM32 from the seventh level of hell
by kragen on Monday August 08, 2022 @04:13AM
(#32383363)
Wait, wasn't there some guy who got an entire Linux system booting on a microcontroller that's smaller than a Cortex-M0? https://dmitry.gr/?r=05.Projects&proj=07.%20Linux%20on%208bi...
Re:Debugging bare-metal STM32 from the seventh level of hell
by dmitrygr on Monday August 08, 2022 @12:39PM
(#32387779)
Yup, I did. that’s why I ask
Re:Debugging bare-metal STM32 from the seventh level of hell
by HeyLaughingBoy on Monday August 08, 2022 @12:08PM
(#32387314)
The libraries you pull in can be big. Add, e.g., LWIP for internet, USB filesystem management (data logging and USB firmware update), code to properly manage OTA or Ethernet updates, text strings, especially in multiple languages, etc.
What seems like a huge amount of Flash disappears quickly.
it isn't
An extra chip means higher cost to produce & assemble board, larger board size, more pins wasted on this nonsense, most fast-edge signals to route, more passives, extra risk to handle for one extra chip being out of stock, and it is much easier to extract firmware than even from a "protected" stm32
Also wasting RAM (and power for it) on code, or random (between high and very high) latency of XIP from SPI flash