AnsweredAssumed Answered

STM32L072 vs STM32L082 detection

Question asked by Thomas Roell on Dec 13, 2017
Latest reply on Dec 14, 2017 by Uwe Bonnes

This one sounds simple. Essentially STM32L082 has a AES peripheral over STM32L072. I simply want to have a way to find out whether it's there or not.


Now RCC->AHBENR does not help. I can set the corresponding bit ... and clear it. RCC->AHBSMENR same thing. Actually there it's set per default. But an access on STM32L072 will trigger a hardfault (I am assuming that from my debugger telling me it cannot access the memory location when I write to it). While that might be a possible detection way, isn't there somethimg simple, like a feature bit somewhere ...