Using over 128K or 256K FLASH on STM32G0B1KC results in "failed to download sector[0]"
I've been fighting this really frustrating issue and have tried everything that can humanly be found on the internet (including STM32CubeIDE downgrades and upgrades on multiple machines).
Simply put, whenever the program size is 64 or more sectors, flashing it results in the following error message and incorrect behavior:
Erasing internal memory sectors [0 64]
Download in Progress:
Error: failed to download Segment[0]
Error: failed to download the File
Erasing internal memory sectors [0 64]
Download in Progress:
Error: failed to download Segment[0]
Error: failed to download the FileI found it interesting that dat sheet for this device family (https://www.st.com/resource/en/reference_manual/rm0444-stm32g0x1-advanced-armbased-32bit-mcus-stmicroelectronics.pdf) indicates that the Flash bank is only 64 pages of 2KB memory (128K) with the 256K variant being a dual-bank device. Can someone help me out here because 128K is absolutely not enough on a 256K micro.
