AmebaPro2 uartfwburn - Can't flash. "fail for download 0" after "programing" is 100% complete

Hi all,

I’m trying to flash an AmebaPro2 board. I’m trying to use the uartfwburn tool. I am on WSL2.

Erase works every time.

$ uartfwburn.linux -p /dev/ttyUSB0 -b 2000000 -e chip -U -x 32 -r
...
programing      [========================================] 100%        81920/       81920 bytes
programing done.
uboot ok
reset device
/dev/ttyUSB0 opened
reset device
erase success

Firmware write fails at the very end, after reporting 100%:

$ uartfwburn.linux -p /dev/ttyUSB0 -b 2000000 \
    -f .../GCC-RELEASE/build/flash_ntz.bin -U -x 32 -r
xmodem tx 32K mode
/dev/ttyUSB0 opened
ping ok
ucfg ok
flash loader path .../Pro2_PG_tool_v1.4.3/flash_loader_nor.bin
Uart boot
programing      [========================================] 100%        81920/       81920 bytes
programing done.
uboot ok
reset device
/dev/ttyUSB0 opened
ping ok
ucfg ok
download to offset 0x0
masked area [0x0, 0x0]
dowload 0, [0x0, 0x4b2000]
programing      [========================================] 100%      4947968/     4947968 bytes
programing done.
fail for download 0
reset device
download fail

  • Tried on native Windows using uartfwburn.exe, same error.

  • Tried various bauds of -b 115200, -b 921600, -b 2000000 .

  • With and without -U.

  • With and without -r.

  • -x 32 and the default block size.’

  • Reinstalled FTDI drivers.

When i hit the reset button while monitoring output i can see this:

== Rtl8735b IoT Platform ==

[test mode PG]
Download Image over UART1[tx=4,rx=3] baud=115200

What could i be doing wrong?

Thanks!

Hi @tk123 ,

Based on your log output, kindly try the following steps:

  1. Close all serial terminals before running uartfwburn — none at all on that port.
  2. Verify all three helper bins are co-located with uartfwburn and from the same tool version:
    Pro2_PG_tool_v1.4.3/
    uartfwburn.linux
    boot_recover.bin
    flash_loader_nor.bin
    flash_control_info.bin ← required, must be here
  3. Try baud 3000000 —
    uartfwburn.linux -p /dev/ttyUSB0 -b 3000000 -f flash_ntz.bin -U

May we know the size of your flash_ntz.bin?

Thank you.

my flash_ntz.bin is 4808 KB

@KevinKL