# BW16 - error: Flashloader download fail

**URL:** <https://forum.amebaiot.com/t/bw16-error-flashloader-download-fail/1277>\
**Category:** SDK\
**Tags:** rtl872xd, evb-bw16\
**Created:** [May 31, 2022, 1:08am UTC](https://forum.amebaiot.com/t/bw16-error-flashloader-download-fail/1277 "2022-05-31T01:08:25Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![eckim](https://avatars.discourse-cdn.com/v4/letter/e/bcef8e/32.png) [@eckim](https://forum.amebaiot.com/u/eckim)\
**Post date:** [May 31, 2022, 1:08am UTC](https://forum.amebaiot.com/t/bw16-error-flashloader-download-fail/1277/1 "2022-05-31T01:08:25Z")

</div>

Hello,

I have an error that I see for the first time while developing BW16

The contents are the error log as shown in the figure below.

this occurred when uploading a source code in the ArduinoIDE after entering the download mode.

- I used a USB to FTDI cable

please tell me what that error means

 ![image](https://us1.discourse-cdn.com/flex016/uploads/ameba/original/2X/0/0a601f7a089b174f6582dae964453e35a1bae82d.png)

---

<div class="post-metadata">

**Author:** ![wyy](https://avatars.discourse-cdn.com/v4/letter/w/bc8723/32.png) [@wyy](https://forum.amebaiot.com/u/wyy)\
**Post date:** [May 31, 2022, 1:20am UTC](https://forum.amebaiot.com/t/bw16-error-flashloader-download-fail/1277/2 "2022-05-31T01:20:19Z")

</div>

@eckim

the flashloader download is the first part of the image download process.  
Can you verify that the wires from the FTDI cable are securely connected to the BW16? It looks like the flashloader download may have been interrupted, thus it could not proceed with the rest of the download.

---

<div class="post-metadata">

**Author:** ![eckim](https://avatars.discourse-cdn.com/v4/letter/e/bcef8e/32.png) [@eckim](https://forum.amebaiot.com/u/eckim)\
**Post date:** [May 31, 2022, 2:39am UTC](https://forum.amebaiot.com/t/bw16-error-flashloader-download-fail/1277/3 "2022-05-31T02:39:18Z")

</div>

Thank you,  
but It’s still resolved , so I’m asking more questions.

as shown below, I send/receive BW16 Rx, Tx data through  
the MAX3232 chip, but is it impossible to upload using a USB to FTDI cable?

Or is it impossible to use the MAX3232 chip to upload sources to the ‘BW16’ itself?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/ameba/original/2X/b/b454bf83ae878f229542b19ee460844ffe4b726d.png)

---

<div class="post-metadata">

**Author:** ![wyy](https://avatars.discourse-cdn.com/v4/letter/w/bc8723/32.png) [@wyy](https://forum.amebaiot.com/u/wyy)\
**Post date:** [May 31, 2022, 3:03am UTC](https://forum.amebaiot.com/t/bw16-error-flashloader-download-fail/1277/4 "2022-05-31T03:03:28Z")

</div>

It looks like the MAX3232 chip does not support a high enough baud rate. The upload speed on Windows & Linux default to 1.5 Mbps, while it seems the MAX3232 chips only go up to 250 kbps.

There should be no need to use the MAX3232 chip, have you tried connecting the FTDI output directly to BW16?

---

<div class="post-metadata">

**Author:** ![eckim](https://avatars.discourse-cdn.com/v4/letter/e/bcef8e/32.png) [@eckim](https://forum.amebaiot.com/u/eckim)\
**Post date:** [May 31, 2022, 7:28am UTC](https://forum.amebaiot.com/t/bw16-error-flashloader-download-fail/1277/5 "2022-05-31T07:28:20Z")

</div>

Hello,  
Even if the MAX3232 is 250Kbps  
Since the baudrate itself uses 115200bps, it is probably not because of the speed.

---

<div class="post-metadata">

**Author:** ![wyy](https://avatars.discourse-cdn.com/v4/letter/w/bc8723/32.png) [@wyy](https://forum.amebaiot.com/u/wyy)\
**Post date:** [May 31, 2022, 7:41am UTC](https://forum.amebaiot.com/t/bw16-error-flashloader-download-fail/1277/6 "2022-05-31T07:41:14Z")

</div>

Uploading firmware uses a higher speed to reduce wait time.  
I would suggest try connecting the FTDI directly to BW16, or use a 3.3V USB-UART converter if you are concerned about the voltage levels.

---

<div class="post-metadata">

**Author:** ![eckim](https://avatars.discourse-cdn.com/v4/letter/e/bcef8e/32.png) [@eckim](https://forum.amebaiot.com/u/eckim)\
**Post date:** [June 7, 2022, 6:10am UTC](https://forum.amebaiot.com/t/bw16-error-flashloader-download-fail/1277/7 "2022-06-07T06:10:51Z")

</div>

hello  
Can you give me to the documentation stating that the firmware upload uses a higher speed to reduce latency?

Could you please tell me the documentation or website.

---

<div class="post-metadata">

**Author:** ![wyy](https://avatars.discourse-cdn.com/v4/letter/w/bc8723/32.png) [@wyy](https://forum.amebaiot.com/u/wyy)\
**Post date:** [June 7, 2022, 6:54am UTC](https://forum.amebaiot.com/t/bw16-error-flashloader-download-fail/1277/8 "2022-06-07T06:54:55Z")

</div>

This is not explicitly stated, but in the [user manual](https://github.com/ambiot/ambd_sdk/tree/dev/doc) chapter 8 on using the [ImageTool](https://github.com/ambiot/ambd_sdk/tree/dev/tools/AmebaD/Image_Tool), it can be seen that the upload speed can be configured. The Arduino IDE upload process work in the same way, but uses the default speed of 1.5 Mbaud, which can be seen when using a logic analyzer to capture the upload process.

---

<div class="post-metadata">

**Author:** ![eckim](https://avatars.discourse-cdn.com/v4/letter/e/bcef8e/32.png) [@eckim](https://forum.amebaiot.com/u/eckim)\
**Post date:** [June 8, 2022, 5:49am UTC](https://forum.amebaiot.com/t/bw16-error-flashloader-download-fail/1277/9 "2022-06-08T05:49:22Z")

</div>

hello  
I want to change the baud rate to 115200bps when uploading, but I can’t change it in the Arduino IDE?

---

<div class="post-metadata">

**Author:** ![wyy](https://avatars.discourse-cdn.com/v4/letter/w/bc8723/32.png) [@wyy](https://forum.amebaiot.com/u/wyy)\
**Post date:** [June 8, 2022, 6:45am UTC](https://forum.amebaiot.com/t/bw16-error-flashloader-download-fail/1277/10 "2022-06-08T06:45:05Z")

</div>

changing the upload speed is not available in Arduino IDE

---

<div class="post-metadata">

**Author:** ![eckim](https://avatars.discourse-cdn.com/v4/letter/e/bcef8e/32.png) [@eckim](https://forum.amebaiot.com/u/eckim)\
**Post date:** [June 8, 2022, 6:53am UTC](https://forum.amebaiot.com/t/bw16-error-flashloader-download-fail/1277/11 "2022-06-08T06:53:44Z")

</div>

So, other than the Arduino IDE, how can I control the upload speed?  
Is it possible to upload the source at the speed of 115200 using the Image Tool?

---

<div class="post-metadata">

**Author:** ![wyy](https://avatars.discourse-cdn.com/v4/letter/w/bc8723/32.png) [@wyy](https://forum.amebaiot.com/u/wyy)\
**Post date:** [June 8, 2022, 9:10am UTC](https://forum.amebaiot.com/t/bw16-error-flashloader-download-fail/1277/12 "2022-06-08T09:10:53Z")

</div>

You can choose to download the Image Tool, then use it to upload the images compiled in Arduino IDE.  
The Arduino IDE compiled images can be found in `\AppData\Local\Arduino15\packages\realtek\tools\ameba_d_tools\1.0.7`

---

<div class="post-metadata">

**Author:** ![eckim](https://avatars.discourse-cdn.com/v4/letter/e/bcef8e/32.png) [@eckim](https://forum.amebaiot.com/u/eckim)\
**Post date:** [June 10, 2022, 2:36am UTC](https://forum.amebaiot.com/t/bw16-error-flashloader-download-fail/1277/13 "2022-06-10T02:36:21Z")

</div>

Thank you.  
After converting the ArduinoIDE Source File (.ino) to .bin, I set the baud rate to 115200 using AmebaImageTool and downloaded it, and it was successful.

---

<div class="post-metadata">

**Author:** ![vladkozlov69](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/vladkozlov69/32/1153_2.png) [@vladkozlov69](https://forum.amebaiot.com/u/vladkozlov69)\
**Post date:** [October 8, 2022, 10:30am UTC](https://forum.amebaiot.com/t/bw16-error-flashloader-download-fail/1277/14 "2022-10-08T10:30:59Z")

</div>

> [@wyy](#):
>
> changing the upload speed is not available in Arduino IDE

Go to packages/realtek/hardware/AmebaD/3.1.4/platform.txt  
Replace 1500000 with 230400.  
That’s all.
