cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

New Contributor II

I am working with a cy8ckit-059 trying to write see some sensor values read through i2c. The code compiles fine and I can step through it in debug without error; however, in the "Locals" window that appears while in debug mode the local variables aren't listed. I would like to be able to see the values of the sensors I'm communicating with as i step through the code. Is this not something that I can do? Do I need to setup a connection to a teraterm window or something? Thanks in advance.

0 Likes
Reply
1 Solution
Esteemed Contributor II

Set the compiler optimization level to "none" (Project->build settings->Arm...->Compiler->Optimization...). Optimization keeps variables in registers when possible, so they cannot be shown by the debugger.

Bob

View solution in original post

2 Replies
Esteemed Contributor II

Set the compiler optimization level to "none" (Project->build settings->Arm...->Compiler->Optimization...). Optimization keeps variables in registers when possible, so they cannot be shown by the debugger.

Bob

View solution in original post

New Contributor II

Saves the day again, Thanks!

0 Likes
Reply