Empty variables while debugging with PSoC Creator 4

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

cross mob
lock attach
Attachments are accessible only for community members.
user_1106811
Level 1
Level 1
Welcome!

Hi,

   

i installed the PSoC Creator 4. When I run the debug mode and the program stops at a breakpoint, the inspected variable is empty. And it also looks like its locked (Symbol). I use the ARM tool chain provided by Cypress. In all previous versions e.g. PSoC Creator 3.3 SP2 the debugging works flawlessly. I wonder how to get the debug working on PSoC Creator 4.

   

Thanks in advance

0 Likes
1 Solution
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

If issue is specific to the custom board,please check the schematics of custom board with the schematic of CY8CKIT-059.

   

You can also look into this document for the "Programming and Debug" section-

   

http://www.cypress.com/file/44581/download

View solution in original post

0 Likes
7 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

I suppose it has to do with optimizing a variable into a register or removing an (unused) variable assign when optimizing.

   

I would suggest you to set Project -> Build settings -> Compiler -> Optimization to "none" and try again.

   

 

   

Bob

0 Likes

The optimization was always set to "none" in our project, in PSoC Creator 4 it is also set to "none".

   

I made a simple new project with PSoC Creator 4, there the debugging works. But when I use my old Project developed with PSoC Creator 3.3 the debugging does not work.

   

Alex

0 Likes

I have additional information on this issue. I have made a project only toggling a led based on a counter variable. The project is made for the CY8CKIT-059 and for a custom board with PSoC CY8C5666LTI-LP005. The version for the CY8CKIT is debugable, the value for the counter is shown correctly. The version for the 5666 otherwise shows an empty value when stopped via breakpoint (debug via swd / miniprog 3).

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

I would suggest you to get in contact with Cypress directly: At top of this page select "Design support -> Create a Support Case" and ask your questions. You will be helped by a Cypress engineer. Would be nice when you keep us informed.

   


Bob

0 Likes
lock attach
Attachments are accessible only for community members.
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

Hello Alexander,

   

I used Counter example project which demonstrates how an 8-bit UDB Counter component works and how to read the Period, Compare, and Counter values of the component.

   

I added watch and a breakpoint on a variable "interruptCnt"which was used to  keep track of the number of interrupts received.

   

I debugged the code on PSOC Creator 3.3 on CY8CKIT-050,The variable was updating after each  breakpoint hit(snapshot attached)

   

Similarly,I debugged the code on PSOC Creator 4.0 on CY8CKIT-050 (CY8C5868AXI-LP035),I observed same phenomenon as observed on PC3.3 after each breakpoint hit.

   

I checked on CY8CKIT-059(CY8C5888LTI-LP097) also, the same phenomenon I observed.

0 Likes
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

If issue is specific to the custom board,please check the schematics of custom board with the schematic of CY8CKIT-059.

   

You can also look into this document for the "Programming and Debug" section-

   

http://www.cypress.com/file/44581/download

0 Likes
mattl_01
Employee
Employee
100 replies posted 50 replies posted 25 replies posted

The bug fix is in PSoC Creator 4.1, which is due out in two weeks.
I apologize for this problem. We really should have caught it.  We've adjusted some of our testing and code review methodology as a result.

0 Likes