VS Arduino
Visual Micro >> Visual Studio 2017, 2019, 2022 >> bootloader not find with latest beta of esp32
https://www.visualmicro.com/forums/YaBB.pl?num=1619443786

Message started by apwwn on Apr 26th, 2021 at 1:29pm

Title: bootloader not find with latest beta of esp32
Post by apwwn on Apr 26th, 2021 at 1:29pm
Hello,

I've updated my esp32 board definition to the latest version of the arduino-esp32 package who support the esp32s2 like said here : https://github.com/espressif/arduino-esp32#esp32-s2-and-esp32-c3-support but I have one problem now, when I try to compile my code, the uploader say "esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: 'C:\\Users\\lionel\\AppData\\Local\\Temp\\VMBuilds\\Basic\\ESP32_~1\\Debug/Basic.ino.bootloader.bin'"

To reproduce the problem, just create an empty project with "ESP32S2 Dev Module" as target and voila ;)

This file is created but is deleted just before the upload, why and by who, I don't know.

Oh, and I forget to mention that Expressif has deleted all branches used for esp32s2 until now....

Title: Re: bootloader not find with latest esp32
Post by Simon@Visual Micro on Apr 26th, 2021 at 1:48pm
Thanks for the report, can you try the latest release from the top of the board below (21.01.06.20), which should resolve this issue:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

Title: Re: bootloader not find with latest beta of esp32
Post by apwwn on Apr 26th, 2021 at 2:34pm
I confirm, it's OK now.

Thks  [smiley=thumbsup.gif]

Title: Re: bootloader not find with latest beta of esp32
Post by qi on Oct 12th, 2021 at 3:35am
esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: 'C:\\Users\\qi\\AppData\\Local\\Temp\\VMBuilds\\Blink2\\ESP32_~2\\Debug/Blink2.ino.bootloader.bin'

I have the same problem

How can it be resolved without updating

Title: Re: bootloader not find with latest beta of esp32
Post by Simon@Visual Micro on Oct 12th, 2021 at 8:27am
Thanks for the report.

Please enable the "Verbose" and "Show Build Properties" as shown at the top of this page, also enable the vMicro > Uploader > Verbose option

Then attach the full output from the Output > Micro Build window, for both the build, and upload as separate text files.

Title: Re: bootloader not find with latest beta of esp32
Post by qi on Oct 13th, 2021 at 4:30am
C:\Users\qi\AppData\Local\Temp\VMBuilds\Blink2\esp32_esp32wrover\Release
I saw that file in this folder at compile time, but it was deleted after compile.
so.file not found.

I think this file should be modified
“C:\Users\qi\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.0\platform.txt”,

Please revise it and send it to me. Thank you



Title: Re: bootloader not find with latest beta of esp32
Post by qi on Oct 13th, 2021 at 4:42am

I have an idea:
I have copied the file here by modifying platfrom.txt
”C:\Users\qi\source\repos\Blink2\Release\Blink2.ino.bootloader.bin“


But there's no enforcement here. I don't know why.(tools.esptool_py.upload.pattern_args=....... 0x10000 "{build.source.path}/Release/{build.project_name}.bin".....),The path was not identified successfully.

{build.source.path}Not identified as C:\Users\qi\source\repos\Blink2,

Please help me, thank you.






Title: Re: bootloader not find with latest beta of esp32
Post by Simon@Visual Micro on Oct 13th, 2021 at 8:23am
Please attach the logs as requested previously, so we can see all environmental settings, and the full output of the build process.

Title: Re: bootloader not find with latest beta of esp32
Post by qi on Oct 14th, 2021 at 5:21am
ok,thanks
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=log_018.txt ( 4 KB | 3 Downloads )

Title: Re: bootloader not find with latest beta of esp32
Post by qi on Oct 14th, 2021 at 5:44am
Blink2.ino.bootloader.bin
It was copied and then deleted,so Can't Find It

