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

idf.py build esp32c3 “SHA-256 comparison failed” (IDFGH-7203) #8798

Closed
QGB opened this issue Apr 19, 2022 · 10 comments
Closed

idf.py build esp32c3 “SHA-256 comparison failed” (IDFGH-7203) #8798

QGB opened this issue Apr 19, 2022 · 10 comments
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@QGB
Copy link

QGB commented Apr 19, 2022

./install.sh all
cd examples/get-started/hello_world/
idf.py set-target esp32c3
idf.py menuconfig
idf.py build

In [409]: !esptool --chip esp32c3 --port COM16 erase_flash
esptool.py v3.2
Serial port COM16
Connecting....
Chip is ESP32-C3 (revision 3)
Features: Wi-Fi
Crystal is 40MHz
MAC: 60:55:f9:72:d7:48
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 12.1s
Hard resetting via RTS pin...

In [410]: !esptool --chip esp32c3 --port COM16 --baud 460800 write_flash -z 0x0 C:/test/ESP32/esp32c3/hello_world.bin
esptool.py v3.2
Serial port COM16
Connecting....
Chip is ESP32-C3 (revision 3)
Features: Wi-Fi
Crystal is 40MHz
MAC: 60:55:f9:72:d7:48
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00024fff...
Compressed 151344 bytes to 81670...
Wrote 151344 bytes (81670 compressed) at 0x00000000 in 2.7 seconds (effective 450.9 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...


serial port 16

ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3c020020,len:0x6d30
load:0x3fc8a400,len:0x14e4
load:0x40380000,len:0x7dd4
load:0x42000020,len:0x12a3c
load:0x40387dd4,len:0x248c
load:0x50000010,len:0x10
SHA-256 comparison failed:
Calculated: 25bb723fd3e6316efb5d65670397578000b02737a534bb645f9f9686e2b3e404
Expected: 00d516aa87430f022d0ad43c476dbb101231ed5a6834298fdbd7f5dca6b560bc
Attempting to boot anyway...
entry 0x40380322
ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x7 (TG0WDT_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x4038013e
SPIWP:0xee
mode:DIO, clock div:1
load:0x3c020020,len:0x6d30
load:0x3fc8a400,len:0x14e4
load:0x40380000,len:0x7dd4
load:0x42000020,len:0x12a3c
load:0x40387dd4,len:0x248c
load:0x50000010,len:0x10
SHA-256 comparison failed:
Calculated: 25bb723fd3e6316efb5d65670397578000b02737a534bb645f9f9686e2b3e404
Expected: 00d516aa87430f022d0ad43c476dbb101231ed5a6834298fdbd7f5dca6b560bc
Attempting to boot anyway...
entry 0x40380322
ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x7 (TG0WDT_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x40380112
SPIWP:0xee
mode:DIO, clock div:1
load:0x3c020020,len:0x6d30
load:0x3fc8a400,len:0x14e4
load:0x40380000,len:0x7dd4
load:0x42000020,len:0x12a3c
load:0x40387dd4,len:0x248c
load:0x50000010,len:0x10
SHA-256 comparison failed:
Calculated: 25bb723fd3e6316efb5d65670397578000b02737a534bb645f9f9686e2b3e404
Expected: 00d516aa87430f022d0ad43c476dbb101231ed5a6834298fdbd7f5dca6b560bc
Attempting to boot anyway...
@espressif-bot espressif-bot added the Status: Opened Issue is new label Apr 19, 2022
@github-actions github-actions bot changed the title idf.py build esp32c3 “SHA-256 comparison failed” idf.py build esp32c3 “SHA-256 comparison failed” (IDFGH-7203) Apr 19, 2022
@o-marshmallow
Copy link
Collaborator

Hi @QGB,

Which version of IDF are you using? Can you have a try flashing your board with idf.py flash ?

@ESP-Marius
Copy link
Collaborator

@QGB

hello_world.bin sounds like your app binary, but a normal IDF project also has a bootloader.bin, as well as a partition-table.bin. To successfully boot it is actually the bootloader that should be flashed to 0x0, not the app binary.

As @o-marshmallow mentioned, using idf.py flash is the easiest way, as it takes care of all of this for you. If you still want to flash directly with esptool.py then you can take a look at build/flash_project_args which contains the commands needed (all the binaries and their flash offsets). See https://docs.espressif.com/projects/esp-idf/en/latest/esp32c3/api-guides/build-system.html#flash-arguments for more information about this.

@QGB
Copy link
Author

QGB commented Apr 20, 2022

@o-marshmallow
I am using docker run --rm -v /home/qgb/github/esp-idf:/home/qgb/github/esp-idf -w /home/qgb/github/esp-idf espressif/idf bash
I compile it in ubuntu virtual machine. And esp32c3 board connect to win10 laptop.

idf.py --version
ESP-IDF v5.0-dev-2491-g86013e918a


In [419]: !esptool --chip esp32c3 --port COM16 flash_id
esptool.py v3.2
Serial port COM16
Connecting....
Chip is ESP32-C3 (revision 3)
Features: Wi-Fi
Crystal is 40MHz
MAC: 60:55:f9:72:d7:48
Uploading stub...
Running stub...
Stub running...
Manufacturer: c2
Device: 2016
Detected flash size: 4MB
Hard resetting via RTS pin...
(Top) → Serial flasher config
                                  Espressif IoT Development Framework Configuration
[ ] Disable download stub
    Flash SPI mode (DIO)  --->
    Flash Sampling Mode (STR Mode)  --->
    Flash SPI speed (80 MHz)  --->
    Flash size (4 MB)  --->
[*] Detect flash size when flashing bootloader
    Before flashing (Reset to bootloader)  --->
    After flashing (Reset after flashing)  --->





entry 0x40380322
ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x10 (RTCWDT_RTC_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3c020020,len:0x6d30
load:0x3fc8a400,len:0x14e4
load:0x40380000,len:0x7dd4
load:0x42000020,len:0x12a3c
load:0x40387dd4,len:0x248c
load:0x50000010,len:0x10
SHA-256 comparison failed:
Calculated: 15cb229b05ffc7246d7ffefe43c7aaceeda906fef214c27e56fac2068d3872b4
Expected: 269d8c8dcd3611ae87ee33e822d463d9bfcd38beb9460e8a8164c2efe9755cfe
Attempting to boot anyway...
entry 0x40380322
ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x7 (TG0WDT_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x403807c6
SPIWP:0xee
mode:DIO, clock div:1
load:0x3c020020,len:0x6d30
load:0x3fc8a400,len:0x14e4
load:0x40380000,len:0x7dd4
load:0x42000020,len:0x12a3c
load:0x40387dd4,len:0x248c
load:0x50000010,len:0x10
SHA-256 comparison failed:
Calculated: 15cb229b05ffc7246d7ffefe43c7aaceeda906fef214c27e56fac2068d3872b4
Expected: 269d8c8dcd3611ae87ee33e822d463d9bfcd38beb9460e8a8164c2efe9755cfe
Attempting to boot anyway...
entry 0x40380322


@dobairoland
Copy link
Collaborator

Have you tried idf.py flash as it was suggested?

@QGB
Copy link
Author

QGB commented Apr 20, 2022

idf.py flash

I compile it in ubuntu virtual machine. no esp32c3 connected.

idf.py flash
Executing action: flash
No serial ports found. Connect a device, or use '-p PORT' option to set a specific port.

esp32c3 board connect to Win10 laptop. I copy the builded binary file to Win10 and use esptool to write_flash

@dobairoland
Copy link
Collaborator

I see. In that case you cannot connect the port to the docker image according to the note at the end of the https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-docker-image.html page.

At the end of idf.py build you can see:

Project build complete. To flash, run this command:
/home/user/.espressif/python_env/idf5.0_py3.10_env/bin/python ../../../components/esptool_py/esptool/esptool.py ... 

Please pay attention to the arguments after esptool.py. You need all of those on your Windows machine in order to successfully flash.

As others pointed out, the following doesn't look correct:

In [410]: !esptool --chip esp32c3 --port COM16 --baud 460800 write_flash -z 0x0 C:/test/ESP32/esp32c3/hello_world.bin

You can find the correct arguments above. Usually there are 3 binaries to flash. It looks like you are flashing your application at the offset of the bootloader.


I'd like to suggest to build and flash from Windows directly. It is a much easier way in comparison with the one you are following now.

@espressif-bot espressif-bot added Resolution: Won't Do This will not be worked on Status: Done Issue is done internally and removed Status: Opened Issue is new labels Apr 20, 2022
@QGB
Copy link
Author

QGB commented Apr 20, 2022

flash success

!esptool -p COM16 -b 460800 --before default_reset --after hard_reset --chip esp32c3  write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x0000 C:/test/ESP32/esp32c3/bootloader.bin 0x8000 C:/test/ESP32/esp32c3/partition-table.bin 0x10000 C:/test/ESP32/esp32c3/hello_world.bin

Error reading from serial device
ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:2
load:0x3fcd6108,len:0x196c
load:0x403ce000,len:0x904
load:0x403cf600,len:0x2eac
SHA-256 comparison failed:
Calculated: 0e71be9e3c22a30b5d1a0b1177fbc3ff55925c9c8ee37adc4f5dc85acb7a3857
Expected: deea2d801983a9eb4c23c6412e305963ffa926801d656626857ab297f8c9835e
Attempting to boot anyway...
entry 0x403ce000
I (50) boot: ESP-IDF v5.0-dev-2491-g86013e918a 2nd stage bootloader
I (50) boot: compile time 03:38:38
I (50) boot: chip revision: 3
I (53) boot.esp32c3: SPI Speed      : 40MHz
I (58) boot.esp32c3: SPI Mode       : DIO
I (63) boot.esp32c3: SPI Flash Size : 4MB
I (68) boot: Enabling RNG early entropy source...
I (73) boot: Partition Table:
I (77) boot: ## Label            Usage          Type ST Offset   Length
I (84) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (91) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (99) boot:  2 factory          factory app      00 00 00010000 00100000
I (106) boot: End of partition table
I (111) esp_image: segment 0: paddr=00010020 vaddr=3c020020 size=06d30h ( 27952) map
I (125) esp_image: segment 1: paddr=00016d58 vaddr=3fc8a400 size=014e4h (  5348) load
I (129) esp_image: segment 2: paddr=00018244 vaddr=40380000 size=07dd4h ( 32212) load
I (144) esp_image: segment 3: paddr=00020020 vaddr=42000020 size=12a3ch ( 76348) map
I (160) esp_image: segment 4: paddr=00032a64 vaddr=40387dd4 size=0248ch (  9356) load
I (163) esp_image: segment 5: paddr=00034ef8 vaddr=50000010 size=00010h (    16) load
I (169) boot: Loaded app from partition at offset 0x10000
I (172) boot: Disabling RNG early entropy source...
I (189) cpu_start: Pro cpu up.
I (198) cpu_start: Pro cpu start user code
I (198) cpu_start: cpu freq: 160000000 Hz
I (198) cpu_start: Application information:
I (201) cpu_start: Project name:     hello_world
I (206) cpu_start: App version:      1
I (210) cpu_start: Compile time:     Apr 20 2022 03:38:18
I (217) cpu_start: ELF file SHA256:  79416edfc35b1f2f...
I (222) cpu_start: ESP-IDF:          v5.0-dev-2491-g86013e918a
I (229) heap_init: Initializing. RAM available for dynamic allocation:
I (236) heap_init: At 3FC8C760 len 000338A0 (206 KiB): DRAM
I (242) heap_init: At 3FCC0000 len 0001F060 (124 KiB): STACK/DRAM
I (249) heap_init: At 50000020 len 00001FE0 (7 KiB): RTCRAM
I (256) spi_flash: detected chip: mxic
I (260) spi_flash: flash io: dio
I (264) sleep: Configure to isolate all GPIO pins in sleep state
I (271) sleep: Enable automatic switching of GPIO sleep configuration
I (278) cpu_start: Starting scheduler.
Hello world!
This is esp32c3 chip with 1 CPU core(s), WiFi/BLE, silicon revision 3, 4MB external flash
Minimum free heap size: 328252 bytes
Restarting in 10 seconds...
Restarting in 9 seconds...
Restarting in 8 seconds...
Restarting in 7 seconds...
Restarting in 6 seconds...
Restarting in 5 seconds...
Restarting in 4 seconds...

@QGB
Copy link
Author

QGB commented Apr 22, 2022

ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:2
load:0x3fcd6100,len:0x38c
load:0x403ce000,len:0x6a8
load:0x403d0000,len:0x2358
SHA-256 comparison failed:
Calculated: 4bd624aff3257f126bd68f521ac53163cd7fe48cae8d3a77a847ef36aa76ad41
Expected: 2dd871cd993fccdf87b5ef3c78d949bd29ad8f4d97ecb130ff4297267fa0ddbe
Attempting to boot anyway...
entry 0x403ce000
I (85) cpu_start: Pro cpu up.
I (94) cpu_start: Pro cpu start user code
I (94) cpu_start: cpu freq: 160000000 Hz
I (94) cpu_start: Application information:
I (97) cpu_start: Project name:     hello_world
I (102) cpu_start: App version:      1
I (106) cpu_start: Compile time:     Apr 20 2022 03:38:18
I (113) cpu_start: ELF file SHA256:  79416edfc35b1f2f...
I (119) cpu_start: ESP-IDF:          v5.0-dev-2491-g86013e918a
I (125) heap_init: Initializing. RAM available for dynamic allocation:
I (132) heap_init: At 3FC8C760 len 000338A0 (206 KiB): DRAM
I (138) heap_init: At 3FCC0000 len 0001F060 (124 KiB): STACK/DRAM
I (145) heap_init: At 50000020 len 00001FE0 (7 KiB): RTCRAM
I (152) spi_flash: detected chip: mxic
I (156) spi_flash: flash io: dio
I (160) sleep: Configure to isolate all GPIO pins in sleep state
I (167) sleep: Enable automatic switching of GPIO sleep configuration
I (174) cpu_start: Starting scheduler.
Hello world!
This is esp32c3 chip with 1 CPU core(s), WiFi/BLE, silicon revision 3, 4MB external flash
Minimum free heap size: 328252 bytes
Restarting in 10 seconds...
Restarting in 9 seconds...
Restarting in 8 seconds...
Restarting in 7 seconds...
Restarting in 6 seconds...
Restarting in 5 seconds...

@QGB
Copy link
Author

QGB commented Apr 24, 2022

不使用 idf build 出来的 C:\Espressif\frameworks\esp-idf-v4.4\examples\get-started\hello_world\build\bootloader\bootloader.bin. 而使用其他工程的 bootloader.bin

或者 idf.py menuconfig 选择 2MB ,但是 esptool --flash_size 4MB 。

或者 --flash_freq 40m 【默认是 80m】

虽然可以成功运行,但在启动时会出现:


SHA-256 comparison failed:
Calculated: 68bf5beb6eee0d75a66d017ee85c093544b1ef1f666366045b50061c0a4dc49e
Expected: deea2d801983a9eb4c23c6412e305963ffa926801d656626857ab297f8c9835e
Attempting to boot anyway...
entry 0x403ce000
I (53) boot: ESP-IDF v5.0-dev-2491-g86013e918a 2nd stage bootloader
I (53) boot: compile time 03:38:38

@QGB
Copy link
Author

QGB commented Apr 24, 2022

加入 arduino 组件时,必须先 删除 老 build 文件夹。不然 idf.py menuconfig "Arduino Configuration" 找不到

[83/86] Linking C static library esp-idf\main\libmain.a
[84/86] Linking C executable bootloader.elf
[85/86] Generating binary image from built executable
esptool.py v3.2-dev
Merged 1 ELF section
Generated C:/Espressif/frameworks/esp-idf-v4.4/examples/get-started/hello_world/build/bootloader/bootloader.bin
[86/86] cmd.exe /C "cd /D C:\Espressif\frameworks\esp-idf-v4.4\examples\get-started\hello_world\build\bootloader\esp-idf\esptool_py && C:\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe C:/Espressif/frameworks/esp-idf-v4.4/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 C:/Espressif/frameworks/esp-idf-v4.4/examples/get-started/hello_world/build/bootloader/bootloader.bin"
Bootloader binary size 0x4d90 bytes. 0x3270 bytes (39%) free.
[912/1100] Building C object esp-idf/arduino/CMakeFiles/__idf_arduino.dir/cores/esp32/esp32-hal-uart.c.obj
../components/arduino/cores/esp32/esp32-hal-uart.c: In function 'uartStartDetectBaudrate':
../components/arduino/cores/esp32/esp32-hal-uart.c:541:17: warning: unused variable 'hw' [-Wunused-variable]
     uart_dev_t *hw = UART_LL_GET_HW(uart->num);
                 ^~
[955/1100] Linking C static library esp-idf\spiffs\libspi

=========================

[87/88] Generating binary image from built executable
esptool.py v3.2-dev
Merged 1 ELF section
Generated C:/Espressif/frameworks/esp-idf-v4.4/examples/get-started/hello_world/build/bootloader/bootloader.bin
[88/88] cmd.exe /C "cd /D C:\Espressif\frameworks\esp-idf-v4.4\examples\get-started\hello_world\build\bootloader\esp-idf\esptool_py && C:\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe C:/Espressif/frameworks/esp-idf-v4.4/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 C:/Espressif/frameworks/esp-idf-v4.4/examples/get-started/hello_world/build/bootloader/bootloader.bin"
Bootloader binary size 0x4d80 bytes. 0x3280 bytes (39%) free.
[987/1113] Building C object esp-idf/arduino/CMakeFiles/__idf_arduino.dir/cores/esp32/esp32-hal-i2c-slave.c.obj
../components/arduino/cores/esp32/esp32-hal-i2c-slave.c: In function 'i2c_slave_isr_handler':
../components/arduino/cores/esp32/esp32-hal-i2c-slave.c:698:13: warning: unused variable 'tx_fifo_len' [-Wunused-variable]
     uint8_t tx_fifo_len = SOC_I2C_FIFO_LEN - i2c_ll_get_txfifo_len(i2c->dev);
             ^~~~~~~~~~~
[992/1113] Building C object esp-idf/arduino/CMakeFiles/__idf_arduino.dir/cores/esp32/esp32-hal-uart.c.obj
../components/arduino/cores/esp32/esp32-hal-uart.c: In function 'uartStartDetectBaudrate':
../components/arduino/cores/esp32/esp32-hal-uart.c:541:17: warning: unused variable 'hw' [-Wunused-variable]
     uart_dev_t *hw = UART_LL_GET_HW(uart->num);
                 ^~
[996/1113] Building C object esp-idf/arduino/CMakeFiles/__idf_arduino.dir/cores/esp32/libb64/cencode.c.obj
../components/arduino/cores/esp32/libb64/cencode.c: In function 'base64_encode_block':
../components/arduino/cores/esp32/libb64/cencode.c:46:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
             result = (fragment & 0x003) << 4;
             ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
../components/arduino/cores/esp32/libb64/cencode.c:47:9: note: here
         case step_B:
         ^~~~
../components/arduino/cores/esp32/libb64/cencode.c:56:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
             result = (fragment & 0x00f) << 2;
             ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
../components/arduino/cores/esp32/libb64/cencode.c:57:9: note: here
         case step_C:
         ^~~~
[1001/1113] Building C object esp-idf/arduino/CMakeFiles/__idf_arduino.dir/cores/esp32/libb64/cdecode.c.obj
../components/arduino/cores/esp32/libb64/cdecode.c: In function 'base64_decode_block_signed':
../components/arduino/cores/esp32/libb64/cdecode.c:42:23: warning: this statement may fall through [-Wimplicit-fallthrough=]
         *plainchar    = (fragment & 0x03f) << 2;
         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
../components/arduino/cores/esp32/libb64/cdecode.c:43:7: note: here
       case step_b:
       ^~~~
../components/arduino/cores/esp32/libb64/cdecode.c:53:23: warning: this statement may fall through [-Wimplicit-fallthrough=]
         *plainchar    = (fragment & 0x00f) << 4;
         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
../components/arduino/cores/esp32/libb64/cdecode.c:54:7: note: here
       case step_c:
       ^~~~
../components/arduino/cores/esp32/libb64/cdecode.c:64:23: warning: this statement may fall through [-Wimplicit-fallthrough=]
         *plainchar    = (fragment & 0x003) << 6;
         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
../components/arduino/cores/esp32/libb64/cdecode.c:65:7: note: here
       case step_d:
       ^~~~
[1015/1113] Building CXX object esp-idf/arduino/CMakeFiles/__idf_arduino.dir/cores/esp32/Tone.cpp.obj
../components/arduino/cores/esp32/Tone.cpp: In function 'void setToneChannel(uint8_t)':
../components/arduino/cores/esp32/Tone.cpp:99:5: warning: missing initializer for member 'tone_msg_t::pin' [-Wmissing-field-initializers]
     };
     ^
../components/arduino/cores/esp32/Tone.cpp:99:5: warning: missing initializer for member 'tone_msg_t::frequency' [-Wmissing-field-initializers]
../components/arduino/cores/esp32/Tone.cpp:99:5: warning: missing initializer for member 'tone_msg_t::duration' [-Wmissing-field-initializers]
../components/arduino/cores/esp32/Tone.cpp: In function 'void noTone(uint8_t)':
../components/arduino/cores/esp32/Tone.cpp:110:5: warning: missing initializer for member 'tone_msg_t::frequency' [-Wmissing-field-initializers]
     };
     ^
../components/arduino/cores/esp32/Tone.cpp:110:5: warning: missing initializer for member 'tone_msg_t::duration' [-Wmissing-field-initializers]
../components/arduino/cores/esp32/Tone.cpp:110:5: warning: missing initializer for member 'tone_msg_t::channel' [-Wmissing-field-initializers]
../components/arduino/cores/esp32/Tone.cpp: In function 'void tone(uint8_t, unsigned int, long unsigned int)':
../components/arduino/cores/esp32/Tone.cpp:128:5: warning: missing initializer for member 'tone_msg_t::channel' [-Wmissing-field-initializers]
     };
     ^
[1023/1113] Building CXX object esp-idf/arduino/CMakeFiles/__idf_arduino.dir/libraries/ESPmDNS/src/ESPmDNS.cpp.obj      


@espressif-bot espressif-bot added Status: Opened Issue is new and removed Resolution: Won't Do This will not be worked on Status: Done Issue is done internally labels Apr 24, 2022
@espressif-bot espressif-bot added Status: In Progress Work is in progress and removed Status: Opened Issue is new labels May 6, 2022
espressif-bot pushed a commit to espressif/esptool that referenced this issue May 11, 2022
@espressif-bot espressif-bot added Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: In Progress Work is in progress Resolution: NA Issue resolution is unavailable labels Jun 1, 2022
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue Jul 8, 2022
Mark as not for python 2.7.

Summary of upstream release notes, less bugfixes:

* Version 4.1

    ESP32-C2: Added flash encryption support
    elf2image: Added argument to disable appending SHA256 digests

* Version 4.0

Starting from v4.0.0, esptool adopts the semantic versioning
specification, please read the related "Versions" esptool
documentation page when deciding which version to use.

** Breaking changes

  Public API has been defined by limiting access to internals that
  have been refactored into multiple source files. Changing or
  refactoring these limited internals won't be considered a breaking
  change in future releases. Migration is easy and self-explanatory
  (you will get an import error if something has moved) and is
  required only in projects that import esptool directly.

  If active security features are detected, the default behavior
  changes to prevent unintentional bricking (#699):

    If flash encryption is enabled, erase_flash and erase_region
    cannot be executed.

    If secure boot is enabled, erase_flash, erase_region and
    write_flash operations cannot be performed (write_flash is just
    restricted to protect the bootloader region 0x0000->0x8000).

    An override flag --force lets the users execute these operations
    anyways.

  Flash parameters in an image header can now be changed only when no
  SHA256 digest is appended (espressif/esp-idf#8798).

  Python versions 2.7, 3.4, 3.5, and 3.6 have been deprecated, the
  code is now Python 3-only compatible. Releases v4 and later can't be
  installed from PyPI on these deprecated Python versions.

  The ESP8684 alias has been removed, ESP32-C2 has to be used.

  Megabit flash sizes have been deprecated, use megabyte units from
  now on.

** New Features

   Added stub flasher support for ESP32-C2 ECO1, deprecated ECO0 stub (can still be used with ROM).

   espefuse.py: Added a new package - ESP32-D0WDR2-V3
radimkarnis pushed a commit to radimkarnis/esptool that referenced this issue Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

5 participants