Esp8266 wemos d1 mini pro or clone failing

I can program this thing one time and it works OK. If I do it a second time, then it goes into a wierd loop spewing lots of binary data that makes no sense and isn't being displayed on the /dev/ttyUSB1 window. If I use esptool.py to erase flash, it lets it work one more time and then fails on the next compile/load.
So I'd like to figure out how to reflash all the firmware and get the chip back to factory specs. I did an online search and didn't see anything I could use. I did see a this command:
But I didn't know how to get the partition-table.bin. i did find the bootloader.bin.

python esptool.py -p /dev/tty.usbserial-0001 -b 460800 --before default_reset --after hard_reset --chip esp32  write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x1000 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/hello_world.bin

It fails on multiple sources that work in other boards.
Thanks for any guidance,
Jim

Have you considered either a power problem or a bad module? Considering the code works on other modules there is probably something wrong with this module assuming the same power supply. Check to be sure all parts are properly mounted and look ok. Post an annotated schematic showing how the project is wired and to what.

It has been working fine for a few weeks now so I don't think it's a problem with wiring. Power is being supplied by a usb hub that is powered by a 5v 2A wall wart that has another board plugged into it and is working fine. I agree the processor board might be at fault, but i want to try flashing new firmware before I go down that road.
Thanks.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.