# make LPC2368 webserver

**URL:** <https://forums.freertos.org/t/make-lpc2368-webserver/169>\
**Category:** Kernel\
**Created:** [January 3, 2008, 6:10pm UTC](https://forums.freertos.org/t/make-lpc2368-webserver/169 "2008-01-03T18:10:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [January 3, 2008, 6:10pm UTC](https://forums.freertos.org/t/make-lpc2368-webserver/169/1 "2008-01-03T18:10:11Z")

</div>

**[anhuly](https://sourceforge.net/u/anhuly/)** wrote on [Thursday, January 03, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/0b947c95/#e513):

I am trying make the LPC2368 webserver projects using Eclipse and as well "make".&nbsp; I successfully get .hex file in both senerio but once I download it to my LPC2300 board through the serial port using "flashmagic", the LCD does not shown as "PASS" and all the LEDs remained lid.

I also try to disable MAM and it remain the same.&nbsp; I have the lastest GNU Make 3.81, and arm-elf-gcc (GCC) 4.2.2.

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [January 5, 2008, 1:33pm UTC](https://forums.freertos.org/t/make-lpc2368-webserver/169/2 "2008-01-05T13:33:59Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Saturday, January 05, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/0b947c95/#e513/6e5a):

Do you have a debugger interface?

Regards.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [January 7, 2008, 5:45pm UTC](https://forums.freertos.org/t/make-lpc2368-webserver/169/3 "2008-01-07T17:45:55Z")

</div>

**[anhuly](https://sourceforge.net/u/anhuly/)** wrote on [Monday, January 07, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/0b947c95/#e513/ed59):

Hi Richard,

I also try to run JTAG but it give me the following error message:

Info:&nbsp;&nbsp;&nbsp; openocd.c:93 main(): Open On-Chip Debugger (2007-12-30 17:00 CET) svn:247  
Info:&nbsp;&nbsp;&nbsp; openocd.c:94 main(): $URL: [http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c](http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c) $  
Info:&nbsp;&nbsp;&nbsp; jtag.c:1291 jtag\_examine\_chain(): JTAG device found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4)  
Warning: embeddedice.c:175 embeddedice\_build\_reg\_cache(): EmbeddedICE version 7 detected, EmbeddedICE handling might be broken  
Warning: arm7\_9\_common.c:742 arm7\_9\_assert\_reset(): srst resets test logic, too  
Warning: arm7\_9\_common.c:941 arm7\_9\_halt(): target was already halted

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [January 7, 2008, 8:48pm UTC](https://forums.freertos.org/t/make-lpc2368-webserver/169/4 "2008-01-07T20:48:49Z")

</div>

**[davedoors](https://sourceforge.net/u/davedoors/)** wrote on [Monday, January 07, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/0b947c95/#e513/ed59/09bb):

There are some warnings there but I dont think any errors. Looks like the interface is working but when it tried to stop the processor it was already stopped. It should get past that though.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [January 11, 2008, 3:31pm UTC](https://forums.freertos.org/t/make-lpc2368-webserver/169/5 "2008-01-11T15:31:02Z")

</div>

**[geah](https://sourceforge.net/u/geah/)** wrote on [Friday, January 11, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/0b947c95/#e513/0dbe):

Hi,

I don’t know if this might help.

I had similar problems and I have altered 2 things in order to get it to work:

1. Changed the mainCPU\_CLK\_DIV to 4 as well as the configCPU\_CLOCK\_HZ to 48Mhz (main.c).  
2. Changed the PINSEL2 = 0x50150105; in (emac.c; row 131).

After I did this it worked. I’m using a B version chip.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [January 21, 2008, 2:44am UTC](https://forums.freertos.org/t/make-lpc2368-webserver/169/6 "2008-01-21T02:44:00Z")

</div>

**[brucesutherland](https://sourceforge.net/u/brucesutherland/)** wrote on [Monday, January 21, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/0b947c95/#e513/4d35):

Gea,

I think possibly you meant mainCPU\_CLK\_DIV = 3. This should produce a clock of 48MHz.

The LPC2368 manual states:

"Only 0 and odd values (1, 3, 5, …, 255) are supported and can be  
used when programming the CCLKSEL bits.  
Warning: Using an even value (2, 4, 6, …, 254) when setting the  
CCLKSEL bits may result in incorrect operation of the device."
