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


UART gives garbage in FreeRTOS+IO in MPU mode in lpc 1769

Posted by bhaveshshah2310 on February 20, 2015

I am trying to make a code in MPU mode which print some status of tasks on UART terminal using UART3 in MPU mode

I am using FreeRTOS+IO framework for UART communication. I took UART code from FreeRTOS.org site which have many IO parts in it like I2C UART etc. I have tested this code separately where MPU is not present and it is running properly it is giving properly. I can see proper output string on minicom console in linux. now in my project i create an environment for MPU and include necessary files for FreeRTOS+IO framework. which include CMSISv2p00LPC17xx with lpc17xx.cmsis.driver.library and necessary changes FreeRTOSConfig.h and also added FreeRTOSIO_BSP.h and FreeRTOSIOConfig.h

all the necessary thing is been changed but when i try to open UART3 port and try to write something in it then it shows in a garbage form on the minicom terminal. the same bunch of code which is working in freeRTOS+IO framework is not giving garbage over here . . i have checked the baud-rate and the SystemCoreClock is same as it should be in FreeRTOS_IO demos..

i am bit confuse here which other factors can cause the output string in garbage. then those factors . . can anyone suggest me something on this ? how to solve this problem.

UART gives garbage in FreeRTOS+IO in MPU mode in lpc 1769

Posted by rtel on February 20, 2015

So the code is the same, but the FreeRTOS port has been switched to the MPU version...if that is the case I can't think of anything offhand that could cause the baud rate to to change - if that is the genuine cause of the problem.

Presumably other things will have changed too in order to set up the MPU regions? Or are you creating the tasks in privileged mode?

Can you use the debugger to compare the values in the UART's registers to ensure they are all identical between the working and non-working versions? Are you sure the clock feeding the UART is also at the same frequency between the two versions?


UART gives garbage in FreeRTOS+IO in MPU mode in lpc 1769

Posted by bhaveshshah2310 on February 26, 2015

I found the problem that the peripheral clock frequency was not properly set up due to that it was giving me some problems there.. Now as i have done it properly it is working as per the expectation. Thank you for your suggestion it helped me out over here.

[ 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