框架学习

Flashing the XIAO ESP32C3 board

 

This tutorial is writtin because I have encoutered issues with uploading to the board. Out of the box I had to hold down the boot button before plugging the board in to actually be able to upload code to the board. After this I also had to press the enable button to actually execute the code.

1. Connecting the XIAO ESP32C3 to the computer

Before connecting it to the computer. Please hold down the boot button and plugin the cable to the computer. Everything should be working as expected.

If you get an error message that the device is not recognized, you probably didn't hold down the boot button correctly before plugging it in to the computer.

2. Downloading and opening the ESPRFTestTool

From this link it will download a .zip file. Extract this file and navigate to the following directory: \ESP_RF_Test_EN\EspRFTestTool_v2.8_Manual. In here you will find an executable that is called: EspRFTestTool_v2.8_Manual. Flash Tool Directory

When you have located the executable, you can open it.

3. Flashing the board

When the executable is open, you can configure the tool with the following settings:

  • Chiptype: ESP32C3
  • COM: [Your COM-port]
  • BaudRate: 115200

After this, you can click on the open button. Beneath these options, configure the settings as follows:

  • Change RAM to Flash
  • Click on the Select Bin button and select the following file: \ESP_RF_Test_EN\EspRFTestTool_v2.8_Manual\Bin\RF_TEST_BIN\ESP32-C3_RFTest_108_2b9b157_20211014.bin.

When everything is configured correctly, you should be seeing something like this: Flash settings overview

After this your ready to click the Load Bin button and start flashing your board. After this is complete your ready to go to the next step and see something like this:

Flash Success

Now you can close the port by clicking on the close button in the top right corner.

4. Uploading code to the board.

Maybe you've noticed that up until this point it has pretty much been following the guide from the manufacturer. Unplug your XIAO ESP32C3 and plug it back in (without holding down the boot button). You will notice that the board is not recognized by the computer. To fix this, unplug your board, (for the last time