FreeRTOS问题汇总

Error[2]: Failed to open #include file 'FreeRTOSConfig.h' E:\Project\arm\STM32\F7_HAL_FreeRTOS\FreeRTOS\portable\IAR\ARM_CM7\r0p1\portasm.s 28 

解决办法:工程名右键->Options...->Assembler->Preprocesser在Additional include directories添加FreeRTOSConfig.h所在目录。

 

Error[Li006]: duplicate definitions for "PendSV_Handler"; in "E:\Project\arm\STM32\F7_HAL_FreeRTOS\EWARM\F7_HAL_FreeRTOS\Obj\portasm.o", and "E:\ 
Error[Li006]: duplicate definitions for "SVC_Handler"; in "E:\Project\arm\STM32\F7_HAL_FreeRTOS\EWARM\F7_HAL_FreeRTOS\Obj\portasm.o", and "E:\Project\ 
Error[Li006]: duplicate definitions for "SysTick_Handler"; in "E:\Project\arm\STM32\F7_HAL_FreeRTOS\EWARM\F7_HAL_FreeRTOS\Obj\port.o", and "E:\Project\ 

解决方法:由于PendSV_Handler,SVC_Handler,SysTick_Handler三个中断函数重定义,可以注释掉stm32xxxx_it.c中这三个函数。

port.c中vPortSVCHandler,xPortPendSVHandler ,xPortSysTickHandler在FreeRTOSConfig.h通过下面三个宏定义成上面那三个函数。

#define vPortSVCHandler SVC_Handler
#define xPortPendSVHandler PendSV_Handler
#define xPortSysTickHandler SysTick_Handler

 

你可能感兴趣的:(STM32,FreeRTOS,STM32)