Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Re: Port ucos to lpc2132 with Karm250

2006-02-22 by FreeRTOS Info

> Hi,
>   There is no error when I Compile and link the project.But when I
> uses uV3 simulator,it's break and prompt "arm instruction at
> 1414141414H".


Hmm.  Sounds to be a familiar issue that sometimes occurs when people port
FreeRTOS.org to new processors.

FreeRTOS.org sets the registers of each task to contain the number of the
register.  Therefore, when a task starts R0 contains 000000, R1 contains
11111111, etc. etc.

R14 being the link register is used to hold the task start address.  When
the task is started 14141414 should be written into the system mode link
register but if the processor is in the wrong mode then it gets written into
the SVC mode link register and you get this type of error.

Maybe ucos does the same thing.  Check the processor is in the right mode
before starting the scheduler.    I strongly suspect this is your problem.

(why am I supporting a competitors product?).

Regards,
Richard.

http://www.FreeRTOS.org

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.