LPC2378 - print Hello World to hyperterminal

Hello all ,

i am new to ARM , used to work with PIC .

i have a working card , Olimex - LPC2378 , and i am trying to print to my hyper terminal a simple hello world .

i cant find what to initialize for output a single char even to the RS232 serial port,

and cant find a simple project already with example.

datasheet was no help .

any help in the right direction will be great :slight_smile:

Thanks

This will work with the Rowley CrossWorks tools:

#include <stdio.h>

int main(void)
{
    printf("Hello World");

    while(1)
      ;
}

You will have to write your own low-level _putchar() function which uses the UART.

I think the low level routine is what he’s looking for.

I don’t use the LPC2xxx myself, but you’ll find that nothing is simple with ARM7. All I can say is search for libraries, for lpc2xxx rather than straight simple coding examples. You’ll find stuff like this:

http://www.siwawi.arubi.uni-kl.de/avr_p … #lpc_uart0

thanks alot my friends ,

so the problem is solved , and i found the problem .

only printf is not working :slight_smile: ( but i guess this is easier to solve … )

idandush:
i have a working card , Olimex - LPC2378 , and i am trying to print to my hyper terminal a simple hello world .

This is how to do it in Oberon-07 with Armaide:
MODULE Hello;

IMPORT Out;

BEGIN
  Out.String("Hello, World!"); Out.Ln
END Hello.

Nothing more, nothing less. The identical code works on all the LPC2xxx devices we support - you just need to specify the device name (e.g. LPC2378) and crystal frequency at link time.

Hi all ,

i have a wierd problem , maybe you guys will understand it .

printing each char to the screen works , but when i use the sio.c and sio.c i found over the web , i cant print a full line , and it looks like some simple problem i dont understand.

if anyone has an idea , and wana take a look :slight_smile:

download the project from here :

http://rapidshare.com/files/378922226/SM8.rar.html

thanks !