This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Philips lpc23xx support

can we program the philips lpc23xx series using the evaluation tool of keil.also could someone please tell me how to write the programs in c.
is there any other resource other than nxp website for programming nxp.we want to program nxp for ethernet control of multiple switches.could someone pls send me some resources

Parents
  • I assume you are talking about the Real View MDK evaluation version 3.0x, since previous versions did not support the LPC23xx series.

    The eval version has a limit in memory image size of 16KB. The linker and compiler have other few limitations, like not generating scatter-loading linker files and position-independent code.

    These limitations will prevent you from writing large programs, or programs that require multithreading.

    Regarding 'ethernet control of multiple switches', you need to be more specific. There is a multitude of ways to control (local) loads connected to the uC from the ethrenet port. You can implement a thin layer of ICMP protocol, for instance, and use PING for sending the control packets. You can implement IP and UDP and send datagrams to control your loads. You can even implement all the way up to UDP/TCP and use one of the industrial control protocols on top of it, like MODBUS/TCP, or DeviceNet.

    As for 'write programs in C', I'm not sure what you are talking about. If you want help learning the C language, I suggest you to grab a book and learn the language. There are literally thousands of online resources and countless tutorials. You may try these few:
    www.eskimo.com/.../
    http://c-faq.com/
    www.lysator.liu.se/.../bwk-tutor.html
    www.lysator.liu.se/.../ten-commandments.html

    It seems that you are in dire need of getting knowledge on many areas to fulfill your goals. Even though you can find exampleware for doing that (there is a free webserver and 'full' protocol stack with the MCB2300 board), it is far from cut-and-paste level of difficulty.

Reply
  • I assume you are talking about the Real View MDK evaluation version 3.0x, since previous versions did not support the LPC23xx series.

    The eval version has a limit in memory image size of 16KB. The linker and compiler have other few limitations, like not generating scatter-loading linker files and position-independent code.

    These limitations will prevent you from writing large programs, or programs that require multithreading.

    Regarding 'ethernet control of multiple switches', you need to be more specific. There is a multitude of ways to control (local) loads connected to the uC from the ethrenet port. You can implement a thin layer of ICMP protocol, for instance, and use PING for sending the control packets. You can implement IP and UDP and send datagrams to control your loads. You can even implement all the way up to UDP/TCP and use one of the industrial control protocols on top of it, like MODBUS/TCP, or DeviceNet.

    As for 'write programs in C', I'm not sure what you are talking about. If you want help learning the C language, I suggest you to grab a book and learn the language. There are literally thousands of online resources and countless tutorials. You may try these few:
    www.eskimo.com/.../
    http://c-faq.com/
    www.lysator.liu.se/.../bwk-tutor.html
    www.lysator.liu.se/.../ten-commandments.html

    It seems that you are in dire need of getting knowledge on many areas to fulfill your goals. Even though you can find exampleware for doing that (there is a free webserver and 'full' protocol stack with the MCB2300 board), it is far from cut-and-paste level of difficulty.

Children
  • DISCLAIMER:

    The link www.lysator.liu.se/.../bwk-tutor.html I referred to above is for a very early tutorial in C, written by Brian W. Kernighan himself, some 4 years before K&R published "The C Programming Language" (1974).

    That tutorial is still valid for many C language features and shed light in some very interesting information from the early days of computing when C was invented.

    HOWEVER, it has some syntax and function declaration styles that are deprecated and not supported by contemporary C compilers, not to say that it is from a time before ANSI C was even considered.