volatile float f; int i; f = 0.5; i = f; PrintInt(i);This code will actually print -2147483648 because it converted the float to 0x80000000 instead of 0.
You can use the function FloatToInt() in Utils.c to do the conversion correctly.
If that doesn't work, remove every cable (programming cable, serial cable, power/batter cable, etc), let it sit for a few seconds, then reconnect and reprogram it.
Still having trouble? Clean the software build by selecting (in XPS) the "Tools" menu, selecting "Clean", then clicking "Software". This will cause the tools to completely regenerate the software and libraries. As a last resort you can also clean everything by selectin "All" from the same menu.