- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am using modustoolbox with eclipse environment. I want to view some global variables live. Do you have such option in modustoolbox? Or some oscilloscope to view variables in real time?
Thanks,
Solved! Go to Solution.
- Labels:
-
ModusToolbox PSoC 6 SDK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @psoc6_beginner,
You could add a watchpoint for the global variable. The global variable should show up in the Outline window as shown -
Right-click on the variable and select Toggle Watchpoint. You can select if you want to break on variable read or write based on your preference and select Apply and Close. Now when you debug the project the debugger stops whenever the variable is read/written.
Rakshith M B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @psoc6_beginner,
You could add a watchpoint for the global variable. The global variable should show up in the Outline window as shown -
Right-click on the variable and select Toggle Watchpoint. You can select if you want to break on variable read or write based on your preference and select Apply and Close. Now when you debug the project the debugger stops whenever the variable is read/written.
Rakshith M B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks!
I am looking for live watch not the breakpoint. For an example, while my code is running I want to view global variables, how they are changing? Even if the update rate is 1-10msec, that is good. Do Cypress MCU supports such utility?
Thankyou.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @psoc6_beginner,
I do not think this feature is available in ModusToolbox. ModusToolbox uses GDB under the hood. As far as I understand, GDB requires the target to be halted to read the variable.
Can you please let me know the reason for this request? You could print the variable onto a serial terminal at regular intervals or scale the variable appropriately and direct it to a GPIO which can then be traced using an oscilloscope or an analyzer.
Rakshith M B