外部内存的FSMC也要改(改了肯定OK,不改行不行我不大清楚)(后来试验了,下面这句不改也可以)
readWriteTiming.FSMC_CLKDivision = 0x04;改为 writeTiming.FSMC_CLKDivision = 0x00;
就是说经过上面两处改动,系统时钟仍然是168M,如下:
#if defined(STM32F40_41xxx)
uint32_t SystemCoreClock = 168000000;
#endif /* STM32F40_41xxx */ |
|