Wemos d1 mini pro is not working in esphome (EXCEPTION DECODER - ERROE)

Problem :
When I try to use Wemos d1 mini pro in esphome, Wemos d1 mini pro is not booting it is showing some error in the log, which I cont understand.

esphome code :
I didn’t edit anything in the code. it came out when I create a new device by giving the device name and board type.

esphome:
  name: esp-eb

esp8266:
  board: d1_mini_pro

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "aVLsH8jfp0NAZQ8DY5dlmk0wcGomQl7SgGTJ0WuAo6M="

ota:
  password: "ea9f8000236dbc42be9ac14a4753d208"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Esp-Eb Fallback Hotspot"
    password: "LcoDGAvIYAwu"

captive_portal:
    

Logging error:
log file - which I downloaded from esphome web tool: logs.txt - Google Drive

Dut to text limitation, just showing part of the code here, the full log file is in the above link.

rl l��| �l�|�l�b|����r�b�b��nn�lnn���bp��lrlrlp�n��l��bn�|���b��nn� l��l`�nn�lnr���nrr�`p�n�r������bn�|�b��nn� �l`�nn�lnr���nrl`r��nrl`�쎎�l`��n�l[I][logger:258]: Log initialized
[C][ota:469]: There have been 5 suspected unsuccessful boot attempts.
[I][app:029]: Running through setup()...
[C][wifi:037]: Setting up WiFi...
[C][wifi:038]:   Local MAC: D8:BF:C0:FD:25:1A
[D][wifi:386]: Starting scan...

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

Exception (0):
epc1=0x40257f83 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

>>>stack>>>

