将stm32f429i-discovery开发板的 emcraft uclinux 例程移植到秉火stm32f429的开发板上,由于stm32f429i-discovery上使用的是8MHZ外部晶振,而秉火stm32f429的开发板使用的是25MHZ的晶振。
u-boot部分
修改u-boot/include/configs/stm32f429-discovery.h
修改如下:
/*
* Clock configuration (see mach-stm32/clock.c for details):
* - use PLL as the system clock;
* - use HSE as the PLL source;
* - configure PLL to get a 180 MHz system clock.
*/
#define CONFIG_STM32_SYS_CLK_PLL
#define CONFIG_STM32_PLL_SRC_HSE
/*#define CONFIG_STM32_HSE_HZ 8000000 */ /* 8 MHz */
/*#define CONFIG_STM32_PLL_M 4
#define CONFIG_STM32_PLL_N 360
#define CONFIG_STM32_PLL_P 4
#define CONFIG_STM32_PLL_Q 15
*/
#define CONFIG_STM32_HSE_HZ 25000000 /* 25 MHz */
#define CONFIG_STM32_PLL_M 15
#define CONFIG_STM32_PLL_N 216
#define CONFIG_STM32_PLL_P 2
#define