Hi Seva, if possible, please modify PLLD too, you can also find it in the system_apm32f4xx.c
/* Uncomment the following line if you need to relocate your vector Table in Internal SRAM. /
/
#define VECT_TAB_SRAM */
/* Vector Table base offset field. This value must be a multiple of 0×200. */
#define VECT_TAB_OFFSET 0×00
/* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLL_B) * PLL_A */
#define PLL_B 25
/* USB OTG FS, SDIO and RNG Clock = PLL_VCO / PLL_D */
#define PLL_D 7
#define PLL_A 336
/* SYSCLK = PLL_VCO / PLL_C */
#define PLL_C 2