Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 5, 3 & 1 Forum Discussions

DaRe_2236336
Level 3
Level 3
First like given

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
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

3 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

Saves the day again, Thanks!

0 Likes

You're always welcome!

Happy coding

Bob

0 Likes