I have the same problem.
I have a Arduino UNO board with a ATMEGA328P (28 pins), this microcontroller (original) work good, but when I change the microcontroller by other idem doesn't work. I tried to change the board for Arduino Leonardo but nothing.
Thank you in advance