1 Reply Latest reply on Jan 22, 2019 11:33 PM by GeonaP_26

    Is there a way to identify the MCU at run time?


      We have boards that mount either 9BF564L or 9BF566L.

      Our custom bootloader checks for application code integrity computing CRC over the application flash area and so he needs to know how big is this area.


      We can of course having different bootloaders for different MCUs but it would be better if we can do this with just one bootloader that's able to recognize the MCU where it's running (or, in equivalent way, that's able to detect how much flash memory is available on chip).


      Any idea?


      ARM MCUs have plenty of registers in System Control area (0xE000_0000..0xE00F_FFFF) for checking cpu/system type/revision/features/etc but I can't find out anything just simple or useful like a "manufacturer device id" or "flash size" or something like that...