EmbeddedRelated.com
Forums
Memfault Beyond the Launch

mcb2300 and freeRTOS eclipse

Started by "r.morash" September 26, 2007
This morning I received a mcb2300 board(LPC2368).
I started it up and the top line read "MCB2300 DEMO" and blocks on
the second line (I should have tested this code more first but I got
excited).

I then used eclipse to build the FreeRTOS demo to build the
RTOSDemo.hex file. I then downloaded it to flash using the Flash
Magic Utility. It appears to erase/program/verify properly (?)

I then remove the ISP, RST jumpers and recycle the board power. When
it starts up nothing appears to happen. The LCD remains blank and I
am unable to ping the board (uIP_task.c says the default IP is
172.25.218.10 and I am direct connected with a crossover cable).

I am currently waiting for delivery of the Amontec JTAG so I have no
JTAG connectivity at the moment.

Any help getting me started out would be appreciated
Russ

An Engineer's Guide to the LPC2100 Series

>
> This morning I received a mcb2300 board(LPC2368).
> I started it up and the top line read "MCB2300 DEMO" and blocks on
> the second line (I should have tested this code more first but I got
> excited).
>
> I then used eclipse to build the FreeRTOS demo to build the
> RTOSDemo.hex file. I then downloaded it to flash using the Flash
> Magic Utility. It appears to erase/program/verify properly (?)
>
> I then remove the ISP, RST jumpers and recycle the board power. When
> it starts up nothing appears to happen. The LCD remains blank and I
> am unable to ping the board (uIP_task.c says the default IP is
> 172.25.218.10 and I am direct connected with a crossover cable).
>
> I am currently waiting for delivery of the Amontec JTAG so I have no
> JTAG connectivity at the moment.
>
> Any help getting me started out would be appreciated
> Russ
>
I have not tired programming the code using flash magic before, so this is
what I have just done:

1) Taken a clean installation of FreeRTOS.org V4.5.0
2) Opened the Eclipse project as described in the FreeRTOS.org
documentation.
3) Not made any changes at all to the code or project (other than setting up
the FreeRTOS_BASE variable as per the instructions).
4) Build the demo.
5) Programmed the demo into the board using flash magic.

As soon as the programming had completed verification the program started
running. This is easy to tell even without the Ethernet connected as the
LEDs flash and the LCD displays text.

So I have no problem. However, there has been some discussion on the
FreeRTOS.org support forum in the last week with people having problems with
the CrossWorks version of the same demo. Again, I can use CrossWorks with
my hardware and everything is rock solid so cannot reproduce the problem.
The last post in the thread mentioned that changing the MAM settings made it
more stable but did not fix the problem.

I don't want to appear to be placing the blame elsewhere, but I'm wondering
if this is to do with hardware issues that have been discussed in this
group?

I'm using an older V3 of the MCB2300 with Yagarto arm-elf-gcc V4.2.1. The
problems reported when using CrossWorks were on V3.1 versions of the
MCB2300.

I have not been following the threads on the LPC2368 errata, so cannot say
much else on it until I have read either the errata or the threads here.
All I know is that no matter what I do I cannot get my system to misbehave.

Regards,
Richard.

+ http://www.FreeRTOS.org
13 official architecture ports, 1000 downloads per week.

+ http://www.SafeRTOS.com
Certified by T as meeting the requirements for safety related systems.
> All I know is that no matter what I do I cannot get my system to
misbehave.
>
> Regards,
> Richard.

thats simply because you are a pro :-)

I for example managed to make a system
(lpc2378+freeRTOS+uIP+eclipse+gcc) that is stable until I plugin the
ethernet crossover cable (conntect to a pc with webbrowser). as soon as
I connect the eth-cable the system crashes ^^
--- In l..., "d.holzwarth" wrote:
>
> > All I know is that no matter what I do I cannot get my system to
> misbehave.
> >
> > Regards,
> > Richard.
>
> thats simply because you are a pro :-)
>
> I for example managed to make a system
> (lpc2378+freeRTOS+uIP+eclipse+gcc) that is stable until I plugin the
> ethernet crossover cable (conntect to a pc with webbrowser). as soon as
> I connect the eth-cable the system crashes ^^
>

Hello everyone I've just joined the lpc2000 group because I have to
develop an application using a lpc2378 micro controller and I am new
to this micro controller family. I have also followed the steps from
the freeRTOS website and using the Eclipse LPC23xx WEB Server Demo and
downloaded the code using the Flash Magic utility (which works very
well). However, my MCB2300 has a LPC2378 and not a LPC2368 micro
controller.

So, my instincts tell me that the startup code for the LPC2368 differs
a bit from the LPC2378. Am I right or did I just made a fool out of
myself? I guess I'm looking for a pro....that managed to make a
system (lpc2378+freeRTOS+uIP+eclipse+gcc) that is stable....:D. If
any of you could give me some info or links or whatever on how I could
modify / adjust the startup.s file so it'll work with the LPC2378 it
would be greatly appreciated.

We are currently kind of evaluating keil (very expensive) vs open
source tools.

Thank you very much for your time and support.
Eric Paulin

Memfault Beyond the Launch