logo elektroda
logo elektroda
X
logo elektroda

[ESP8266][ESP-07] Is the program preloaded at the factory? LED does not light up.

sq9etc 4248 38
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18472400
    sq9etc
    Level 12  
    I own a module as per the topic. I have never used it so far. When I connect it to the power supply, does it execute some program uploaded by the manufacturer? There are two LEDs on it, but neither is lit. The module does not respond to AT commands, I checked on different speeds.
    I have connected according to this description:
    Link .
  • ADVERTISEMENT
  • #2 18472505
    tmf
    VIP Meritorious for electroda.pl
    Usually, there is a soft interpreting AT command uploaded. Maybe you have the interface speed set incorrectly, or you don't add CR+LF at the end?
  • #4 18472727
    khoam
    Level 42  
    sq9etc wrote:
    I have a module as per the topic. I have never used it so far. When I connect it to the power supply, does it execute some program uploaded by the manufacturer? There are two LEDs on it, but neither is lit.
    .
    Does a new WiFi network appear with a name like ESP_xxxxx?

    sq9etc wrote:
    Module does not respond to AT commands

    It doesn't have to, there doesn't necessarily have to be AT firmware uploaded. If it is, on the other hand, it may work at different speeds: 9600 or 115200. If you set a speed of 74880 in the serial terminal, diagnostic information should show up after a chip reset.
  • ADVERTISEMENT
  • #5 18473417
    tmf
    VIP Meritorious for electroda.pl
    khoam wrote:
    Set the speed in the serial terminal to 74880,
    .
    Rather 76800.
  • #7 18473989
    sq9etc
    Level 12  
    tmf wrote:
    There is usually a soft upload that interprets AT commands. Maybe you have the interface speed set incorrectly, or you don't add CR+LF at the end?
    .

    I have tried at different speeds. It doesn't always respond. Mostly on 9600 I think, but always some sort of screaming.

    Added after 55 [seconds]: .

    khoam wrote:
    Is a new WiFi network appearing with a name of type ESP_xxxxx?
    .

    No new network appears.
  • #8 18474044
    khoam
    Level 42  
    sq9etc wrote:
    Mostly on 9600 I think, but always some bushes.

    sq9etc wrote:
    No new network appears.

    It looks like the flash is cleared. The only thing you can do in this situation is to try uploading AT firmware.
  • #9 18474114
    sq9etc
    Level 12  
    khoam wrote:
    It looks like the flash is cleared. The only thing you can do in this situation is to try uploading AT firmware.
    .

    Unfortunately the flashing program cannot connect to the module. The message "Timed out waiting for packet header" appears.
  • #10 18474140
    khoam
    Level 42  
    sq9etc wrote:
    Unfortunately, the flashing program cannot connect to the module. The message "Timed out waiting for packet header" appears.
    .
    What flashing program are you using? What are its settings?
  • #11 18474157
    sq9etc
    Level 12  
    khoam wrote:
    What flashing program are you using? What are its settings?
    .

    ESP8266 DOWNLOAD TOOL V3.6.8. from the Espressif website.
    So far I haven't selected files, I just have the following set up:
    COM8, 115200
    CrystalFreq: 26M,
    SPI SPEED: 40MHz,
    SPI MODE: QIO,
    FLASH SIZE: 8Mbit.
  • #12 18474170
    khoam
    Level 42  
    Is GPIO 0 shorted to ground during flashing? Layout of connections below.

    [ESP8266][ESP-07] Is the program preloaded at the factory? LED does not light up. .

    sq9etc wrote:
    SPI MODE: QIO,
    .
    Set DIO.
  • #13 18474228
    sq9etc
    Level 12  
    khoam wrote:
    Is GPIO 0 shorted to ground during flashing?
    .

    Yes.
    I do not have RST and GPIO16 connected. CH_PD directly to the power supply (I shorted a resistor because it makes no difference). Similarly GPIO15 directly to ground. GPIO0 and GPIO2 without pull-up resistors to Vcc. GPIO2 directly to GND. Another difference is that the ground of the converter and the module are not connected.
  • #14 18474241
    khoam
    Level 42  
    sq9etc wrote:
    GPIO2 directly to ground.
    .
    This should not be the case. In the thread you provided a link to, it states: "Flashing without 3.3V on GPIO2 does not start...".

    sq9etc wrote:
    I do not have RST and GPIO16 connected.
    .
    At least the RST should be connected via a resistor to 3V3.

    sq9etc wrote:
    GPIO0 and GPIO2 without pull-up resistors to Vcc.
    .
    There should be these resistors.

    sq9etc wrote:
    The grounds of the converter and module are not connected.
    .
    The masses of both circuits should be connected.
  • ADVERTISEMENT
  • #15 18474262
    sq9etc
    Level 12  
    khoam wrote:
    The weights of both systems should be connected.


    I have connected the masses, no change. I will add the resistors later, as I already have enough for today. I come across different wiring diagrams and I don't know which is the right one. Sometimes instead of a time out it says "Invalid head of packet ('xyz')", where "xyz" is different.
  • #16 18474269
    khoam
    Level 42  
    sq9etc wrote:
    I will add the resistors later,
    .
    Without these corrections that I specified earlier flashing will not start. Probably also the reason why you had a problem accessing ESP in general.
  • #17 18474305
    sq9etc
    Level 12  
    I added all the resistors and even a capacitor to the RST, but nothing changed. Maybe this module is faulty.
  • ADVERTISEMENT
  • #18 18474825
    khoam
    Level 42  
    Have you disconnected GPIO 2 from ground? Does the module also not respond when you connect the serial terminal to it?
  • #19 18475257
    sq9etc
    Level 12  
    khoam wrote:
    Have you disconnected GPIO 2 from ground? Does the module also not respond when you connect the serial terminal to it?
    .
    GPIO2 wasn't connected to GND, it was connected to Vcc via a resistor as shown in the schematic. It's the same when I tried to connect via the terminal with the Arduino IDE and RealTerm.
  • #20 18475335
    khoam
    Level 42  
    Could you post a picture of the layout? I mean the top part of course.
  • #22 18479277
    kaczakat
    Level 34  
    Did you connect 5V or 3.3V to VCC? This board has the possibility to solder a 3.3V regulator on the back and you can then connect 5V to the VCC pin (max depends on which regulator), but you have to remove the resistor R2 - 0 (jumper). For ESP07 programming on this board you can use the part from the ESP module Witty, the bottom part of the sandwich fits perfectly, but then you have to solder this regulator and remove the jumper, Witty gives 5V on VCC.
    Did the red led start to light up for you when power was applied? The blue one should flash when power is applied or when you do a reset, it's a sign that something is sending to the UART on that 74k speed.
    76k or 74k is also so moderately relevant to the UART, I have in the Arduino IDE one speed, in my program the other, both work OK.
    Another thing, for normal commissioning you don't need to add anything in this board, all the resistors required for normal operation are already on the board, some inside the ESP07 and the rest on the adapter. For programming, all you need to do is short pin 0 to GND and then do RST, disconnect pin0, upload the program (3.3V logic level of course), then RST again or reconnect the power supply and it should work. The adapter from Witty does this automatically (RST, programming mode, operating mode) when the target board in the Arduino IDE is for example this one:
    [ESP8266][ESP-07] Is the program preloaded at the factory? LED does not light up. .
    Helpful post? Buy me a coffee.
  • #23 18479423
    khoam
    Level 42  
    kaczakat wrote:
    76k or 74k is also so ¶ mediately matters for the UART , I have in the Arduino IDE one speed, in my program the other, both work OK.
    .
    Strange, in my Arduino IDE it is (as recommended by the manufacturer):
    [ESP8266][ESP-07] Is the program preloaded at the factory? LED does not light up. .

    However, the UART on the ESP8266 does not support 76k:
    Code: C / C++
    Log in, to see the code

    https://github.com/espressif/ESP8266_NONOS_SDK/blob/master/driver_lib/include/driver/uart.h
  • #24 18479743
    kaczakat
    Level 34  
    I also have a 74k in my Arduino and it works. But 76k also works:
    [ESP8266][ESP-07] Is the program preloaded at the factory? LED does not light up. .
    Both speeds work in realtherm too, although in turn this software does not support either:
    [ESP8266][ESP-07] Is the program preloaded at the factory? LED does not light up. .
    [ESP8266][ESP-07] Is the program preloaded at the factory? LED does not light up. .
    Maybe the difference is too small to be relevant to the occurrence of errors, maybe the uart converter doesn't give a damn what it is set to and chooses the closest possible one, well that would be acutely inconsistent with what you wrote, because the CP2102 that I have now connected supports just 76800 You have to check on FTDI, this one has a larger range and see when something cries out, but that's if someone is very curious and determined (CH34x also has 76800).
    Helpful post? Buy me a coffee.
  • #25 18480549
    khoam
    Level 42  
    kaczakat wrote:
    no but that would be acutely inconsistent with what you wrote, because the CP2102 I have now connected supports just 76800
    .
    Not quite. Exactly, in the case of CP21xx chips, it is possible to change the speed (via the driver on the host) from the "standard" speed to the one set in the serial terminal. For example, for the "standard supported" 76800, the speed can be changed from 64112 to 77608.
  • #26 18481420
    sq9etc
    Level 12  
    kaczakat wrote:
    Did you connect 5V or 3.3V to VCC?
    .
    I supply the board with 3.3V. I also switched the USB/USART converter to 3.3V, but I did not let the power from it go to the contact board. I took power from an external power supply and a power module for the contact board. I'm just wondering if, with the converter set to 3.3V, this is also the voltage level on its signal lines.
    As I wrote earlier, none of the LEDs on the ESP-07 module are lit.
  • Helpful post
    #27 18481459
    khoam
    Level 42  
    sq9etc wrote:
    As I wrote earlier, no diode on the ESP-07 module is lit.
    .
    Can you measure what the voltage is directly on the ESP-07 pin? Marked, as VCC on the picture below.

    [ESP8266][ESP-07] Is the program preloaded at the factory? LED does not light up. .
  • #28 18481494
    sq9etc
    Level 12  
    khoam wrote:
    Can you measure what the voltage is directly on the ESP-07 pin? Marked, as VCC on the picture below.
    .
    Thanks khoam. Good clue. I must have soldered the Vcc pin of the adapter wrong. As I pressed it harder with the multimeter tip, the red LED on the module started to light up. I always have a problem with soldering.
  • #29 18481502
    khoam
    Level 42  
    sq9etc wrote:
    I must have soldered the Vcc pin of the adapter incorrectly.
    .
    Well just from the photo you posted earlier it looked like cold solder, but I didn't want to criticise you so immediately ;)
  • #30 18481520
    sq9etc
    Level 12  
    khoam wrote:
    Well from the photo you posted earlier it looked like cold solder, but I didn't want to criticise you so immediately
    .
    However, you should have:) .
    I'll correct this tomorrow and re-call the rest of the connections just to be sure.
    There is hope that I have not rammed the module.

Topic summary

The discussion revolves around an ESP8266 ESP-07 module that fails to light up its LEDs or respond to AT commands after being powered. Users suggest that the module should light up a red LED upon power application, indicating it is functioning. Various troubleshooting steps are discussed, including checking the serial communication speed (notably 9600, 74880, and 115200), ensuring proper connections, and verifying the firmware. The author experiences issues with flashing the module, receiving timeout errors, and ultimately discovers that poor soldering on the Vcc pin was the cause of the initial failure. After correcting the soldering, the module successfully powers on and creates a Wi-Fi network, although it runs an outdated AT firmware version. Users recommend updating the firmware or directly programming the module using the Arduino IDE without needing the existing firmware.
Summary generated by the language model.
ADVERTISEMENT