Stream data to LPC2148 over serial.

Hey All,

AS part of the project I’m working on, I need to be able to ‘stream’ data from my PC to be processed by the LPC2148 on my Olimex LPC-P2148 dev board. Problem is I have never done any work with RS232/UART before, so don’t really know where to start! :?

I’ve comiled and loaded ChibiOS/RT, which appears to be running. I have blinking LED’s and buzzer beep when I press one of the buttons. I can see that when I press the other button there is supposed to be a “hello world” sent over the serial. But how do I listen to it? I’m running XP.

Does anyone know of existing programs to run on the windows side that will facilicate the Data stream? Or am I going to have to write it myself? :? It doesn’t seem that scary, but I only have a matter of days to get this going :oops:

Any help greatly appreciated!

-Shaneo.

You can use HyperTerminal under XP, set the line as 38400,8,1 with no parity bit, you need to connect the PC to the board with a modem cable.

From HT you can also send a file through the serial port to the board.

By pressing both buttons you can run the self-test program.

Cheers for that… Will have a look and see how I go. Got the hello world and self-test working fine. Just got to work out how I want to do the file transfer… I don’t want to transfer the whole file at once. Just some data, process that, then send more data.

Look at the MinGW demo, there is a command line interpreter that reads the serial ports line by line, you can use that code under the LPC2148 demo too.

BTW, you can run the Win32 MinGW demo on your PC without any board, the APIs are compatible between the 2 demos so you can develop your application on PC then compile it for the LPC2148.

gdisirio:
You can use HyperTerminal under XP, set the line as 38400,8,1 with no parity bit, you need to connect the PC to the board with a modem cable.

From HT you can also send a file through the serial port to the board.

We do a lot of work with RS232 and have found HT to lack a few necessary features so we created our own program (InTerm) for testing. If you are interested they can be found here:

http://www.rfinnovations.com.au/

It’s in the support section which you have to sign up for, but it is all free and the you can opt out for the newsletters we send.