You are here

PSoC 1: Overflow + In-Circuit Emulator (ICE) | Cypress Semiconductor

PSoC 1: Overflow + In-Circuit Emulator (ICE)

Summary: 8 Replies, Latest post by Stahldroid on 09 Sep 2016 02:13 PM PDT
Verified Answers: 0
Last post
Log in to post new comments.
joh9_1534041's picture
User
61 posts

Hello Bob,

im using a ICE + PSoC1-EvalBoard and read "AN73212 Debugging with PSoC®1, Chapter 4.4/Events-Viewer " and "AN15576-PSoC®10-Detecting, Debugging, and Correcting a Stack Overflow, Chapter:Capturing Stack Overflow", but where can i find the overflow or shoud i look. Maybe in Memory or Trace or CPU Register?

In AN73212 stands "e.Enable the ‘Break’ checkbox. This will cause a breakpoint to occur whenever the conditions defined for the entire event state evaluate to true." --> nothing happend.

 

user_1377889's picture
User
10110 posts

So when nothing happens you probably do not have a stack overflow? When I look at the trace date, the SP register does not show an overflow.

 

Bob

joh9_1534041's picture
User
61 posts

Can you please look at my project/sourceCode, thats only 10 Rows and it should produce a overflow ...

user_1377889's picture
User
10110 posts

You do not get a stack overflow which is defined by SP rolling over form 0x00 to 0xff.

What you are doing is to clobber the stack by overwriting it with data. No ICE will detect that!

 

Bob

joh9_1534041's picture
User
61 posts

Thank you very much, for your answer. That mean, problems like:

1. funcOF1

2. funcOF2

4. funcOF4

will not detect from ICE-Debugger, or is there a possibility?

3.but was is with funcOF3? -> this should be detect!?

 

user_1377889's picture
User
10110 posts

funcOF3 will overflow the stack, but will probably not detected.

All these thoughts and all the time spent because you do not want to use a 32bit processor...

 

Bob

joh9_1534041's picture
User
61 posts

Im using a Psoc 5 :-), but the past Project should be finished. Maybe you can tell me why funcOF3() not detect?

Bob you are great, thank you for your Help !!

user_1377889's picture
User
10110 posts

The overflow trigger monitors the sp low limit write. A sudden increase of 240 will not be seen until you write to the variable.

 

Bob

joh9_1534041's picture
User
61 posts

super, thats logical.

Log in to post new comments.