Skip to content

stm32: Disable WFI when OS_SYSVIEW is defined#2369

Merged
kasjer merged 1 commit into
apache:masterfrom
kasjer:kasjer/systemview-on-stm
Sep 7, 2020
Merged

stm32: Disable WFI when OS_SYSVIEW is defined#2369
kasjer merged 1 commit into
apache:masterfrom
kasjer:kasjer/systemview-on-stm

Conversation

@kasjer
Copy link
Copy Markdown
Contributor

@kasjer kasjer commented Sep 3, 2020

Reading RAM or FLASH from Debugger on STM32 MCUs in SLEEP (WFI)
returns wrong values.
If makes it almost impossible to use with SystemView when application
runs at high clock speed and spend a lot of time in SLEEP mode.
SystemView is often not able to correctly read header for RTT
virtually preventing tool to detect instrumentation.

This change replaces WFI with busy loop waiting for interrupts when
OS_SYSVIEW is defined.

Reading RAM or FLASH from Debugger on STM32 MCUs in SLEEP (WFI)
returns wrong values.
If makes it almost impossible to use with SystemView when application
runs at high clock speed and spend a lot of time in SLEEP mode.
SystemView is often not able to correctly read header for RTT
virtually preventing tool to detect instrumentation.

This change replaces WFI with busy loop waiting for interrupts when
OS_SYSVIEW is defined.
@apache-mynewt-bot
Copy link
Copy Markdown

Style check summary

No suggestions at this time!

Copy link
Copy Markdown
Member

@utzig utzig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kasjer kasjer merged commit f2e1155 into apache:master Sep 7, 2020
@kasjer kasjer deleted the kasjer/systemview-on-stm branch September 7, 2020 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants