[mw_shl_code=applescript,true]int main(void)
{
// SystemBSPInit();
// printf("Init Success
");
// xTaskCreate( vStartTask, StartTaskName, configMINIMAL_STACK_SIZE*8, NULL, vStartTask_PRIORITY, NULL );
// vTaskStartScheduler(); //¿aê¼èÎÎñμ÷¶è
// for(;;);
u32 i = 0;
arm_status status; /* Status of the example */
arm_cfft_radix4_instance_f32 cfft_instance; /* CFFT Structure instance */
/* CFFT Structure instance pointer */
arm_cfft_radix4_instance_f32 *cfft_instance_ptr =
(arm_cfft_radix4_instance_f32*) &cfft_instance;
/* Initialize the CFFT function to compute 64 point fft */
status = arm_cfft_radix4_init_f32(cfft_instance_ptr, 64, 0, 1);
while (1)
{
i++;
}
}
[/mw_shl_code]
这样不带操作系统,裸跑,程序运行正常,如果使能FreeRTOS后,在任务中运行status = arm_cfft_radix4_init_f32(cfft_instance_ptr, 64, 0, 1);会导致硬件错误,会跳转到[mw_shl_code=applescript,true]void HardFault_Handler(void)
{
/* Go to infinite loop when Hard Fault exception occurs */
while (1)
{
}
}[/mw_shl_code]中去,难道两者不兼容吗?
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>