Eclipse LPC2368 webserver to work for LPC2378

anhuly wrote on Thursday, December 20, 2007:

So I was able to build the LPC2368 webserver in Eclipse and go the RTOSDemo.hex. But I only got the LPC2378 eval board, I try to download to it anyway using flash magic, and after downloaded it does not seem to work as discribed.

Could anyone let me know if I need to do anything so that the webserver app can work with the LPC2378

Thank you

davedoors wrote on Thursday, December 20, 2007:

Is your board the same as the one on which the port was create, albeit with a different processor? Does the board have LED on the same IO pins? If so and once you are certain the LED works, then I suggest starting by editing main() so the only tasks that are created are the flash tasks. If this does not work, then the next thing to check is that the tick interrupt is actually running.

Did you also take note of the MAM issue? Many LPC23xx devices will not work if the MAM is enabled. This is a bug in the chip.

anhuly wrote on Thursday, December 20, 2007:

* It should be the same board MCB2300 Rev 3.1  with the LPC2378 IC.
* LED are map to P2.0 to P2.7
* LED is not working

* where can I disable MAM?

davedoors wrote on Thursday, December 20, 2007:

I don’t have the code with me at the moment but normally it would be in the function prvSetupHardware() in main.c. Try disabling the MAM then getting the LED working before adding in any FreeRTOS functionality.

anhuly wrote on Thursday, December 20, 2007:

I have diable in the Main.c as shown below, and I still cannot get it working.  Just wonder if you have a LPC2368 board, so that I can send you the HEX file and see if you could upload it onto your board

    /* Setup and turn on the MAM.  Three cycle access is used due to the fast
    PLL used.  It is possible faster overall performance could be obtained by
    tuning the MAM and PLL settings. */
    MAMCR = 0;
    MAMTIM = mainMAM_TIM_3;
//    MAMCR = mainMAM_MODE_FULL;

Thank Dave