My standalone ATMEGA32U4 based board with an Arduino Micro bootloader was working fine with the code (part of which is shown below) until I decided to comment out the line WiFi.init(&Net); and uploaded the code again.
After that, i am unable to upload anything, the Serial Port is no longer detected and I cant even burn the bootloader with a programmer! The MCU oscillator is still working fine which was tested with an oscilloscope. The bad news is that I was even able to …replicate the above with a second board which is now also bricked!!
#include <EEPROM.h> #include <avr/pgmspace.h> #include <pins_arduino.h> #include <SoftwareSerial.h> #include "Definitions.h" #include "WiFiEsp.h" ... ... ... // ********** WIFI Setup********* pinMode (esp8266Enable,OUTPUT); digitalWrite (esp8266Enable,HIGH); pinMode(esp8266Reset, OUTPUT); digitalWrite (esp8266Reset,HIGH); Net.begin (9600); WiFi.init(&Net); ... ... ...
I was just about to replace the MCU with a new one when I thought that someone out there might think of something else to try out before.