如果遇到下面的情况可以试一下以下方法:
在C/C++选项卡里,把STM3210X_HD从prepocessor symbol define 里面删掉
转载至:https://blog.csdn.net/liyuru4/article/details/53455002