这个包我无法通过编译
Rebuild target 'USBD_VCOM'
assembling startup_M451Series.s...
creating preprocessor file for IP_Initial_Fun.c...
compiling IP_Initial_Fun.c...
..\Library\StdDriver\inc\sys.h(916): error: #77-D: this declaration has no storage class or type specifier
..\Library\StdDriver\inc\sys.h(916): error: #65: expected a ";"
..\Library\StdDriver\inc\sys.h(940): warning: #12-D: parsing restarts here after previous syntax error
..\Library\StdDriver\inc\clk.h(357): error: #757: variable "__STATIC_INLINE" is not a type name
..\Library\StdDriver\inc\clk.h(357): error: #101: "uint32_t" has already been declared in the current scope
..\Library\StdDriver\inc\clk.h(357): error: #65: expected a ";"
..\Library\StdDriver\inc\clk.h(379): warning: #12-D: parsing restarts here after previous syntax error
..\Library\StdDriver\inc\clk.h(382): error: #77-D: this declaration has no storage class or type specifier
..\Library\StdDriver\inc\clk.h(382): error: #20: identifier "u32FIN" is undefined
..\Library\StdDriver\inc\clk.h(382): error: #20: identifier "u32NF" is undefined
..\Library\StdDriver\inc\clk.h(382): error: #20: identifier "u32NR" is undefined
..\Library\StdDriver\inc\clk.h(382): error: #20: identifier "u32NO" is undefined
..\Library\StdDriver\inc\clk.h(384): error: #169: expected a declaration
..\Library\StdDriver\inc\clk.h(385): error: #169: expected a declaration
..\Library\StdDriver\inc\clk.h(407): warning: #12-D: parsing restarts here after previous syntax error
..\Library\StdDriver\inc\clk.h(408): error: #757: variable "uint32_t" is not a type name
..\Library\StdDriver\inc\clk.h(408): error: #757: variable "uint32_t" is not a type name
..\Library\StdDriver\inc\clk.h(408): error: #757: variable "uint32_t" is not a type name
..\Library\StdDriver\inc\clk.h(411): error: #757: variable "uint32_t" is not a type name
..\Library\StdDriver\inc\clk.h(412): error: #757: variable "uint32_t" is not a type name
..\Library\StdDriver\inc\clk.h(413): error: #757: variable "uint32_t" is not a type name
..\Library\StdDriver\inc\clk.h(414): error: #757: variable "uint32_t" is not a type name
..\Library\StdDriver\inc\clk.h(415): error: #757: variable "uint32_t" is not a type name
..\Library\StdDriver\inc\clk.h(416): error: #757: variable "uint32_t" is not a type name
..\Library\StdDriver\inc\clk.h(417): error: #757: variable "uint32_t" is not a type name
..\Library\StdDriver\inc\clk.h(417): error: #757: variable "uint32_t" is not a type name
..\Library\StdDriver\inc\clk.h(418): error: #757: variable "uint32_t" is not a type name
..\Library\StdDriver\inc\clk.h(418): error: #757: variable "uint32_t" is not a type name
..\Library\StdDriver\inc\clk.h(419): error: #757: variable "uint32_t" is not a type name
..\Library\StdDriver\inc\clk.h(419): error: #757: variable "uint32_t" is not a type name
..\Library\StdDriver\inc\clk.h(419): error: #757: variable "uint32_t" is not a type name
..\Library\StdDriver\inc\clk.h(420): error: #757: variable "uint32_t" is not a type name
..\Library\StdDriver\inc\clk.h(421): error: #757: variable "uint32_t" is not a type name
............
Target not created
但还是感谢楼主的奉献。
我的MDK是V4.23,编译M451SeriesBSP_CMSIS_v3.00.005的例程没有问题。