2021-05-20 01:34 AM
Folks,
Is it possible to ascertain which family member is running at run time?
I'm doing a bootloader for an L476 for which there are two variants. The 512k version and 1M version. Is it possible at run time to ascertain which one is running?
Either that ir at least ascertain how much flash memory there is available at boot?
Thanks!
2021-05-20 01:59 AM
You can read DBGMCU->IDCODE and the flashsize data register.
2021-05-20 02:47 AM
Excellent, many thanks. :)