How can I distinguish between STM32F1x medium density devices?
We replaced in our product the STM32F102 MCU with STM32F103 without PCB modification. The 103 contains more RAM and can run at higher frequency and we would like to use the extra resources but there is a criteria. We should use one piece of software for both MCU. If the software can detect the MCU type, based on this information for example can set up higher CPU frequency, use extra timer etc.
According to the documentation the DBGMCU_IDCODE and DBGMCU_CR registers are not accessable (only in debug mode) for the user software. Is there a safe way for the software to detect which is the MCU where the software runs?
