Yahoo Groups archive

Lpc2000

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

Thread

Port ucos to lpc2132 with Karm250

Re: Port ucos to lpc2132 with Karm250

2006-02-20 by june_hsia

--- In lpc2000@yahoogroups.com, "june_hsia" <june_hsia@...> wrote:
>
> I attemp to port ucos to lpc2132,I use Karm250.
> Who can give me a exmaple to me,Thanks a lot.
>
On the web,only find the exmaple compile with IAR.
Which is better?

Thanks!
Hsia

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

2006-02-20 by Joel Winarske

> > I attemp to port ucos to lpc2132,I use Karm250.
> > Who can give me a exmaple to me,Thanks a lot.
> >
> On the web,only find the exmaple compile with IAR.
> Which is better?

Yes IAR is one of the standard compilers supported by most RTOS vendors.
 
I believe the differences are subtle, such as ISR mapping between ports, and
linker files.  There may multiple ports so it's easier for people to
implement.  So perhaps download all and see which one matches your timer.  I
ported AN1229 to the LPC2148 (IAR) if anyone is interested.  Of course I
will not distribute OS source.


Joel

Re: Port ucos to lpc2132 with Karm250

2006-02-22 by june_hsia

--- In lpc2000@yahoogroups.com, "Joel Winarske" <joelw@...> wrote:
>
> > > I attemp to port ucos to lpc2132,I use Karm250.
> > > Who can give me a exmaple to me,Thanks a lot.
> > >
> > On the web,only find the exmaple compile with IAR.
> > Which is better?
> 
> Yes IAR is one of the standard compilers supported by most RTOS 
vendors.
>  
> I believe the differences are subtle, such as ISR mapping between 
ports, and
> linker files.  There may multiple ports so it's easier for people 
to
> implement.  So perhaps download all and see which one matches your 
timer.  I
> ported AN1229 to the LPC2148 (IAR) if anyone is interested.  Of 
course I
> will not distribute OS source.
> 
> 
> Joel
>
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".

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

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

2006-02-22 by Joel Winarske

>   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".

Perhaps you might post your port so someone might take a look at it?
This problem is not an issue in the IAR port.

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.