Quality RTOS & Embedded Software

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




Loading

using printf in FreeRTOS with MSP430 board

Posted by miraekim on June 10, 2017

I am trying to use printf in FreeRTOS with MSP430FR5969 board.

I have tested with basic helloworld project without FreeRTOS,. and it works well.

But the CIO console is not showing up when I run the other project.

I stepped through the code and I can see that FreeRTOS includes its own version of printf and not the one that comes with the TI Compiler C runtime support library.

Does anybody knows how to use this printf library in MSP430 board?

Best regards,

Mirae


using printf in FreeRTOS with MSP430 board

Posted by tlafleur on June 10, 2017

printf that is included with FreeRTOS is RTOS safe, many of the pintf in processor support packages are not.

so, if you want to use another printf, its time to do some testing!

Attachments

alternate (2108 bytes)

using printf in FreeRTOS with MSP430 board

Posted by miraekim on June 11, 2017

I mean I would like to use printf which FreeRTOS provides, but it is not working in my MSP430 board. So I wonder if there any manual about using printf that FreeRTOS provide.

Best, Mirae


using printf in FreeRTOS with MSP430 board

Posted by rtel on June 11, 2017

You need to tell the printf() implementation how to output characters. That is done using the printchar() function, which is defined at the top of printf-stdarg.c. You need to implement the function to output the characters the function passes in using the function's parameters. In a lot of cases that will be to simply write the characters to a serial port.


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




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

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

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

OpenRTOS and SafeRTOS