踩坑实录#4: 单片机系列

关于单片机的坑。

踩坑实录#4: 单片机系列
Photo by Vishnu Mohanan / Unsplash

Pt. 1: Stm32H743VIT6的CubeMX时钟配置

如果你不巧的买了这个芯片,而且用了CubeMX来进行配置,那么你可能会遇到一旦时钟配置,单片机就寄了:Stlink连不上,报错Cannot Access Memory等等。大概在这一行:

main.c
main.c

造成这一现象的原因,似乎是System Core->RCC里面的Product Revision被配置为了rev. Y,将其修正为rev. V即可。

参见:

Did CubeMX 6.7 break H7 Clock Configuration?
Hi, I have just updated to CubeMx 6.7 and now my stm32H755 nucleo board shows error while setting to 480MHz. I’m pretty sure that this board can run this fast before. Did the new CubeMx break clock config feature for H7 devices? There is also this crazy aliasing issue with the UI refresh while…