Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong peripheral values are shown when expanded for the first time #33

Open
AndriiLishchynskyi opened this issue Jul 18, 2024 · 0 comments

Comments

@AndriiLishchynskyi
Copy link

Type: Bug Report

  • OS and Version: Windows 10 Enterprise 22H2
  • VS Code Version: 1.91.1
  • Extension Version: 1.4.6
  • Target Device: Cortex-M33-based MCU

The first time XPeripherals view is expanded, it does not display proper register values. "Refresh" button does not help either. As soon as any action (step, continue-pause) is performed, the view is refreshed and shows proper values.

Steps to reproduce the behavior:

  1. In the firmware store value of some peripheral register, lets call it "DAC_VAL" into the variable.
  2. Set breakpoint next to the variable from step#1.
  3. Launch debug session, resume the core until it reaches your breakpoint.
  4. Expand XPeripherals view, then find DAC_VAL reg
  5. Compare value of peripheral register with:
  • DAC_VAL value stored into the variable (step#1) and observe mismatch
  • debug console logs displaying values read by extension and observe mismatch
  1. Press the "Refresh" button and observe it does not change DAC_VAL
  2. Read DAC_VAL by GDB 'x' command and observe GDB's value differs from XPeripherals
  3. Perform single step and observe XPeripherals is refreshed and now shows proper DAC_VAL value

Expected behavior
XPeripherals shows proper values once expanded for the first time

Screenshots
image

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

No branches or pull requests

1 participant