Some drivers for JLink must be installed to flash the board using platformio on windows and linux. See: https://docs.platformio.org/en/latest/plus/debug-tools/jlink.html#drivers Follow the instructions described for your os.