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

Programming LPC 2388

I have developed LPC2388 Board, The power supply is fine and even i am able to download the program on the board, once dwonloading problem was solved i wrote a sample program which will make all the ports pins on all port low...but when i checked the volatge on the PINS it always show 2.3volts. my feeling is i am making mstake in configuring the prots pins properly,

I would really appreciate if some one can provide a sample program which makes all the ports pins high and low...

Thanking you in advance

Parents
  • Hello Per,

    thanks a lot for replying so fast.

    Hmm...ok i only have experiance with the lpc2129.
    Its oscillator runs when powering it up with no code on it.

    So maybe you can help me to get my controller running.
    What i did so far:
    I have set up a new project with the the keil µvision 3.85 eval. I have chosen the lpc2388 controller.

    It asked me if i would like to copy the philips lpc2300 startup file to the project. i have chosen "yes"

    i created a "main.c" with exactly the same code posted above.

    I flashed the hexfile with FlashMagic but controller is not running.

    What could be wrong?

    in the startupfile there is a comment:
    ---
    ; * NO_CLOCK_SETUP: when set the startup code will not initialize Clock
    ; * (used mostly when clock is already initialized from script .ini
    ; * file).
    ---

    What does this mean and where is this script .ini file?

    Thank you in advance...

Reply
  • Hello Per,

    thanks a lot for replying so fast.

    Hmm...ok i only have experiance with the lpc2129.
    Its oscillator runs when powering it up with no code on it.

    So maybe you can help me to get my controller running.
    What i did so far:
    I have set up a new project with the the keil µvision 3.85 eval. I have chosen the lpc2388 controller.

    It asked me if i would like to copy the philips lpc2300 startup file to the project. i have chosen "yes"

    i created a "main.c" with exactly the same code posted above.

    I flashed the hexfile with FlashMagic but controller is not running.

    What could be wrong?

    in the startupfile there is a comment:
    ---
    ; * NO_CLOCK_SETUP: when set the startup code will not initialize Clock
    ; * (used mostly when clock is already initialized from script .ini
    ; * file).
    ---

    What does this mean and where is this script .ini file?

    Thank you in advance...

Children
  • Script ini files is something you write, where you let the debugger run a script - for example to load your code into RAM (instead of to flash) and the move PC to the start of the program.

    But the script ini files are only meaningful for RAM debugging. For a real program flashed into the chip, there will not be any debugger that may modify any processor registers. Unless your aim is to run with the built-in RC oscillator, your code - either the assembler startup file you got from Keil, or C code called from main() - must configure which oscillator to use, and optionally configure and turn on the PLL.

    If you open the startup file, you will notice in the bottom left that it has two tabs. Switch to the wizard tab, and go through the configuration options available for the startup file. For configuring the PLL, NXP has an Excel sheet available on the product page.

    By the way - have you tried to download and run the Blinky project?

  • Hello,

    thank you for your explainations and for the tip with the Configuration wizard, i didnt know that.

    I just tried the blinky project from the Keil\ARM\Boards\Keil\MCB2300\Blinky directory.

    I changed the target from lpc2376 to lpc2388 but it is not running too...still the same pins 2.3v osc not running... :-((

    hmm the setup of the pll seems to fit...xtal = 12MHz

    i would be happy if you have any more ideas what to do...

    Thank you very much...