flash/nor/stm32xx: fix segfault accessing Cortex-M part number