int main(void)
{
//自己添加的,最好在user code里面添加,不会被覆盖
/* USER CODE BEGIN 1 */
uint32_t i = 0;
/* USER CODE END 1 */
HAL_Init();
/* Configure the system clock to 48 MHz */
SystemClock_Config();
/* Relocate by software the vector table to the internal SRAM at 0x20000000 ***/
/* Copy the vector table from the Flash (mapped at the base of the application
load address 0x08004000) to the base address of the SRAM at 0x20000000. */
for(i = 0; i < 48; i++)
{
VectorTable = *(__IO uint32_t*)(APPLICATION_ADDRESS + (i<<2));
}
/* Enable the SYSCFG peripheral clock*/
__HAL_RCC_SYSCFG_CLK_ENABLE();
/* Remap SRAM at 0x00000000 */
int main(void)
{
//自己添加的,最好在user code里面添加,不会被覆盖
/* USER CODE BEGIN 1 */
uint32_t i = 0;
/* USER CODE END 1 */
HAL_Init();
/* Configure the system clock to 48 MHz */
SystemClock_Config();
/* Relocate by software the vector table to the internal SRAM at 0x20000000 ***/
/* Copy the vector table from the Flash (mapped at the base of the application
load address 0x08004000) to the base address of the SRAM at 0x20000000. */
for(i = 0; i < 48; i++)
{
VectorTable = *(__IO uint32_t*)(APPLICATION_ADDRESS + (i<<2));
}
/* Enable the SYSCFG peripheral clock*/
__HAL_RCC_SYSCFG_CLK_ENABLE();
/* Remap SRAM at 0x00000000 */