Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training


LPC2148 Serial output Trouble

Posted by Carlos Apablaza B on September 14, 2012
Dear friends,

I have an LPC2148 with FreeRTOS v7.2 (ported from lpc2106 GCC example). The LEDs blink ok.

The problems come when I see the serial port output which is:


I'm using cutecom with 115200 bauds, 8 data bits, 1 stop bit, no handshake.

I would appreciate if anyone could give me a hand with this.


RE: LPC2148 Serial output Trouble

Posted by Carlos Apablaza B on September 14, 2012
I forgot to mention that I'm working under ubuntu 12.04.

The code was compiled using arm-none-eabi-gcc

RE: LPC2148 Serial output Trouble

Posted by Dave on September 14, 2012
What should the serial port output be?

What you post looks like a load of escape characters so it might be that your terminal is not set to show raw ASCII characters.

Most demos use a loopback com port test. If you loop the characters back to the receive on the LPC are they received as expected?

RE: LPC2148 Serial output Trouble

Posted by Carlos Apablaza B on September 14, 2012
Thank you for your fast response!

I managed to get it working.

I forgot to change the cpu frequency: I ported the Demo code from an LPC2106 which has a 14.7456MHz clock. My lpc h2148 has 12 Mhz clock. Changing that solved the problem and now I can see the serial port output!

Now cutecom prints



In case some one doesnt know, the file that has to be changed is: (in FreeRTOSConfig.h)

#define configCPU_CLOCK_HZ ( ( unsigned long ) 48000000 ) // 48000000 Hz for the lpc h2148

Thank you anyway for your support

[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]

Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.

Free TCP/IP and file system demos for the RTOS

Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists