cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
tim_severance
Scholar
Scholar
1,289 Views
Registered: ‎03-03-2017

SDK memory watchpoint help

Hi, I am developing using Kintex-7 using Vivado/SDK 2017.4 and am debugging an issue where some piece of code is overwritting BRAM address 0x0 which is keeping the external reset from working.

 

So to try and debug what code is doing the overwrite I wanted to set a watchpoint on address 0x0, so I opened 0x0 in the Memory tab in the bottom right of the SDK Debug view which shows 0xB0000000 when my code is stopped at the first line in main() which is the expected value.   I right clicked on the memory value and selected "Add Watchpoint" shown below.

 

add_watchpoint.png

 

I then left the watchpoint setup as-is and hit OK since what I am interested in is when that memory location is written (see below).

 

watchpoint_setup.png

 

But when I run the code it never stops at that watchpoint and if I hit the pause button then you can see the memory was overwritten (see below).

 

memory_overwritten.png

 

Is there something I am doing wrong in the Watchpoint setup?   I was really hoping this would work.

 

Thanks.

Tim

0 Kudos
2 Replies
sadanan
Xilinx Employee
Xilinx Employee
1,272 Views
Registered: ‎10-21-2010

Hi Tim,

 

Does your Vivado design have watchpoints enabled for MB? With the default configuration, no watchpoints are enabled, so please check how many number of watchpoints your design supports (it should be in MicroBlaze IP config wizard in Vivado). SDK should have thrown an error if there are no watchpoints enabled, but I'm wondering if the error is lost somewhere

tim_severance
Scholar
Scholar
1,269 Views
Registered: ‎03-03-2017

@sadanan,

   Good information.   I was not aware of this setup.   See my MicroBlaze setup shown below which indeed has no watchpoints enabled.   So it is interesting that SDK did not give me a warning.   I will try and enable this and verify it works and respond later with the results.   My implementation time is very long so it may be a while before I respond.

 

mblaze_setup.png

 

Tim

0 Kudos