按照OSInitHook说的,ASPEN 和LSPEN 两个需要置位,发现启动文件中的注释是clear,就自己改了一下,变成置位,如下图所示:
/*
*********************************************************************************************************
* OS INITIALIZATION HOOK
*
* Description: This function is called by OSInit() at the beginning of OSInit().
*
* Arguments : None.
*
* Note(s) : 1) When using hardware floating point please do the following during the reset handler:
* a) Set full access for CP10 & CP11 bits in CPACR register.
* b) Set bits ASPEN and LSPEN in FPCCR register.
*********************************************************************************************************
*/
void OSInitHook (void)