Hi,
I am interfacing the Peripheral_hids_keyboard + peripheral_uart code
I code can print all the log info data printk and printf data in uart console
I want to separate the printing that LOG_INF,LOG_WAR and LOG_ERR should be print only in Debug RTT Terminal
and Printk / printf function should print in Uart terminal
Before merging the two example code
I tested the NUS code/ Peripheral_uart code there it prints some data in debug terminal as well as Uart terminal
but after combining the two codes
it print only in Uart terminal
the kconfig file
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
source "Kconfig.zephyr"
menu "Nordic BLE HIDS Keyboard sample"
config NFC_OOB_PAIRING
bool "Enable NFC OOB pairing"
default y if BOARD_NRF5340PDK_NRF5340_CPUAPP
default y if BOARD_NRF52840DK_NRF52840
default y if BOARD_NRF52DK_NRF52832
select NFC_T2T_NRFXLIB
select NFC_NDEF
select NFC_NDEF_MSG
select NFC_NDEF_RECORD
select NFC_NDEF_LE_OOB_REC
config BT_NUS_THREAD_STACK_SIZE
int "Thread stack size"
default 1024
help
Stack size used in each of the two threads
prj.conf file
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CONFIG_NCS_SAMPLES_DEFAULTS=y
CONFIG_LOG_DEFAULT_LEVEL=3
CONFIG_BT=y
CONFIG_BT_DEBUG_LOG=y
CONFIG_BT_MAX_CONN=2
CONFIG_BT_MAX_PAIRED=2
CONFIG_BT_SMP=y
CONFIG_BT_L2CAP_TX_BUF_COUNT=5
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DEVICE_NAME="Glosdex Headset"
CONFIG_BT_DEVICE_APPEARANCE=961
CONFIG_BT_BAS=y
CONFIG_BT_HIDS=y
CONFIG_BT_HIDS_MAX_CLIENT_COUNT=1
CONFIG_BT_HIDS_DEFAULT_PERM_RW_ENCRYPT=y
CONFIG_BT_GATT_UUID16_POOL_SIZE=40
CONFIG_BT_GATT_CHRC_POOL_SIZE=20
CONFIG_BT_LL_SOFTDEVICE_DEFAULT=y
1. How to separate the Log print in debug terminal and printk / printf in uart terminal?
2. How to disable printk only but need to print the PRINTF and others ?