当选用STM32F103时一切都正常(编译和debug),当选用STM32F105时编译是通过的,但debug的时候弹出 “error 65: access violation at 0x40021000: no 'read' permission.”的错误,查到0x40021000是RCC寄存器,按道理STM32F103和STM32F105的RCC寄存器地址是一样的,为什么会出现这种情况呢,有人碰到过吗?
/* Configure the System clock frequency, HCLK, PCLK2 and PCLK1 prescalers */
/* Configure the Flash Latency cycles and enable prefetch buffer */
SetSysClock();