Skip to main content
DiBosco
Senior
May 20, 2021
Question

Identifying which family member a program is running at run time?

  • May 20, 2021
  • 2 replies
  • 514 views

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!

This topic has been closed for replies.

2 replies

Uwe Bonnes
Chief
May 20, 2021

You can read DBGMCU->IDCODE and the flashsize data register.

DiBosco
DiBoscoAuthor
Senior
May 20, 2021

Excellent, many thanks. :)