FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [May 2012 Threads] LPC1778 hard faultPosted by xujingyixing on May 31, 2012 Hi!
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.
vPortStartFirstTask /* Use the NVIC offset register to locate the stack. */ ldr r0, =0xE000ED08 ldr r0, [r0] ldr r0, [r0] /* Set the msp back to the start of the stack. */ msr msp, r0 /* Call SVC to start the first task. */ cpsie i svc 0 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?
Sincerely, XUJING
RE: LPC1778 hard faultPosted by xujingyixing on May 31, 2012 I'v sloved the problem.
RE: LPC1778 hard faultPosted by Richard on May 31, 2012 For the sake of other people reading this forum - please also post what you did to fix the problem.
Regards.
RE: LPC1778 hard faultPosted by xujingyixing on June 4, 2012 I made a mistake. I set the bit 10 in SHCSR register. It lead to hard fault.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|