Determine flash page size at run-time
STM32G4 devices are split into 2 flash categories per the datasheet: Category 2 devices (STM32G43x/G44x) which have only single-bank capable flash with a capacity up to 128kB and Category 3 devices which are dual-bank capable and have up to 512kB of ...