Watches have wrong value during debugging LPC1768/J-Link

Need help? Post your issues and bugs here. We will try to fix them.
FAQs

1 post | Page 1 of 1


dk83

Posts: 1
Joined: 10 Mar 2016 22:02

Watches have wrong value during debugging LPC1768/J-Link
Postby dk83 » 10 Mar 2016 22:09

Hi,

I'm new to embedded development, i need some help. I bought a J-Link and started using emIDE. I want to program and debug my LPC1768. I started a new project in emIDE, so i have this basic loop:

int cnt;
cnt = 0;
do {
cnt++;
} while (1);

When i set a breakpoint at the increment of variable 'cnt' it does break during debig.. and i can step thru the code. But when i watch this variable 'cnt', i expect it to increase at each loop iteration. But the watches window shows it has a value of 51200 all the time. It does not change during iteration.

Does anybody know what i'm doing wrong?

Thank you very much,


Bas


Attachments

watches.png
watches.png (122.26 KiB) Viewed 24096 times

Top


1 post | Page 1 of 1


Jump to:


Who is online

Users browsing this forum: No registered users and 1 guest