Hi.. I ve design a board based on the Mighty Core 1284p chip running at 3.3V along with a ESP-7S.
The ESP module is connected to Serial1 while I use Serial for debugging.
I am posting a simplified version both of the schematic as well as the code for debugging purposes. This is the only part of the PCB that has been populated for now anyway.
Serial.begin(9600); // Initialise serial port for USB to PC
while (Serial.available()) {}
Serial.println(F("Sending to Wifi Module.."));
}
void loop() {
delay (5);
char c;
if (Serial1.available()) {
Serial.write(Serial1.read());
}
if (Serial.available()) {
c=Serial.read();}
Serial1.write(c);
}
For the past 3 days I am trying to send AT commands to the ESP module which wont respond.
I have already tried different baud rates for Serial1 including 9600
Verified that the PSU can deliver more than 1A at 3V3
Checked all wiring and solder joints.
Used a second ESP module .. just in case...
Needless to say that Serial Port comms with the MCU work fine.
Are you sure ESP has the AT firmware on it? https://www.espressif.com/en/products/sdks/esp-at/overview
Espressif boards are just microcontrollers so you can either program them directly and use them as the main uC or flash the firmware from espressif that allows you to use them with AT commands.
and it seems that Rx,Tx connections are wrong but I have tried to reverse them and it didnt make any difference.
I have now also tried to connect the FTDI directly to the module and still there is no response on the serial port.
So I would deduce that there is no AT firmware on the chip.
I removed the ESP module and used this programmer to test it. Highly recommended by the way if you have a 3d printer! So, it appears the ESP module works fine and it has the AT firmware installed.
Next, having removed the ESP module I connected a second FTDI module in its place and used a simple code to send from Serial to Serial1 Port for testing.
The result is i can send from Serial to Serial1 but not the other way round.
Which means that when the ESP module was connected, it could receive AT commands but its response never reached the MCU.
Given that all wiring is correct and verified (continuity verified all the way from FTDI pins to MCU pins), is it possible that the Rx pin of Serial1 failed?
Any ideas for further testing before actually replacing the MCU?
Its an SMD TQFP-44 and I d prefer not to replace it unless necessary!