Errno2 looking for srmodels.bin

Very new to ESP32 and Arduino IDE. Starting off simple with the following:

Windows 11 OS
IDE 2.3.4
Waveshare ESP32-S3-Touch-LCD-1.85

Waveshare 1.85 Touch info

Trying to upload this basic code as a test from the above guide:

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
}

void loop() {
  // put your main code here, to run repeatedly:
  Serial.println("Hello, World!!!");
  delay(2000);
}

I then get the following output:

Sketch uses 282525 bytes (8%) of program storage space. Maximum is 3145728 bytes.
Global variables use 18128 bytes (5%) of dynamic memory, leaving 309552 bytes for local variables. Maximum is 327680 bytes.
usage: esptool write_flash [-h] [--erase-all]
                           [--flash_freq {keep,80m,60m,48m,40m,30m,26m,24m,20m,16m,15m,12m}]
                           [--flash_mode {keep,qio,qout,dio,dout}]
                           [--flash_size {detect,keep,256KB,512KB,1MB,2MB,2MB-c1,4MB,4MB-c1,8MB,16MB,32MB,64MB,128MB}]
                           [--spi-connection SPI_CONNECTION] [--no-progress]
                           [--verify] [--encrypt]
                           [--encrypt-files <address> <filename> [<address> <filename> ...]]
                           [--ignore-flash-encryption-efuse-setting] [--force]
                           [--compress | --no-compress]
                           <address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: 'C:\\Users\\ssei9\\AppData\\Local\\arduino\\sketches\\A8CAE1EED9F706B5C4370061A497C4AB/srmodels.bin'
Failed uploading: uploading error: exit status 2

I have tried reinstalling IDE and all the library's and such that the usage instructions list out. Searched the directory, and my whole computer, and no instance of the srmodels.bin can be located, although the folder structure is present. Tried a few things I found on this site as well as the internet in general with no change.

Hoping someone can guide me in the right direction.

The partition you selected needs to upload the espsr model. You can refer to this path(C:\Users\26010\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32s3\esp_sr). If you don’t have it, download one. The address is( ESP32-S3-Touch-LCD-1.85 - Waveshare Wiki

Having the same issue. I noticed gordon linked the wiki so he has seen that. I have also read through the wiki.

chen, can you elaborate on your post? Not sure what 26010 folder is.

Hi all. Arduino IDE support for the "Waveshare ESP32-S3-Touch-LCD-1.85" board is provided by the "esp32" boards platform. That boards platform includes a sound recognition capability via the bundled "ESP_SR" library. The ESP_SR library contains a pretrained machine learning model, which must be uploaded to a special partition in the flash memory of the board along with your sketch.

You configure Arduino IDE to upload the sound recognition model by selecting "ESP SR 16M (3MB APP/7MB SPIFFS/2.9MB MODEL)" from the IDE's Tools > Partition Scheme menu. This menu selection can only be used when uploading sketches that use the ESP_SR library. If you have this item selected when you attempt to upload a sketch that does not use the library, the upload will fail with the "No such file or directory: '[...]/srmodels.bin'" error.

The Waveshare developers made the questionable decision to make that menu selection the default in their board definition.

The solution to the error is to select an appropriate partition scheme from Arduino IDE's Tools > Partition Scheme menu. The documentation for the board suggests selecting "16M Flash (3MB APP/9.9MB FATFS)".

1 Like