2014-10-30 05:31 AM
Hi.
How can I read device ID with software?Is there any register that stores this value?I would like to detect device on which program is running.Or at least size of flash.I'm using stm32f4 devices.2014-10-30 06:00 AM
Hi
''How can I read device ID with software? Is there any register that stores this value?'' There are not any ST peripheral registers that say which device it is. However, I have found in the reference manual - in the debug support, there is register : ''DBGMCU_IDCODE Address: 0xE004 2000'' (for a STM32F405 at least).2014-10-30 06:07 AM
unsigned short flashkb = *((unsigned short *)0x1FFF7A22);