Hello Alessandro,
You can simply call function __boot(); inside your code. This is first code which is executed directly after MCU reset.
Function __boot(); is located in file boot.c
Function __boot(); is defined as start code inside vectors.c file.
I hope this helps,
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------