2017-12-19 11:59 AM
Hi,
I am developing an application that will be targetted at a number of STM32F/STM32L hardware platforms and wondered if it was possible to determine the CPU type at run-time. CPUID is useful to determine ARM core details etc. and thought there would be an equivalent register for the STM stuff.
Regards
FarmerJo
#determine-cpu-type #stm32Solved! Go to Solution.
2017-12-19 04:12 PM
Thank you Andrew for that. I even searched the TRM for 'device ID' and must have missed it somehow.
Anyway this is just what I am looking for.
Regards
FarmerJo
2017-12-19 12:04 PM
2017-12-19 01:51 PM
Clive One wrote:
Like DEV_ID in DBGMCU_IDCODE?
Should be good - but doesn't always work:
2017-12-19 04:12 PM
Thank you Andrew for that. I even searched the TRM for 'device ID' and must have missed it somehow.
Anyway this is just what I am looking for.
Regards
FarmerJo