Update docs/software/esp32firmware.md

This commit is contained in:
Lukas Schmid 2025-01-04 16:59:32 +01:00
parent da92d541d5
commit c2f070a6dc

View File

@ -9,16 +9,16 @@ Before proceeding, ensure you have:
- **esptool.py**, **espefuse.py**, and **espsecure.py** pre-installed on the Kumquat demo image. These tools are available by default.
- A valid **ESP-Hosted-NG** firmware file. You can download the latest version using the following command:
```
wget https://github.com/espressif/esp-hosted/releases/download/release%2Fng-v1.0.2/ESP-Hosted-NG_release_v1.0.2.tgz
```
```
wget https://github.com/espressif/esp-hosted/releases/download/release%2Fng-v1.0.2/ESP-Hosted-NG_release_v1.0.2.tgz
```
- Extract the downloaded file:
```
gzip -d ESP-Hosted-NG_release_v1.0.2.tgz
tar -xvf ESP-Hosted-NG_release_v1.0.2.tart
```
```
gzip -d ESP-Hosted-NG_release_v1.0.2.tgz
tar -xvf ESP-Hosted-NG_release_v1.0.2.tart
```
- The **ESP-Hosted-NG** firmware is located inside `ESP-Hosted-NG_release_v1.0.2/esp32/sdio_only/`.
@ -48,15 +48,15 @@ Next, set the ESP32 to bootloader mode by adjusting the GPIO pins:
- Set the strapping pins to bootloader mode:
```
gpioset $(gpiofind ESP_nBOOT)=0 && gpioset $(gpiofind ESP_D0)=0
```
```
gpioset $(gpiofind ESP_nBOOT)=0 && gpioset $(gpiofind ESP_D0)=0
```
- Reset the ESP32 to apply the changes:
```
gpioset $(gpiofind ESP_nRST)=0 && gpioset $(gpiofind ESP_nRST)=1
```
```
gpioset $(gpiofind ESP_nRST)=0 && gpioset $(gpiofind ESP_nRST)=1
```
At this point, the ESP32 is ready to be flashed.
@ -66,9 +66,9 @@ If you have replaced the ESP32 on the Kumquat board, you'll need to set the flas
- Run the following command during the bootloader mode:
```
espefuse.py -p /dev/ttyS1 -b 115200 --chip esp32 set_flash_voltage 3.3V
```
```
espefuse.py -p /dev/ttyS1 -b 115200 --chip esp32 set_flash_voltage 3.3V
```
- When prompted, type `BURN` in all caps to confirm and permanently burn the fuse. This step cannot be undone.
@ -78,21 +78,21 @@ Once the ESP32 is in bootloader mode, you can flash the **ESP-Hosted-NG** firmwa
- Navigate to the firmware directory:
```
cd ESP-Hosted-NG_release_v1.0.2/esp32/sdio_only/
```
```
cd ESP-Hosted-NG_release_v1.0.2/esp32/sdio_only/
```
- Erase the flash using `esptool.py`:
```
esptool.py -p /dev/ttyS1 -b 115200 --chip esp32 erase_flash
```
```
esptool.py -p /dev/ttyS1 -b 115200 --chip esp32 erase_flash
```
- Run the flashing command using `esptool.py`:
```
esptool.py -p /dev/ttyS1 -b 115200 --chip esp32 write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x1000 bootloader.bin 0x8000 partition-table.bin 0xd000 ota_data_initial.bin 0x10000 network_adapter.bin
```
```
esptool.py -p /dev/ttyS1 -b 115200 --chip esp32 write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x1000 bootloader.bin 0x8000 partition-table.bin 0xd000 ota_data_initial.bin 0x10000 network_adapter.bin
```
### Step 6: Reset ESP32 to Normal Flashing Mode