Skip to content

stm32: g0b1: RTT doesn't work properly after stop mode #43836

@ycsin

Description

@ycsin

Describe the bug
The RTT stops working properly after the MCU enter stop mode. I'm on 2.7.1 LTS branch which already has #38561 patch.
It prints garbage after MCU went to sleep, it also missed some lines that would have been printed if UART backend were used:

image

image

Apart from this, I believe some of the character (next line?) sent from the log/shell cant be recognized by the RTT viewer for some reason:

WARNING: <Terminal 0>: ANSI CSI SGR parameter 7 not supported.
WARNING: <Terminal 0>: ANSI CSI SGR parameter 7 not supported.
WARNING: <Terminal 0>: ANSI CSI SGR parameter 7 not supported.
WARNING: <Terminal 0>: ANSI CSI SGR parameter 7 not supported.
WARNING: <Terminal 0>: ANSI CSI SGR parameter 7 not supported.

Environment (please complete the following information):

  • OS: Windows
  • gnuarmemb
  • 2.7.1 LTS

prj.conf
I have these extra Kconfig to get the RTT built:

CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_BACKEND_UART=n

CONFIG_LOG_BACKEND_RTT_BUFFER=1
CONFIG_SHELL_BACKEND_SERIAL=n
CONFIG_SHELL_BACKEND_RTT=y

shell_rtt.c fails to build without CONFIG_LOG_BACKEND_RTT_BUFFER=1:

C:/Users/yongc/zephyrproject/zephyr/subsys/shell/shell_rtt.c:12:1: note: in expansion of macro 'BUILD_ASSERT'
   12 | BUILD_ASSERT(!(IS_ENABLED(CONFIG_LOG_BACKEND_RTT) &&
      | ^~~~~~~~~~~~

Metadata

Metadata

Assignees

Labels

StalebugThe issue is a bug, or the PR is fixing a bugplatform: STM32ST Micro STM32priority: lowLow impact/importance bug

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions