ST Nucleo F302R8 wont work

Hello, so i ordered a ST Nucleo F302R8 board and it doesnt seem to be working, after some time of choosing the right setup so i dont get [stm32f3x.cpu] halted due to debug-request, current mode: Thread error, everything seems to be uploading fine, the MCU even gets recognized in STM32CubeProgrammer but the board doesnt seem to be reacting to the code at all (besides the LED next to the USB blinking during upload)

platformio.ini:

[env:nucleo_f302r8]
platform = ststm32
board = nucleo_f302r8
framework = cmsis
upload_protocol = custom
upload_command = "C:\\Program Files\\STMicroelectronics\\STM32CubeProgrammer\\bin\\STM32_Programmer_CLI.exe" -c port=SWD -w $BUILD_DIR/firmware.bin 0x08000000 -rst

The code to make LED blink:

#include "stm32f3xx.h"

#define LED_PIN 5 // PA5 (onboard LD2)

void delay(volatile uint32_t t)
{
    while (t--)
        __NOP(); // crude delay
}

int main(void)
{
    // 1️⃣ Enable GPIOA clock
    RCC->AHBENR |= RCC_AHBENR_GPIOAEN;
    // 2️⃣ Set PA5 as output
    GPIOA->MODER &= ~(0b11 << (LED_PIN * 2));
    GPIOA->MODER |= (0b01 << (LED_PIN * 2));
    while (1)
    {
        // 3️⃣ Toggle LED
        GPIOA->ODR ^= (1 << LED_PIN);
        // 4️⃣ Delay
        delay(500000);
    }
}

Are you sure? If a certain solder bridge is not set, it’s at PB13 instead.

#include "stm32f3xx.h"

#define LED_PIN 13 // PB13 (onboard LD2)

void delay(volatile uint32_t t)
{
    while (t--)
        __NOP(); // crude delay
}

int main(void)
{
    // 1️⃣ Enable GPIOB clock
    RCC->AHBENR |= RCC_AHBENR_GPIOBEN;
    // 2️⃣ Set PB13 as output
    GPIOB->MODER &= ~(0b11 << (LED_PIN * 2));
    GPIOB->MODER |= (0b01 << (LED_PIN * 2));
    while (1)
    {
        // 3️⃣ Toggle LED
        GPIOB->ODR ^= (1 << LED_PIN);
        // 4️⃣ Delay
        delay(500000);
    }
}

Yeah im stupid, got too caught up on finding the right IDE and making it work that it didnt even cross my mind that a basic generated code could possibly not work, thank you