Part Number: MSP432P4111
Tool/software: TI-RTOS
Hi,
I have a question about the using of SysTick and SysTick_Hanldler ISR with FreeRTOS.
In a NORTOS project I use the SysTick and the ISR:
void SysTick_Handler(void){ Tick += 1; } int main(void) { ... SysTick_enableModule(); SysTick_setPeriod(0x01000000); SysTick_enableInterrupt(); MAP_Interrupt_enableMaster(); ... }
But now with FreeRTOS it ends in this fault handler:
/* This is the code that gets called when the processor receives a fault */ /* interrupt. This simply enters an infinite loop, preserving the system state */ /* for examination by a debugger. */ static void faultISR(void) { /* Enter an infinite loop. */ while(1) { } }
After reading I think that it should be the xPortSysTickHandler() instead of Systick_Handler().
But if I use xPortSysTickHandler() then I get this error message which says that it is redefined:
symbol "xPortSysTickHandler" redefined: first defined in "./main_freertos.obj"; redefined in "C:.../freertos_builds_MSP_EXP432P4111_release_ccs_2_30_00_14/Debug/freertos_builds_MSP_EXP432P4111_release_ccs_2_30_00_14.lib<port.obj>" null: symbol "xPortSysTickHandler" redefined: first defined in "./main_freertos.obj"; redefined in "C:/...freertos_builds_MSP_EXP432P4111_release_ccs_2_30_00_14/Debug/freertos_builds_MSP_EXP432P4111_release_ccs_2_30_00_14.lib<port.obj>"
How can I fix this error?
Thanks