Code not executing on stm32f3 discovery with arduino framework

Big oof. Same issue as in Stm32 Nucleo Arduino Pin Definitions Wrong? and Code appears to upload but does not run on STM32 Nucleo L476RG · Issue #537 · platformio/platform-ststm32 · GitHub.

Please add

board_upload.maximum_ram_size = 40960

to the platformio.ini and retry.