Amebad Flash Tools Windows 10

I am trying to update the network firmware on a Wio Terminal.

I am using Windows Powershell as Administrator.

I have tried the following

PS C:\Program Files\amebad_flash_tool_v0.1.0_windows> ./amebad_flash_tool erase --port COM8
Erasing…
‘C:\Program’ is not recognized as an internal or external command,
operable program or batch file.
done!

Clearly the parameters are wrong but I cannot find an example of a Windows specific example.

Can you help?

Allan

Hi @Allan_Geekie,

  1. First you need downlaod Download the CLI firmware flash tools for your OS, and Since you are using Windows Click here download the tools

  2. Unzip the file

  3. Open the folder names “amebad_flash_tool_v0.1.0_windows” and right-click and select open PowerShell window here

image

  1. Type ./amebad_flash_tools in the PowerShell and you should see the help usage:

  2. First we need to erase the initial firmware inside the RTL8720, for that connect the wio terminal to computer as Entering the bootloader mode by sliding the power switch twice quickly . For more reference, please also see here.
    And run type ./amebad_flash_tools erase --port PORT, where PORT is your wio terminal COM address

NOTE: The initial erase process may take a while. Please be patient and do not close windows.

  1. Next we need to flash the newly downloaded firmware into the RTL8720, run:
    ./amebad_flash_tools flash -d [RTL8720-firmware-path] --port PORT
    where [RTL8720-firmware-path] is location of firmware folder and PORT is your your wio terminal COM address .

This folder should contain km0_boot_all.bin , km0_km4_image2.bin and km4_boot_all.bin these 3 files.

You can find more deatils at : https://wiki.seeedstudio.com/Wio-Terminal-Network-Overview/

Salman

Thank you for your response. I have already done everything you suggest.

I have attempted to run the program again this morning

This is a copy of the responses.

The program seems to list the help information but will not accept the command

./amebad_flash_tool erase --port COM8


PS C:\Program Files\amebad_flash_tool_v0.1.0_windows> ./amebad_flash_tool
Usage: amebad_flash_tool.exe [OPTIONS] COMMAND [ARGS]…

RTL872XD Flash tool

This tool is used to burn rtl8720d firmware.

Options:
–version Show the version and exit.
–help Show this message and exit.

Commands:
erase
flash
PS C:\Program Files\amebad_flash_tool_v0.1.0_windows> ./amebad_flash_tool erase --port COM8
Erasing…
‘C:\Program’ is not recognized as an internal or external command,
operable program or batch file.
done!
PS C:\Program Files\amebad_flash_tool_v0.1.0_windows>


Thanks for your help.

Allan

Salman

I realised that there is a problem with folder names that contain a space.

I have moved the program to another folder.

I can run the program and get the help info.

The port is COM8, I move the switch twice and the port changes to COM9.

I now try to erase but get the error message below.

error: Enter Uart Download Mode


PS C:\temp\flash> ./amebad_flash_tool
Usage: amebad_flash_tool.exe [OPTIONS] COMMAND [ARGS]…

RTL872XD Flash tool

This tool is used to burn rtl8720d firmware.

Options:
–version Show the version and exit.
–help Show this message and exit.

Commands:
erase
flash
PS C:\temp\flash> ./amebad_flash_tool erase --port COM9
Erasing…
error: Enter Uart Download Mode
Image tool closed!
done!
PS C:\temp\flash>

Thanks for your help.

Allan

Had the same thing yesterday
I put the folder on the desktop
see here and used erase -p COM15

But I first checked if there was still a device connection on that com port
comcheck
if not… double reset and check again

BoRRoZ - thanks for that, I moved the folder to the desktop, checked that COM9 was still present but I get the same error.

I’ve tried resetting the Wio, putting it into download mode and then immediately tried the erase but I still get the same error.

COM9 is still there and said to be working.

Allan

hi,

did you see erase -p COM9

BoRRoZ

This is the log
PS C:\users\allan\desktop\flash> .\amebad_flash_tool erase -p COM9
Erasing…
error: Enter Uart Download Mode
Image tool closed!
done!
PS C:\users\allan\desktop\flash>

Allan

try keeping the foldername on your desktop the same as the original:
amebad_flash_tool_v0.1.0_windows ?

BoRRoZ

I tried but no luck. Log below

PS C:\users\allan\desktop> cd amebad_flash_tool_v0.1.0_windows
PS C:\users\allan\desktop\amebad_flash_tool_v0.1.0_windows> .\amebad_flash_tool erase -p COM9
Erasing…
error: Enter Uart Download Mode
Image tool closed!
done!
PS C:\users\allan\desktop\amebad_flash_tool_v0.1.0_windows>

I also reset the Wio just before trying, clicked the switch twice and checked the COM9 port was working.

Thanks for all your help.

Allan

Log looks ok to me now , except that its closing the connection :thinking:
I had exactly the same and did power off/ power on and double switch… and checked again that the portnumber didn’t change

Maybe some security for your USB port active ? I don’t know at this point, just guessing :sweat_smile:

just to be sure… this is the contents of your desktop folder ?

flasher

Hi @BoRRoZ @Allan_Geekie

This seems like the Serial communications from SAM51 to RTL8720 is not opened. Did you upload the UF2?

yes you’re right… that’s the step ‘in between’

see howto :sweat_smile:

1- download rtl8720_update.uf2http://files.seeedstudio.com/wiki/Wio-Terminal/res/rtl8720_update.uf2
2 - enter bootloader mode as described and drag file to external device named arduino, it wil reboot
3- start power shell command as mentioned before

good luck

BoRRoZ

I was confident that I had done that but I have gone through the process again.

I went into bootloader mode and the D:Arduino window popped up. I dragged the file into the window; I saw it momentarily on the file list and then it rebooted.

I went back into bootloader mode and the file was no longer there.

I tried the amebad program agian - but I still get the same error.


PS C:\amebad_flash_tool_v0.1.0_windows> .\amebad_flash_tool erase -p COM9
Erasing…
error: Enter Uart Download Mode
Image tool closed!
done!
PS C:\amebad_flash_tool_v0.1.0_windows>

Any further thoughts would be appreciated.

Allan

after you’ve dragged that UF2 file to the device it reboots.
at that moment you give the powershell instruction to erase (or flash)

1 Like

@Allan_Geekie

Yes, no need to enter the bootloader mode the second time

Thank you both - that has solved the problem. The erase worked and then the update.

Now all I have to do id try to connect to the router.

Allan

1 Like