Program Execution Issue After Enabling RDP Level 1 on STM32H735
Hello everyone,
I am experiencing an issue with my stm32H735 microcontroller after enabling RDP level 1. The program that was working perfectly (blinking led) under RDP level 0 no longer executes after I changed the protection level to 1.
What I have Tried: I activated RDP level 1 using 3 different methods, and the issue remains the same each time:
1 - using STM32_Programmer_CLI with the following command:
STM32_Programmer_CLI.exe -c port=COM7 br=115200 -rdu
STM32_Programmer_CLI.exe -c port=COM7 br=115200 -e all -w test.hex -ob RDP=0xBB -v
2 - Using the STM32CubeProgrammer GUI to set RDP level 1 after programming.
3 - through the program by adding this code:
FLASH_OBProgramInitTypeDef RDP_init;
HAL_FLASH_OB_Unlock();
HAL_FLASH_Unlock();
RDP_init.OptionType = OPTIONBYTE_RDP;
RDP_init.RDPLevel = OB_RDP_LEVEL_1;
HAL_FLASHEx_OBProgram(&RDP_init);
HAL_FLASH_OB_Launch();
In all cases, the programming and verification are succesful, and RDP level 1 is activated without any errors. However, after enabling RDP level 1, the program does not execute anymore. The microcontrollers seems to be stuck or not running the application code.
Questions:
- Has anyone encountered similar issues after enabling RDP level 1?
- Are there specific considerations or configurations needed when moving from RDP level 0 to level 1?
Any guidance or suggestions would be greatly appreciated. Thank you in advance!
Best Regards,
Saif.
