Hi @UsamaShafiq,
The error seems to be a missing driver in your project, you could try adding it manually from another project, or looking for it in the SDK (SDKPackages\SDK_2_2_3_FRDM-KW41Z\devices\MKW41Z4\drivers\fsl_port.h)
It seems like you are creating a project from scratch. Our recommendation is to always base projects off of existing examples.
Under the "Quickstart panel", please select "Import SDK example(s)…", followed by selecting "frdmkw41z" from the SDK list, please make sure it is the latest SDK and the board's package. After this, search for the "led_output" project under the gpio folder and select "Finish".
Julin_AragnM_0-1693502219018.png
Julin_AragnM_1-1693502219022.png
Julin_AragnM_2-1693502219027.png
This project is supported by the set, clear, and toggle write-only registers for each port output data register. The example takes turns to shine the LED.
After importing and building the project, changing the port and pin to PB0-2 can be made manually or with Config Tools.
Best regards,
Julián.