I have programmed my MCU before two days and everything worked fine. I am testing the code, so I was powering it and disconnecting it during these two days couple of times. Today part of my code stopped working. After reuploading the same code everything is working again. I am not using flash or EEPROM in any part of my code. What can cause these types of problems?
Try to reproduce the problem, enable and disable part of your code and narrow the problem down.
Put traces in it, and see where it stops.
We have all been there, first it does not work, then it works sometimes and at the end you succeed or not, but to know why is the key to make progress.
Best regards,
Johi.