How many breakpoints can I place?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How many breakpoints can I place?

Jump to solution
2,713 Views
etolocka
Contributor I
Hi

I´m using CW 5.1 with S08GT60.

I place a breakpoint in two different C instructions. The program stops in the first, then I press F5 but the second breakpoint is ignored. Why? I have only one hardware breakpoint available?

Thankfully,
Ernesto.

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
1,074 Views
CrasyCat
Specialist III
Hello
 
I would recommend you to submit a service request to get one of our support engineer to look at that.

Click here to submit a service request.

Make sure to attach a reproducible project and installed product information to the service request.
To generate the required information:
- Start CodeWarrior
- Open the project
- Select "Help" -> "Pack and Go" and follow instructions on the screen.

Attach the generated .zip file to the SR.
 
CrasyCat
 

View solution in original post

0 Kudos
Reply
3 Replies
1,074 Views
CrasyCat
Specialist III
Hello
 
Basically number of breakpoints available depends on the number of hardware breakpoint available on the chip.
 
In case there is not enough resource (HW breakpoints registers) available to set all breakpoint, the debugger would report that right away. It will not ignore the breakpoint. It will just tell you there are
too many breakpoints defined in the application.
 
Are you sure there is code generated for the second location where you tried to set a Breakpoint?
To check that:
  - Start the IDE
  - Set your breakpoints as usual
  - Select Source -> Marks
 
There will be marks in the Source window, at each location where a breakpoint can be set.
Is there a mark in front of the instruction where you try to set the breakpoint?
Are you sure the instruction is executed?
 
CrasyCat
0 Kudos
Reply
1,074 Views
etolocka
Contributor I
Thank you for your response, CrasyCat

Basically number of breakpoints available depends on the number of hardware breakpoint available on the chip.
 
In case there is not enough resource (HW breakpoints registers) available to set all breakpoint, the debugger would report that right away. It will not ignore the breakpoint. It will just tell you there are
too many breakpoints defined in the application.

GT60 has only one HW breakpoint, plus two comparators (triggers A and B)  in the DBG module.

Are you sure there is code generated for the second location where you tried to set a Breakpoint?

Yes, "marks" are activated and every instruction I tried to place the breakpoint has the red mark.

Another test I made: I placed in the code the following:

Breakpoint 1
Breakpoint 2
Trigger A
Breakpoint 3
Trigger B

(the instructions are not contiguous)

Program stops in Breakpoint 1, Trigger A and B. The other breakpoints are ignored.

I understand that I can place only one breakpoint because the microcontroller has only one HW breakpoint, but, why I do not receive any warning message from the debugger when I place additional breakpoints?

Thankfully,
Ernesto.




0 Kudos
Reply
1,075 Views
CrasyCat
Specialist III
Hello
 
I would recommend you to submit a service request to get one of our support engineer to look at that.

Click here to submit a service request.

Make sure to attach a reproducible project and installed product information to the service request.
To generate the required information:
- Start CodeWarrior
- Open the project
- Select "Help" -> "Pack and Go" and follow instructions on the screen.

Attach the generated .zip file to the SR.
 
CrasyCat
 
0 Kudos
Reply