We used openOCD for J-Link probe previously. Now, we have switched to official J-Link tool for uploading and debugging. Please re-test with the latest upstream version of dev/platform => ST STM32 — PlatformIO latest documentation
P.S: Please remove any extra scripts and settings from platformio.ini
. You need just 2 lines J-LINK — PlatformIO latest documentation
[env:myenv]
platform = ...
board = ...
debug_tool = jlink
upload_protocol = jlink