Platform IO with STM32, cannot program

I’m using Platform IO to try and program an STM32 with the ELRS project. The board I’m using for now is a nucleo L432, and I can program it with STM cube just fine, so I’m confident the hardware is fine.

What I can’t do is get platformIO to program the STM32 with the project. When I set the task up it compiles, and when it starts to program it spits out

Cmd: "C:\Users\username\.platformio\packages\tool-stm32duino\stlink\ST-LINK_CLI.exe" -c SWD SWCLK=8 -P bootloader/sx1280_rx_nano_pcb_v0.5_bootloader.bin 0x8000000
"C:\Users\username\.platformio\packages\tool-stm32duino\stlink\ST-LINK_CLI.exe" -c SWD SWCLK=8 -P bootloader/sx1280_rx_nano_pcb_v0.5_bootloader.bin 0x8000000STM32 ST-LINK CLI v2.1.0
STM32 ST-LINK Command Line Interface

ST-LINK SN : 066DFF515152827187155837
ST-LINK Firmware version : V2J45M31
Connected via SWD.
SWD Frequency = 480K.
Connection mode : Normal.
Unable to connect to the MCU device!
*** Error 2
*** [upload] Error 2

Looking at this, it’s trying to use ST-LINK_CLI.exe to program the device. Nothing I do using that .exe in a terminal will establish a connection to the STM32, nor any combination of resetting the STM. But I can readily program it in IDE cube, or using what I think is the newer STM_Programmer_CLI.exe.
I’m not really sure where to go from here, do I need to fix something in the software to work, or is there something else I need to change?