[quote user="alan alban"] My problem now is, if i program the chip it works great! but if i then go and try to program it again it'll give me a message saying it can't connect to the device.[/quote]
Not sure what is causing this to happen, but there is a software reset within CCS (in the CCS Debug perspective, under menu Run->Reset) which you could try to reset the CPU.