"int i;" should be "volatile int i;" so main sees the changes from the ISR. Do you have a 32kHz crystal installed on your board? As I recall, the crystal is not pre-installed on the G2 Launchpad, though there may be one floating around in the box.
↧