- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to view the content of a variable in WICED SDK in debug mode
I reduced the compiler optimization to -O0 in the file: wiced_toolchain_ARM_GNU.mk file (located under \tools\makefiles)
Here is a snapshot of the screen during the debugging session:
I really appreciate any help.
Thanks,
Ramzi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can try using the volatile qualifier with the variable. For example, volatile size_t fill. That might help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Optimized out means that the variable is kept in a register so that the debugger cannot access it. When you have the choice you may set the compiler optimization level to "none".
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can try using the volatile qualifier with the variable. For example, volatile size_t fill. That might help.