Hello again @AVyas.1 ,
Well, I thought there is a bit to be configured... I guess, the easiest way is to enable RDP protections. However, I found that this can be done by modifying the firmware on the microcontroller.
Please take a look at this package that may help you
X-CUBE-SBSFU - Secure boot & secure firmware update software expansion for STM32Cube - STMicroelectronics
Firas
To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL