Adding CONFIG_SHELL=y to mouse&keyboard nRF Desktop sample stops mouse from working

ncs 2.4.2, windows 10, nrf52840

Hello,

I have made some changes to use nrf desktop as mouse and keyboard by adding these lines to configuration/nrf52840dk_nrf52840/prj_keyboard.conf.

# Add mouse support
CONFIG_DESKTOP_HID_REPORT_MOUSE_SUPPORT=y
CONFIG_DESKTOP_PERIPHERAL_TYPE_MOUSE=y
CONFIG_DESKTOP_HID_BOOT_INTERFACE_MOUSE=y
CONFIG_BT_HIDS_INPUT_REP_MAX=4
CONFIG_BT_HIDS_ATTR_MAX=49
CONFIG_BT_GATT_UUID16_POOL_SIZE=74
CONFIG_BT_GATT_CHRC_POOL_SIZE=24
CONFIG_DESKTOP_MOTION_SIMULATED_ENABLE=y
CONFIG_DESKTOP_MOTION_SIMULATED_EDGE_TIME=32
CONFIG_DESKTOP_MOTION_SIMULATED_SCALE_FACTOR=2
CONFIG_DESKTOP_HID_REPORT_KEYBOARD_SUPPORT=y
I also want to use the shell, as my application will have custom shell commands.
So I comment out these lines in the conf file
# CONFIG_SERIAL=n
# CONFIG_CONSOLE=n
# CONFIG_UART_CONSOLE=n
Then add my own
CONFIG_SERIAL=y
CONFIG_SHELL=y
But when I add CONFIG_SHELL=y, the HID mouse stops working! No cursor appears in Android or PC (iPad untested)
I only tested bluetooth, but probably usb as well.
Why would enabling the shell stop the HID commands?
How can I use the shell and get HID mouse data at the same time?
I am open to using the second USB port on the DK, but I know that it is also used for sending HID data, which is a feature that I want.
I plan to add a USB CDC ACM instance in parallel with the HID USB for device configuration.
 
Thank you.
Related