Skip to content

Commit

Permalink
Resolved - shell and console are comming in different UART
Browse files Browse the repository at this point in the history
  • Loading branch information
Gopalkrishnbiradar committed Sep 9, 2024
1 parent 3f8b382 commit e20ab53
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
3 changes: 0 additions & 3 deletions app/debug.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ CONFIG_HEAP_MEM_POOL_SIZE=16384
#CONFIG_FLASH=y

# Shell Related Configs
CONFIG_SHELL=y
CONFIG_SHELL_LOG_LEVEL_INF=y

# Enable Shell for GPIO
CONFIG_GPIO=y
CONFIG_GPIO_SHELL=y
Expand Down
18 changes: 16 additions & 2 deletions app/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,22 @@
CONFIG_SENSOR=y
CONFIG_BLINK=y

CONFIG_LOG=y
#console config
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

# Logging
CONFIG_LOG=y
CONFIG_LOG_BACKEND_UART=y
CONFIG_LOG_BACKEND_UART_AUTOSTART=y
#CONFIG_DEBUG_BUILD=y
CONFIG_LOG_TIMESTAMP_64BIT=y

# Shell
CONFIG_SHELL=y
CONFIG_SHELL_BACKENDS=y #dependency CONFIG_SHELL
CONFIG_SHELL_BACKEND_SERIAL=y #dependency CONFIG_UART_CONSOLE
CONFIG_SHELL_HISTORY=y

# Disable log redirection to shell to separate it
CONFIG_SHELL_LOG_BACKEND=n

5 changes: 2 additions & 3 deletions boards/technoculture/panomic_board/panomic_board.dts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
compatible = "technoculture,panomic_board";

chosen {
zephyr,console = &usart3;
zephyr,shell-uart = &usart1;
zephyr,console = &usart1;
zephyr,shell-uart = &usart6;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,ccm = &ccm0;
Expand Down Expand Up @@ -145,4 +145,3 @@ zephyr_udc0: &usbotg_hs {
pinctrl-names = "default";
status = "okay";
};

0 comments on commit e20ab53

Please sign in to comment.