Cannot upload to Wemos board in Arduino IDE

Yes that is correct and it will just have a single exe in the zip.

Ok now I have esptool application in the flash directory with the elf file

If I double click the icon a window flash briefly too quickly to read and that’s all that happens

It’s command line, drop down into dos with Administrator rights.

also tried run as admin

You can still use cut and paste in dos for the command lines I quoted a few posts ago.

ok dropping it gave the response no arguments given

Are you in dos / command prompt / shell?

You can’t do this with a click of a mouse in Windows.

Yes I opened a Dos command window. Ok I ran the commands,

As admin, right?

And …

Here is the output

C:\flash>esptool -cp COM5 -cd nodemcu -cb 921600 -ca 0x00000 -cf app_00000.bin -ca 0x40000 -cf app_40000.bin
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: Invalid argument or value after -cf (argument #10)

sorry trying run as admin it doesn’t want to start that way

That states you don’t have app_0000.bin.

It’s 2 commands the first converts elf to 2 bin files and the second uploads the bin.

Never tried it without admin, think you will need to fix this.

Yes I think I have a admin cmd now

1 Like

I tried again but same error I think I don’t have admin cmd

3 stages;

  1. Rename the elf you have to app.elf (this can be done in “Windows”).

  2. Create 2 bin files from elf (this is a single line)
    esptool -bz 4M -eo app.elf -bo app_00000.bin -bs .text -bs .data -bs .rodata -bc -ec -eo app.elf -es .irom0.text app_40000.bin -ec

  3. Flash the bin files to WeMos on COM5 (this is a single line)
    esptool -cp COM5 -cd nodemcu -cb 921600 -ca 0x00000 -cf app_00000.bin -ca 0x40000 -cf app_40000.bin

The error message is not admin related, see my last 3 stage post.

If you have admin rights the command prompt box (Win 8.1) will have a title of:

Administrator: Command Prompt

I opened an admin cmd prompt finally (it says administrator) I ran it and it has the same error

C:\flash>esptool -cp COM5 -cd nodemcu -cb 921600 -ca 0x00000 -cf app_00000.bin -ca 0x40000 -cf app_40000.bin
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: Invalid argument or value after -cf (argument #10)

But in the flash directory there is:
app.elf 990kB
app_00000.bin 30 kB
app_40000.bin 207kB

It should look like this (right click on the window):

Mine says Windows PowerShell(Admin) but nothing happens if I choose it.