Dual bank issue on stm32G0B1RCT6
Recently I went from a stm32G0B1RET6 (512kB flash in dual bank) to a stm32G0B1RCT6 (256kB flash in dual bank) and I came across a strange behaviour (at least to me). The Firmware I work on is approximately 180kB in size, which means it can be stored in one flash bank of the previously used stm32G0B1RET6 but not on the stm32G0B1RCT6. Anyway I went on to test my FW on the RCT6 only to find out the FW was getting hardfaults that seemed to happen anytime the execution address was situated in the Bank B and something (maybe an interrupt) was called from bank A. The issues was solved by modifying the option bytes of the mcu to switch back to a single bank. Also when the mcu stalled in hardfault for such a reason it was not possible to debug it anymore and I had to mass erase the flash with cube programmer
So my question is : is there any reasons for the dual bank flash to cause such problems ?