I’m trying to get FreeRTOS running on a LPC1778 but have not succeeded so far. I’m using version 7.1.0 and the portable for the ARM_CM3.
The code seems to run fine until vPortStartFirstTask. Stepping through the assembler instructions I get to “svc 0” after which a hard fault occurs.
/* Use the NVIC offset register to locate the stack. */
ldr r0, =0xE000ED08
/* Set the msp back to the start of the stack. */
msr msp, r0
/* Call SVC to start the first task. */
I’v added the following lines to FreeRTOSConfig.h
#define vPortSVCHandler SVC_Handler
#define xPortPendSVHandler PendSV_Handler
#define xPortSysTickHandler SysTick_Handler
There is still a Hard Fault. Is there anything I have to modify more to get it running?