/* STM32N6xx HAL library initialization:
- Systick timer is configured by default as source of time base, but user
can eventually implement his proper time base source (a general purpose
timer for example or other time source), keeping in mind that Time base
duration should be kept 1ms since PPP_TIMEOUT_VALUEs are defined and
handled in milliseconds basis.
- Set NVIC Group Priority to 4
- Low Level Initialization
*/
HAL_Init();
/* Configure the system clock */
SystemClock_Config();
/* Add your application code here */
MX_XSPI2_Init();
/* Initialise the serial memory */
MX_EXTMEM_Init();
BOOT_Application();
/* We should never get here as execution is now from user application */
while(1)
{
__NOP();
}
}
FSBL初始化了外部flash和RAM,然后调用BOOT_Application();
/* STM32N6xx HAL library initialization:
- Systick timer is configured by default as source of time base, but user
can eventually implement his proper time base source (a general purpose
timer for example or other time source), keeping in mind that Time base
duration should be kept 1ms since PPP_TIMEOUT_VALUEs are defined and
handled in milliseconds basis.
- Set NVIC Group Priority to 4
- Low Level Initialization
*/
HAL_Init();
/* Add your application code here */
/* Initialize LED1 */
BSP_LED_Init(LED_GREEN);
/* Infinite loop */
while (1)
{
/* Toggle LED1 every 250ms */
BSP_LED_Toggle(LED_GREEN);
HAL_Delay(250);
}
}
在Appli工程中,可以进行正常的应用逻辑编写。