lpcware

Hello world printf LPC11U68

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by cuong3006 on Tue Sep 23 06:02:41 MST 2014
Hi,
I'm new to NXP micro controller. What I'm trying to do is to print a string "Hello World" to debugger console.
I tried to make a C project (semihosting) by new project wizard and the printf function worked properly.
But when I tried to make the same with LPCOpen project, then it failed to print to console.
I followed the steps here http://www.support.code-red-tech.com/CodeRedWiki/UsingPrintf
to link my project to C library contained semihosting and also go to Project Properties -> c/c++ builder -> tool setting -> MCU linker -> Manage linker script -> Redlib (semihosting) and set on for semihosting support in debugger setting of debug configuration.
I have no idea what do i miss to get printf to work in LPCOpen project.
Thank you,
Cuong Hoang.

Outcomes