Set the RAM and flash size based on the CPU configuration for STM32W