ctx: sys
sp: 3fffedb0 end: 3fffffb0 offset: 0190
3fffef40:  00000000 3fffdad0 3ffefcc0 40226c1a  
3fffef50:  3ffea2e8 40000f49 3fffdab0 40000f49  
3fffef60:  40000e19 00074f79 00000000 00000005  
3fffef70:  00000000 aa55aa55 000000ed 4010562d  
3fffef80:  40105633 00000000 00000005 40100d68  
3fffef90:  4010000d 00000033 00074f79 401000ac  
3fffefa0:  4024c994 3fffef3c 4024c945 3ffffe68  
3fffefb0:  3fffffc0 00000000 00000000 feefeffe  
3fffefc0:  feefeffe feefeffe feefeffe feefeffe  
3fffefd0:  feefeffe feefeffe feefeffe feefeffe  
3fffefe0:  feefeffe feefeffe feefeffe feefeffe  
3fffeff0:  feefeffe feefeffe feefeffe feefeffe  
3ffff000:  feefeffe feefeffe feefeffe feefeffe  
3ffff010:  feefeffe feefeffe feefeffe feefeffe  
3ffff020:  feefeffe feefeffe feefeffe feefeffe  
3ffff030:  feefeffe feefeffe feefeffe feefeffe  
3ffff040:  feefeffe feefeffe feefeffe feefeffe  
3ffff050:  feefeffe feefeffe feefeffe feefeffe  
3ffff060:  feefeffe feefeffe feefeffe feefeffe  
3ffff070:  feefeffe feefeffe feefeffe feefeffe  
3ffff080:  feefeffe feefeffe feefeffe feefeffe  
3ffff090:  feefeffe feefeffe feefeffe feefeffe  
3ffff0a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff0b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff0c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff0d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff0e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff0f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff100:  feefeffe feefeffe feefeffe feefeffe  
3ffff110:  feefeffe feefeffe feefeffe feefeffe  
3ffff120:  feefeffe feefeffe feefeffe feefeffe  
3ffff130:  feefeffe feefeffe feefeffe feefeffe  
3ffff140:  feefeffe feefeffe feefeffe feefeffe  
3ffff150:  feefeffe feefeffe feefeffe feefeffe  
3ffff160:  feefeffe feefeffe feefeffe feefeffe  
3ffff170:  feefeffe feefeffe feefeffe feefeffe  
3ffff180:  feefeffe feefeffe feefeffe feefeffe  
3ffff190:  feefeffe feefeffe feefeffe feefeffe  
3ffff1a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff1b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff1c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff1d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff1e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff1f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff200:  feefeffe feefeffe feefeffe feefeffe  
3ffff210:  feefeffe feefeffe feefeffe feefeffe  
3ffff220:  feefeffe feefeffe feefeffe feefeffe  
3ffff230:  feefeffe feefeffe feefeffe feefeffe  
3ffff240:  feefeffe feefeffe feefeffe feefeffe  
3ffff250:  feefeffe feefeffe feefeffe feefeffe  
3ffff260:  feefeffe feefeffe feefeffe feefeffe  
3ffff270:  feefeffe feefeffe feefeffe feefeffe  
3ffff280:  feefeffe feefeffe feefeffe feefeffe  
3ffff290:  feefeffe feefeffe feefeffe feefeffe  
3ffff2a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff2b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff2c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff2d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff2e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff2f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff300:  feefeffe feefeffe feefeffe feefeffe  
3ffff310:  feefeffe feefeffe feefeffe feefeffe  
3ffff320:  feefeffe feefeffe feefeffe feefeffe  
3ffff330:  feefeffe feefeffe feefeffe feefeffe  
3ffff340:  feefeffe feefeffe feefeffe feefeffe  
3ffff350:  feefeffe feefeffe feefeffe feefeffe  
3ffff360:  feefeffe feefeffe feefeffe feefeffe  
3ffff370:  feefeffe feefeffe feefeffe feefeffe  
3ffff380:  feefeffe feefeffe feefeffe feefeffe  
3ffff390:  feefeffe feefeffe feefeffe feefeffe  
3ffff3a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff3b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff3c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff3d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff3e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff3f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff400:  feefeffe feefeffe feefeffe feefeffe  
3ffff410:  feefeffe feefeffe feefeffe feefeffe  
3ffff420:  feefeffe feefeffe feefeffe feefeffe  
3ffff430:  feefeffe feefeffe feefeffe feefeffe  
3ffff440:  feefeffe feefeffe feefeffe feefeffe  
3ffff450:  feefeffe feefeffe feefeffe feefeffe  
3ffff460:  feefeffe feefeffe feefeffe feefeffe  
3ffff470:  feefeffe feefeffe feefeffe feefeffe  
3ffff480:  feefeffe feefeffe feefeffe feefeffe  
3ffff490:  feefeffe feefeffe feefeffe feefeffe  
3ffff4a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff4b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff4c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff4d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff4e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff4f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff500:  feefeffe feefeffe feefeffe feefeffe  
3ffff510:  feefeffe feefeffe feefeffe feefeffe  
3ffff520:  feefeffe feefeffe feefeffe feefeffe  
3ffff530:  feefeffe feefeffe feefeffe feefeffe  
3ffff540:  feefeffe feefeffe feefeffe feefeffe  
3ffff550:  feefeffe feefeffe feefeffe feefeffe  
3ffff560:  feefeffe feefeffe feefeffe feefeffe  
3ffff570:  feefeffe feefeffe feefeffe feefeffe  
3ffff580:  feefeffe feefeffe feefeffe feefeffe  
3ffff590:  feefeffe feefeffe feefeffe feefeffe  
3ffff5a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff5b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff5c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff5d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff5e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff5f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff600:  feefeffe feefeffe feefeffe feefeffe  
3ffff610:  feefeffe feefeffe feefeffe feefeffe  
3ffff620:  feefeffe feefeffe feefeffe feefeffe  
3ffff630:  feefeffe feefeffe feefeffe feefeffe  
3ffff640:  feefeffe feefeffe feefeffe feefeffe  
3ffff650:  feefeffe feefeffe feefeffe feefeffe  
3ffff660:  feefeffe feefeffe feefeffe feefeffe  
3ffff670:  feefeffe feefeffe feefeffe feefeffe  
3ffff680:  feefeffe feefeffe feefeffe feefeffe  
3ffff690:  feefeffe feefeffe feefeffe feefeffe  
3ffff6a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff6b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff6c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff6d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff6e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff6f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff700:  feefeffe feefeffe feefeffe feefeffe  
3ffff710:  feefeffe feefeffe feefeffe feefeffe  
3ffff720:  feefeffe feefeffe feefeffe feefeffe  
3ffff730:  feefeffe feefeffe feefeffe feefeffe  
3ffff740:  feefeffe feefeffe feefeffe feefeffe  
3ffff750:  feefeffe feefeffe feefeffe feefeffe  
3ffff760:  feefeffe feefeffe feefeffe feefeffe  
3ffff770:  feefeffe feefeffe feefeffe feefeffe  
3ffff780:  feefeffe feefeffe feefeffe feefeffe  
3ffff790:  feefeffe feefeffe feefeffe feefeffe  
3ffff7a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff7b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff7c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff7d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff7e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff7f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff800:  feefeffe feefeffe feefeffe feefeffe  
3ffff810:  feefeffe feefeffe feefeffe feefeffe  
3ffff820:  feefeffe feefeffe feefeffe feefeffe  
3ffff830:  feefeffe feefeffe feefeffe feefeffe  
3ffff840:  feefeffe feefeffe feefeffe feefeffe  
3ffff850:  feefeffe feefeffe feefeffe feefeffe  
3ffff860:  feefeffe feefeffe feefeffe feefeffe  
3ffff870:  feefeffe feefeffe feefeffe feefeffe  
3ffff880:  feefeffe feefeffe feefeffe feefeffe  
3ffff890:  feefeffe feefeffe feefeffe feefeffe  
3ffff8a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff8b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff8c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff8d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff8e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff8f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff900:  feefeffe feefeffe feefeffe feefeffe  
3ffff910:  feefeffe feefeffe feefeffe feefeffe  
3ffff920:  feefeffe feefeffe feefeffe feefeffe  
3ffff930:  feefeffe feefeffe feefeffe feefeffe  
3ffff940:  feefeffe feefeffe feefeffe feefeffe  
3ffff950:  feefeffe feefeffe feefeffe feefeffe  
3ffff960:  feefeffe feefeffe feefeffe feefeffe  
3ffff970:  feefeffe feefeffe feefeffe feefeffe  
3ffff980:  feefeffe feefeffe feefeffe feefeffe  
3ffff990:  feefeffe feefeffe feefeffe feefeffe  
3ffff9a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff9b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff9c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff9d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff9e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff9f0:  feefeffe feefeffe feefeffe feefeffe  
3ffffa00:  00000003 00000000 0000000a 00000000  
3ffffa10:  00000003 00000000 0000000a 00000000  
3ffffa20:  00000003 00000000 0000000a 00000000  
3ffffa30:  00000000 a0000000 00000000 0000001c  
3ffffa40:  00003000 a0000000 00003000 3ffe8368  
3ffffa50:  00000000 00000004 3ffffbc0 402320f8  
3ffffa60:  3ffffb50 3ffffb53 00000000 402320f8  
3ffffa70:  3ffffb61 3ffffb3a 4022d9f1 3ffe8368  
3ffffa80:  00000003 00000000 3ffffbc0 402320f8  
3ffffa90:  40232034 3ffffb50 00000003 00000000  
3ffffaa0:  40232034 3ffffb61 00000002 3ffffbc0  
3ffffab0:  3ffe8c65 00000000 3ffffb10 4022db20  
3ffffac0:  00000003 3ffffbb3 00000000 3ffe8368  
3ffffad0:  00000003 00000000 3ffffbc0 402320f8  
3ffffae0:  00000000 3ffe8c65 00000003 00000000  
3ffffaf0:  40232034 3fff11b4 00000011 3ffe8c65  
3ffffb00:  3fff09bc 00000000 3ffffbc0 402322f9  
3ffffb10:  00000004 ffffffff ffffffff 3ffe8368  
3ffffb20:  00000010 00000000 3ffffc10 402320f8  
3ffffb30:  0000000e 3fff09bc 00000010 402320f8  
3ffffb40:  40232034 3fff09bc 0000000e 3fff09bc  
3ffffb50:  3fff09cc 00000000 3ffffc10 402322f9  
3ffffb60:  3ffeffdc 3ffeffd4 00000000 40235075  
3ffffb70:  3ffffcb0 00000010 00302018 00000001  
3ffffb80:  3ffffcb0 80af1999 00000008 3ffe8368  
3ffffb90:  ffffffd3 00000000 40240000 ffffff1a  
3ffffba0:  00000006 00000006 42d60000 42d60000  
3ffffbb0:  402532df 00000017 00000018 00000001  
3ffffbc0:  3ffe9e8e 4024fd3a 40258b73 00000001  
3ffffbd0:  ffffffff 00000000 3ffea3f1 00000008  
3ffffbe0:  40258bc2 3fff11cc 3fff11cc 00000000  
3ffffbf0:  00000000 00000000 00000020 40100514  
3ffffc00:  000000c0 00000000 00000000 40102294  
3ffffc10:  3ffea2a0 40257c7f 3fff11cc 3ffee540  
3ffffc20:  00000000 40241cbf 3ffee540 3fff11cc  
3ffffc30:  3ffe9933 3ffe1510 402517cc 3ffe9dc8  
3ffffc40:  3fff124e 3fff166c 00000000 00000000  
3ffffc50:  3ffe9933 3ffe9933 3fff1a67 40243ad7  
3ffffc60:  3ffeec38 402436d0 40216b24 3ffeec38  
3ffffc70:  40105f09 0002b668 3ffeed68 00000000  
3ffffc80:  3ffef470 3ffeed68 000001d9 00000000  
3ffffc90:  00000000 00000000 00000020 40100514  
3ffffca0:  3ffeed68 40216b24 00000000 40102294  
3ffffcb0:  3ffea2a0 40105513 3fff11cc 00000002  
3ffffcc0:  00000001 401046ee 3ffee420 00000002  
3ffffcd0:  40104b5f 3ffee540 00000002 40210edd  
3ffffce0:  40243c10 3ffee540 3ffee6bc 40216b24  
3ffffcf0:  40104627 0000007f 00000000 00040000  
3ffffd00:  00000000 3ffffd50 0000010f 3ffee6bc  
3ffffd10:  401034f0 00080000 05a1cac0 00007a96  
3ffffd20:  00000000 00000000 4bc6a7f0 00000000  
3ffffd30:  3ffe8d9d 2c9f0300 4000050c 3fffc278  
3ffffd40:  401031d8 3fffc200 00000022 00040000  
3ffffd50:  40000e30 00000030 00000010 ffffffff  
3ffffd60:  40100514 00000001 00000000 00000000  
3ffffd70:  00004bc6 00000000 00000000 fffffffe  
3ffffd80:  000000f0 3fffc6fc 00000000 00000020  
3ffffd90:  00000004 3fff0ddc 00000102 00000030  
3ffffda0:  40217ffa 00000030 00000010 ffffffff  
3ffffdb0:  40217ff8 00019bfa 00000002 00000bb8  
3ffffdc0:  00000000 4bc6a7f0 024dd2f1 00007a92  
3ffffdd0:  00000000 00000000 4bc6a7f0 00000000  
3ffffde0:  00000004 3fff0ddc 40100629 00000000  
3ffffdf0:  0000006a 3fff101c 000069c0 3fff0d00  
3ffffe00:  00000000 4bc6a7f0 045a1cac 00007a95  
3ffffe10:  00000000 00000000 4bc6a7f0 00000000  
3ffffe20:  00000000 3ffef924 40100629 00000000  
3ffffe30:  0000006a 3fff0edc 3fff0d64 40218ee2  
3ffffe40:  007a1200 0081676b 3ffe8600 00000100  
3ffffe50:  00000000 00000000 00000001 40100514  
3ffffe60:  3fff0ddc 0000006a 3ffef924 00000004  
3ffffe70:  3fff0ddc 00000102 40226d3f 3fffefa0  
3ffffe80:  3fff1030 3ffffea0 3ffef924 40100220  
3ffffe90:  3fff0ddc 00000004 3ffef924 40218008  
3ffffea0:  00000005 00000005 3fff1274 000dbba0  
3ffffeb0:  00000014 00000010 00000004 40216f12  
3ffffec0:  3fff108c 3ffef9c0 00000014 000dbba0  
3ffffed0:  3fff10dc 3fff1150 3ffef924 40219470  
3ffffee0:  5ab854c0 3b477479 4a7141a2 c6c9734c  
3ffffef0:  8ba992e1 4156a69c 4c444145 b0a5ec0e  
3fffff00:  3fffff08 0000000c 364b6272 4c44766d  
3fffff10:  7956615a 00000000 00000000 00000000  
3fffff20:  00000000 00000000 00000000 00000000  
3fffff30:  00000000 00000000 5ab854c0 3b477479  
3fffff40:  4a7141a2 c6c9734c 8ba992e1 4156a69c  
3fffff50:  4c444145 b0a5ec0e 5ab854c0 3b477479  
3fffff60:  4a7141a2 c6c9734c 8ba992e1 4156a69c  
3fffff70:  4c444145 b0a5ec0e feefeffe feefeffe  
3fffff80:  00000000 feefeffe feefeffe feefeffe  
3fffff90:  feefeffe feefeffe feefeffe 3ffefcc0  
3fffffa0:  3fffdad0 00000000 3ffefcac 40226dc4  
<<<stack<<<

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 3460, room 16 
tail 4
chksum 0xcc
load 0x3fff20b8, len 40, room 4 
tail 4
chksum 0xc9
csum 0xc9
v00074f80
~ld
[I][logger:258]: Log initialized
[C][ota:469]: There have been 6 suspected unsuccessful boot attempts.
[I][app:029]: Running through setup()...
[C][wifi:037]: Setting up WiFi...
[C][wifi:038]:   Local MAC: D8:BF:C0:FD:25:1A
[D][wifi:386]: Starting scan...
...