Title: Re: bootloader not find with latest beta of esp32
Post by Simon@Visual Micro on Oct 14th, 2021 at 9:23am
Sorry the below settings also need to be enabled for us to see all of the information:

vMicro > Compiler > Verbose
vMicro > Compiler > Show Build Properties
vMicro > Uploader > Verbose

Then perform a Build > Clean, and then Build the project, attach this log first.
Then perform the upload, and attach this log either as a separate file, or appended to the end of the first one.

Title: Re: bootloader not find with latest beta of esp32
Post by qi on Oct 17th, 2021 at 3:42am
Ok,Thank you for your patient help.
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=build_log_003.txt ( 1149 KB | 5 Downloads )

Title: Re: bootloader not find with latest beta of esp32
Post by qi on Oct 17th, 2021 at 3:43am
Upload log
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=Upload_log_001.txt ( 231 KB | 8 Downloads )

Title: Re: bootloader not find with latest beta of esp32
Post by Simon@Visual Micro on Oct 18th, 2021 at 9:53am
Thanks for the logs.

Have you tried updating vMicro to version 1.2021.0106-20 (or a later version) ?

Title: Re: bootloader not find with latest beta of esp32
Post by qi on Oct 20th, 2021 at 2:08pm
It's 2021.01.06.
Did you see the problem in the logs?

Title: Re: bootloader not find with latest beta of esp32
Post by Simon@Visual Micro on Oct 20th, 2021 at 2:51pm
The version shown in the logs is 1.2021.0106-0, the fix was made in a later release 1.2021.0106-20.

So to resolve this it should be a case of updating Visual Micro to either the latest version, or at least 1.2021.0106-20:
1.2021.0106-20 --> https://www.visualmicro.com/forums/YaBB.pl?num=1619429166

Title: Re: bootloader not find with latest beta of esp32
Post by AlanSborGold on Jun 30th, 2022 at 6:18pm
Doesn't want to upload firmware.
Log attached to the post.

Under Arduino everything is fine.


Uploading 'readMag_5603' to 'ESP32 Wrover Module' using 'COM27'
Uploader started for board ESP32 Wrover Module
Upload method will be: bootloader
Uploading via Bootloader
C:\Users\Alan\AppData\Local\arduino15\packages\esp32\tools\esptool_py\3.3.0\esptool.exe --chip esp32 --port "COM27" --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x1000 "D:\temp\VMBuilds\READMA~1\ESP32_~2\Release/readMag_5603.ino.bootloader.bin" 0x8000 "D:\temp\VMBuilds\READMA~1\ESP32_~2\Release/readMag_5603.ino.partitions.bin" 0xe000 "C:\Users\Alan\AppData\Local\arduino15\packages\esp32\hardware\esp32\2.0.3/tools/partitions/boot_app0.bin" 0x10000 "D:\temp\VMBuilds\READMA~1\ESP32_~2\Release/readMag_5603.ino.bin"
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 FLASH_SIZE]
                           [--spi-connection SPI_CONNECTION] [--no-progress]
                           [--verify] [--encrypt]
                           [--encrypt-files <address> <filename> [<address> <filename> ...]
                           [--ignore-flash-encryption-efuse-setting]
                           [--compress | --no-compress]
                           <address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: 'D:\\temp\\VMBuilds\\READMA~1\\ESP32_~2\\Release/readMag_5603.ino.bootloader.bin'
The uploader process failed

https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=log_5603-MicroBuild.txt ( 443 KB | 2 Downloads )

Title: Re: bootloader not find with latest beta of esp32
Post by AlanSborGold on Jun 30th, 2022 at 7:26pm
Problem solved.
The Esptool programmer is not automatically selected in the upper left corner Must be selected manually

Title: Re: bootloader not find with latest beta of esp32
Post by Simon@Visual Micro on Jul 1st, 2022 at 10:28am
Thanks for the report.

Can you update Visual Micro to the latest version and try this again without the Upload tool being set?

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.