Identifying which family member a program is running at run time?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-05-20 1: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!
Labels:
- Labels:
-
STM32L4 Series
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-05-20 1:59 AM
You can read DBGMCU->IDCODE and the flashsize data register.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-05-20 2:47 AM
Excellent, many thanks. :)
