EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Olimex LPC2148 and IAR UART example

Started by stephan2148 December 7, 2005
Hi, Has anyone gotten the Olimex LPC2148 development board and IAR
Uart example working for the LPC214X? I can see something with
hyperterminal, however it is just junk characters. I have tried all
available baud rates. Is this code possibly for a specific dev board?
This is an initial test to get running, what I really need to do is
get FAT16 talking to an sd/MMC card. Is there anything on that while
I'm here?
Thanks alot.



An Engineer's Guide to the LPC2100 Series

Verify your fundamental clock setting, it may not be referencing 12MHz.
Keep in mind the LPC2148 has a fractional divider reg (FDR). You can find
my tool for calculating very accurate baud rates for the LPC214x (FDR
enabled devices) here:
http://groups.yahoo.com/group/lpc2000/files/Tools/lpc2fdcalc.exe

Also you should be able to find my port of the EFSL on the EFSL dev mailing
list. It implements FAT12/16/32, serial, and RTC code.

http://efsl.be/

Joel

> Hi, Has anyone gotten the Olimex LPC2148 development board and IAR
> Uart example working for the LPC214X? I can see something with
> hyperterminal, however it is just junk characters. I have tried all
> available baud rates. Is this code possibly for a specific dev board?
> This is an initial test to get running, what I really need to do is
> get FAT16 talking to an sd/MMC card. Is there anything on that while
> I'm here?
> Thanks alot.


Hi,

First get rid of hyperterminal. It is very sensitive to faults in
baudrate etc.Take a look at http://bray.velenje.cx/avr/terminal instead.

/Ake

stephan2148 wrote:

> Hi, Has anyone gotten the Olimex LPC2148 development board and IAR
> Uart example working for the LPC214X? I can see something with
> hyperterminal, however it is just junk characters. I have tried all
> available baud rates. Is this code possibly for a specific dev board?
> This is an initial test to get running, what I really need to do is
> get FAT16 talking to an sd/MMC card. Is there anything on that while
> I'm here?
> Thanks alot. > SPONSORED LINKS
> Microprocessor
> <http://groups.yahoo.com/gads?t=ms&k=Microprocessor&w1=Microprocessor&w2=Microcontrollers&w3=Pic+microcontrollers&w451+microprocessor&c=4&s&.sig=tsVC-J9hJ5qyXg0WPR0l6g>
> Microcontrollers
> <http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Microprocessor&w2=Microcontrollers&w3=Pic+microcontrollers&w451+microprocessor&c=4&s&.sig=DvJVNqC_pqRTm8Xq01nxwg>
> Pic microcontrollers
> <http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Microprocessor&w2=Microcontrollers&w3=Pic+microcontrollers&w451+microprocessor&c=4&s&.sig=TpkoX4KofDJ7c6LyBvUqVQ>
>
> 8051 microprocessor
> <http://groups.yahoo.com/gads?t=ms&k51+microprocessor&w1=Microprocessor&w2=Microcontrollers&w3=Pic+microcontrollers&w451+microprocessor&c=4&s&.sig=1Ipf1Fjfbd_HVIlekkDP-A >
>
> >. >
>


--
---
Ake Hedman (YAP - Yet Another Programmer)
eurosource, Brattbergavägen 17, 820 50 LOS, Sweden
Phone: (46) 657 413430 Cellular: (46) 73 84 84 102
Company home: http://www.eurosource.se
Kryddor/Te/Kaffe: http://www.brattberg.com
Personal homepage: http://www.eurosource.se/akhe
Automated home: http://www.vscp.org


Hello again Joel, thanks alot for your tool. I have the uart code working.
I would like to check out your port of the EFSL for IAR and the LPC2148 if
it is available, this is exactly what I am trying to do.
I however cannot find it on the mailing list. Do you know if it is actually
there? I have been looking and looking.
I read that they were going to add it to the next release of efsl, but I
don't think it is released yet. Maybe you have a link to it that I cannot
find?
Thanks very much,
Steve _____

From: lpc2000@lpc2... [mailto:lpc2000@lpc2...] On Behalf Of
Joel Winarske
Sent: Wednesday, December 07, 2005 4:26 PM
To: lpc2000@lpc2...
Subject: RE: [lpc2000] Olimex LPC2148 and IAR UART example Verify your fundamental clock setting, it may not be referencing 12MHz.
Keep in mind the LPC2148 has a fractional divider reg (FDR). You can find
my tool for calculating very accurate baud rates for the LPC214x (FDR
enabled devices) here:
http://groups.yahoo.com/group/lpc2000/files/Tools/lpc2fdcalc.exe

Also you should be able to find my port of the EFSL on the EFSL dev mailing
list. It implements FAT12/16/32, serial, and RTC code.

http://efsl.be/

Joel

> Hi, Has anyone gotten the Olimex LPC2148 development board and IAR
> Uart example working for the LPC214X? I can see something with
> hyperterminal, however it is just junk characters. I have tried all
> available baud rates. Is this code possibly for a specific dev board?
> This is an initial test to get running, what I really need to do is
> get FAT16 talking to an sd/MMC card. Is there anything on that while
> I'm here?
> Thanks alot.

_____

> .


_____



> I would like to check out your port of the EFSL for IAR and the LPC2148 if
> it is available, this is exactly what I am trying to do.
> I however cannot find it on the mailing list. Do you know if it is
> actually there?

This incorporates the old license. Their next release will have the revised
license.

http://www.indyelectronics.com/efsl-0.3.4%20-%20IAR%20LPC2148%20Example.zip Joel



The 2024 Embedded Online Conference