How to compile and upload a program to ST Nucleo F401RE?

In the ast few hours I’ve been trying to figure out how to compile and upload a simple program and each time a get different errors.
I’m trying to play with the framework and ports with no success.

I’m using linux and ST Nucleo F401RE, which conected with usb to the pc.
It feels like I’m missing something…

Hard to say what’s going on with no platformio.ini or given error message. Does it fail in compiling? Upload?

Did you install the udev rules (99-platformio-udev.rules — PlatformIO v6.1 documentation) and reboot?