Note:
What I tried:

  1. Tryed with different Wemos d1 mini pro (i tried 2 Wemos d1 mini pro with the same code)
    no use same error in both devices.
  2. I tried different both ESPhome flasher and ESPhome web Tools to install the code. I think everything installing the code properly, the problem is in booting only.
  3. I change the board type to “d1_mini” and installed it in Wemos d1 mini. no problem with D1 Min working properly.

help me how to solve this issue, I’m not a tech person, esphome helped me in a lot of places. but today I stuck with this.

I have had devices sold to me as d1 mini pro that do not have all the promised flash. Use esptool to check how much flash it has.

The d1 mini has 4M flash WeMos D1 R2 and mini — PlatformIO latest documentation

The pro is supposed to have 16M flash WeMos D1 mini Pro — PlatformIO latest documentation

But there a lot of shysters in the electronics world.

thanks for your time
The Flash size is 16MB for my device

@tom_l need your help.

Please don’t demand people help you.

1 Like

What happens when you (gasp) google the error messasge?

sorry… my mistake

I’m not that good with codes while googling, they are talking about other boards, and in the end, I cont find the solution.

OK so you already googled, but cannot find a solution. Nice of you to tell us.

The first entry I found by googling suggested it might be caused by running out of memory.

if so what is the problem esphome or esp board ( Wemos d1 mini pro) …
I tried 2 different boards - both have the same issue
and I using a basic code. connect with the wifi (I mentioned the code above ) is taking more memory!

