make LPC2368 webserver
Posted by
tony on January 3, 2008
I am trying make the LPC2368 webserver projects using Eclipse and as well "make". 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. I have the lastest GNU Make 3.81, and arm-elf-gcc (GCC) 4.2.2.
RE: make LPC2368 webserver
Posted by
Richard on January 5, 2008
Do you have a debugger interface?
Regards.
RE: make LPC2368 webserver
Posted by
tony on January 7, 2008
Hi Richard,
I also try to run JTAG but it give me the following error message:
Info: openocd.c:93 main(): Open On-Chip Debugger (2007-12-30 17:00 CET) svn:247
Info: openocd.c:94 main(): $URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $
Info: 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
RE: make LPC2368 webserver
Posted by
Dave on January 7, 2008
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.
RE: make LPC2368 webserver
Posted by
Gea on January 11, 2008
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.
RE: make LPC2368 webserver
Posted by
Bruce Sutherland on January 21, 2008
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."