cancel
Showing results for 
Search instead for 
Did you mean: 

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

DiBosco
Senior

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!

2 REPLIES 2
Uwe Bonnes
Principal III

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

DiBosco
Senior

Excellent, many thanks. :)