User Activity

Hello, Is there any tip or reference code to implement WRP? I need to prevent changing original codes and adding any other codes from malicious third parties.I use stm32f303k8 and CubeIDE.I appreciate any help you can provide.
I set PB7 for the output pin to light a LED when PB7 is HIGH. However, after the function "HAL_SPI_Receive_IT()." is called, my LED doesn't light or turns off even if setting PB7 as output HIGH. I use CubeMX ver. 6.6.1-RC2 and CubeIDE ver. 1.10.1. ...