Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BOOTLOADER_FLASH_OFFSET Failed to flash on ESP32-WROOM #467

Open
drttm opened this issue Aug 27, 2024 · 9 comments
Open

BOOTLOADER_FLASH_OFFSET Failed to flash on ESP32-WROOM #467

drttm opened this issue Aug 27, 2024 · 9 comments

Comments

@drttm
Copy link

drttm commented Aug 27, 2024

I have two boards ESP32-WROOM-32 that I bought following the link from your list of supported boards.
I was not sure which one to chose between ESP32-WROOM-32D and ESP32-WROOM-32U, and I bought one of each.
Initially, neither board was even detected when connecting the USB on my Windows 11 64bit. I messaged the seller and they kindly sent me the drivers CP210x_VCP_Windows, and I installed them (CP210xVCPInstaller_x64.exe). After restarting and connecting them via USB, the system now detects it and I attempted to flash the NMV2 1.6.3 on ESP32-WROOM. It is detected properly in my Chrome Incognito browser so I proceeded. And this is the error message I got:

Flashing failed: TypeError: Cannot read properties of undefined (reading 'BOOTLOADER_FLASH_OFFSET')
Starting flash process...
Error connecting to chip: Error: Failed to connect with the device
Fetching: assets/nerdminer2_1.6.3_esp32wroom/0x1000_bootloader.bin
Fetched: 0x1000_bootloader.bin
Fetching: assets/nerdminer2_1.6.3_esp32wroom/0x8000_partitions.bin
Fetched: 0x8000_partitions.bin
Fetching: assets/nerdminer2_1.6.3_esp32wroom/0xe000_boot_app0.bin
Fetched: 0xe000_boot_app0.bin
Fetching: assets/nerdminer2_1.6.3_esp32wroom/0x10000_firmware.bin
Fetched: 0x10000_firmware.bin
Flashing failed: TypeError: Cannot read properties of undefined (reading 'BOOTLOADER_FLASH_OFFSET')

It does not connect with the devices properly. It shows the same error in both boards ESP32-WROOM-32D and ESP32-WROOM-32U when I try them separately. Alternatively, if I try to install the x86 driver for 32bit, then it appears a warning message suggesting to install the 64bit according to my machine.

Can you confirm these are actually the right supported boards or did I chose the wrong ones? In case they are right, I am not sure if I may need to ask for different driver or what should I do at this point.
Any suggestion and help are welcome. Thanks!

@murphy667
Copy link

ESP32-WROOM-32D (backside: nodemcu-esp32 devkitv1) with cp2102 driver from microsoft (silicon labs). same Problem

@murphy667
Copy link

murphy667 commented Aug 28, 2024

I found a Solution.

  1. Use esp32 flash download tool https://www.espressif.com/en/support/download/other-tools
  2. Import from nerdminer zip al the files from NerdMiner_v2-dev\bin\bin ESP32-devKit- no pass and use the settings from my screenshot.
  3. Press start and then hold at the esp32 rst button and boot button, first release rst and then release boot.
  4. It will flash now
    Screenshot 2024-08-28 133649

@drttm
Copy link
Author

drttm commented Aug 28, 2024

I found a Solution.

  1. Use esp32 flash download tool https://www.espressif.com/en/support/download/other-tools
  2. Import from nerdminer zip al the files from NerdMiner_v2-dev\bin\bin ESP32-devKit- no pass and use the settings from my screenshot.
  3. Press start and then hold at the esp32 rst button and boot button, first release rst and the release boot.
  4. It will flash now
    Screenshot 2024-08-28 133649

It worked! You just saved my tiny boards, thank you so much! :)

After several attempts it flashed on both boards (backside: ESP32-devkitc_v4). Initially, I thought all parameters were set automatically, but I realised I had to specify manually both the @ addresses and the COM port between your steps 2 and 3. Then, it worked following exactly as you described. Just additional info, before one may end up thinking that it does not work!

@haruzept
Copy link

Is there a similar tool for linux? Does it works with Adruino IDE?

@julio-matarranz
Copy link
Collaborator

Is there a similar tool for linux? Does it works with Adruino IDE?

Use https://code.visualstudio.com/Download and platformio's extension 😉

@haruzept
Copy link

Is there a similar tool for linux? Does it works with Adruino IDE?

Use https://code.visualstudio.com/Download and platformio's extension 😉

OK. And than? What should I do?

@julio-matarranz
Copy link
Collaborator

Is there a similar tool for linux? Does it works with Adruino IDE?

Use https://code.visualstudio.com/Download and platformio's extension 😉

OK. And than? What should I do?

Git clone, open the project with vscode and build the project for the device you would like and upload. 😉

@julio-matarranz
Copy link
Collaborator

You have this solution that imply to rebuild or web flasher with compatible browser or flashing with tools using files on the GitHub releases

@Henbal-Invest
Copy link

Having the same issue with T-Display 1.14. Anyone already has a solution for this too?

@github-staff github-staff deleted a comment from yldzmuhammed Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants