This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how can i regarget the 'printf' in my project

HI , ALL

i coded the uart_init in my project.

and i want to regarget the printf in my project.

so i find the retarget function is in the 'retarget.c' ,

i tried define __CC_ARM , ICCARM , GNUC

all failed .

the statement printf("bcde"); only echo b' on my PC

my uart init function shows following:

void uart_init(void) {
 const app_uart_comm_params_t comm_params= {

				RX_PIN_NUMBER,

				TX_PIN_NUMBER,

				RTS_PIN_NUMBER,

				CTS_PIN_NUMBER,

				APP_UART_FLOW_CONTROL_ENABLED,

				false,

				UART_BAUDRATE_BAUDRATE_Baud115200

};

app_uart_init(&comm_params,

              NULL,

              NULL,

              APP_IRQ_PRIORITY_LOW);

}

Related