and really thanks for replying

Possibly you have been sold a dud, like I said in my first post, although esphomeflasher seems to suggest it has the correct flash size. Where did you get them from.

this is ware i got it
https://www.electronicscomp.com/wemos-esp8266-d1-pro-mini-16-m-external-antenna-connector?search=d1%20mini%20pro

Unfortunately Wmose D1 mini pro is working with Tasmota (not tested with any sensor, only connected with wifi)
but in esphome it is not working, Any Suggestions

Having exactly the same issue as the topic starter . No solution yet

@nickrout has a fair point about bad board as D1 is considered hobbyist board at best. It might help if you start with a simpler configuration like following:

substitutions:
  name_of_board: 'esp-eb'
esphome:
  name: ${name_of_board} 

esp8266:
  board: d1_mini_pro

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:

wifi:
  ssid: <type_actual_values>
  password: <type_actual_values>

captive_portal:
binary_sensor:
  - platform: status
    name: ${name_of_board} Status
    device_class: connectivity
switch:
  - platform: restart
    name: ${name_of_board} Restart
    id: restart_device
text_sensor:
  - platform: template
    name: ${name_of_board} Uptime
    id: uptime_human
    icon: mdi:clock-start

If you are flashing via USB cable or serial port then stay connected to see if you are able to see any logs for potential errors.

If the above configuration works, you can start adding complexities about encryption, security and functionalities.

I had similar problem. But only when I power my board  by usb port so try power d1_mini_pro  via 3.3v or 5v pin.

Which one?
I have a Wemos D1, many Wemos D1 Mini’s, and a couple of Wemos D1 Mini Pros. At least a dozen of the D1 Minis are working in various places around the house and another 6- to 12 on my workbench in various test configurations.

I have never received a bad D1 Mini and I have purchased from various suppliers. (I have, however fried a couple on my own).

The Wemos D1 was supposed to be a drop-in replacement for the Arduino Uno R3, but I could never get mine to work “like” an Uno.

I have experimented with the pros, but honestly, I don’t know where they are. Somewhere in my basement. I’ll look again to see if I can duplicate the OP’s problem.

Depends on where you buy it. I bought a batch of 500 D1 on AliExpress for $150 and about 1 in 20~25 turns out to be a kaput.

Once you encounter one, there is nothing much you can do about it.

I’ve had a few D1 Mini clones from Amazon that just would NOT load firmware. It would flash over 75% of the firmware, then error out. I threw away a batch of three or four from the same vendor after the first two refused to flash successfully.