Maker Pro
Maker Pro

ESP8266: Able to flash but no program execution

Trior

Jul 22, 2023
3
Joined
Jul 22, 2023
Messages
3
Hi everyone,

I designed a PCB based on the ESP8266EX dotn here is the schematic:
1701960853652.png
1701960860287.png
1701960865406.png
To flash the board I use the module: https://joy-it.net/de/products/SBC-ESP8266-PROG I am able to flash the board with Arduino IDE with a simple code:


void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial.println("OK");
}

void loop() {
// put your main code here, to run repeatedly:
Serial.println("OK");
delay(1000);
}

Result of the flashing:
1701960894672.png

But when I open the serial monitor, nothing happens.

All the pins of the 8-pin connector are connected respectively to the Joy-it module.

Flash configuration :
  • Card Type: Generic ESP8266 Module"
  • Upload Speed: "57600
  • CPU Frequency: "160 MHz
  • Crystal Frequency: "40 MHz
  • Flash Size: "4MB (FS:3MB OTA:~512KB)"
  • Flash Mode: "DIO"
  • >Flash Frequency
I've tried different flash configurations without success.

I wonder if it's a connection problem between CHIP_EN and RST pin.

Flash datasheets: https://datasheet.lcsc.com/lcsc/2201121400_HTCSEMI-HT25WD40ARZ_C2928800.pdf

ESP8266EX datasheet: https://www.espressif.com/sites/default/files/documentation/0a-esp8266ex_datasheet_en.pdf
 

danadak

Feb 19, 2021
781
Joined
Feb 19, 2021
Messages
781

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,757
Joined
Nov 17, 2011
Messages
13,757
Have you put the switch on the programming module back to UART mode after programming and performed a reset of the module (unplug from the USB port and plug it back again)?
1702033697296.png

The ESP will not run with the switch in Prog mode.
 

Trior

Jul 22, 2023
3
Joined
Jul 22, 2023
Messages
3
Problem solved. I wasn't flashing esp in the right flash mode. It should have been flashed in DOUT mode.
 
Top