Hello @Nguyễn Nhị ,
Thanks for your feedback,
I advice you to use CubeMX which is a free tool that allows a very easy configuration of STM32 microcontrollers and microprocessors even for beginners, it also generates the corresponding initialization C code.
Please check this tutorial https://www.youtube.com/watch?v=szMGedsp9jc
I hope this help !
If your issue is solved, please close this post by clicking the "Select as Best" button. This will help other members of the community find this response more quickly :)
Sara.
In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.