This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2640R2F 如何在程序中调用printf()函数

Other Parts Discussed in Thread: CC2640R2F
      //获取连接句柄
        GAPRole_GetParameter(GAPROLE_CONNHANDLE, &nGUA_ConnHandle);

        //写一个20字节的测试缓冲区的数据
        GUAProfile_GetParameter(0, naGUA_Buf);//read the date

		//GUA_UART_Send("recived ok\r\n", 15);
		switch(naGUA_Buf[0])
			{
			case 0x01:{
		//if(naGUA_Buf[0] == 0x01){
			//float_to_char(naGUA_Buf[0],Send_tab5,10);
			//UartSendData(naGUA_Buf[0],8);
			//printf("1111\r\n");
			snprintf(&naGUA_Buf[0],"%02x",Send_tab5[0]);
			printf("%04X \r\n",naGUA_Buf[0]);
			GUA_UART_Send(naGUA_Buf[0],4);
			//GUA_UART_Send(&naGUA_Buf[0], 8);
			//GUA_UART_Send("\r\n",2);
			GUA_Led_Set(GUA_LED_NO_1, GUA_LED_MODE_ON);//LED1 ON
			GUA_Led_Set(GUA_LED_NO_2, GUA_LED_MODE_OFF);//LED2 OFF
			GUA_Led_Set(GUA_LED_NO_3, GUA_LED_MODE_OFF);//LED3 OFF
			}break;

在开发CC2640R2F的蓝牙程序时想通过printf()函数将收到的数据通过串口打印出来,但是无论如何都不能调用成功