Add weak function to check flash configuration. On stm32g4: single bank configuration not supported when dual bank capable. Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>