Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: espressif/arduino-esp32
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: cipherz/arduino-esp32
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: idf-release/v3.3
Choose a head ref
  • 3 commits
  • 245 files changed
  • 3 contributors

Commits on Oct 9, 2019

  1. IDF release/v3.3 46b12a560

    me-no-dev committed Oct 9, 2019
    Copy the full SHA
    5b20197 View commit details
  2. fix build

    me-no-dev committed Oct 9, 2019
    Copy the full SHA
    7ac867a View commit details

Commits on Oct 17, 2019

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c59f198 View commit details
Showing with 10,792 additions and 3,505 deletions.
  1. +3 −3 platform.txt
  2. +10 −44 tools/esptool.py
  3. +86 −62 tools/gen_esp32part.py
  4. +6 −2 tools/platformio-build.py
  5. BIN tools/sdk/bin/bootloader_dio_40m.bin
  6. BIN tools/sdk/bin/bootloader_dio_80m.bin
  7. BIN tools/sdk/bin/bootloader_dout_40m.bin
  8. BIN tools/sdk/bin/bootloader_dout_80m.bin
  9. BIN tools/sdk/bin/bootloader_qio_40m.bin
  10. BIN tools/sdk/bin/bootloader_qio_80m.bin
  11. BIN tools/sdk/bin/bootloader_qout_40m.bin
  12. BIN tools/sdk/bin/bootloader_qout_80m.bin
  13. +13 −13 tools/sdk/include/app_trace/esp_app_trace.h
  14. +106 −0 tools/sdk/include/app_update/esp_ota_ops.h
  15. +42 −17 tools/sdk/include/bootloader_support/bootloader_common.h
  16. +71 −0 tools/sdk/include/bootloader_support/bootloader_flash_config.h
  17. +0 −106 tools/sdk/include/bootloader_support/esp_efuse.h
  18. +21 −19 tools/sdk/include/bootloader_support/esp_image_format.h
  19. +25 −3 tools/sdk/include/bootloader_support/esp_secure_boot.h
  20. +1 −1 tools/sdk/include/bt/esp_bt.h
  21. +32 −2 tools/sdk/include/bt/esp_gap_ble_api.h
  22. +20 −5 tools/sdk/include/config/sdkconfig.h
  23. +30 −1 tools/sdk/include/driver/driver/can.h
  24. +37 −0 tools/sdk/include/driver/driver/i2s.h
  25. +27 −0 tools/sdk/include/driver/driver/rmt.h
  26. +40 −8 tools/sdk/include/driver/driver/spi_common.h
  27. +4 −0 tools/sdk/include/driver/driver/spi_master.h
  28. +19 −12 tools/sdk/include/driver/driver/spi_slave.h
  29. +5 −2 tools/sdk/include/driver/driver/uart.h
  30. +362 −0 tools/sdk/include/efuse/esp_efuse.h
  31. +69 −0 tools/sdk/include/efuse/esp_efuse_table.h
  32. +19 −4 tools/sdk/include/esp-tls/esp_tls.h
  33. +24 −11 tools/sdk/include/esp32/esp_attr.h
  34. +1 −0 tools/sdk/include/esp32/esp_clk.h
  35. +0 −64 tools/sdk/include/esp32/esp_core_dump.h
  36. +5 −0 tools/sdk/include/esp32/esp_event_legacy.h
  37. +13 −1 tools/sdk/include/esp32/esp_flash_data_types.h
  38. +12 −0 tools/sdk/include/esp32/esp_phy_init.h
  39. +72 −10 tools/sdk/include/esp32/esp_wifi_internal.h
  40. +45 −12 tools/sdk/include/esp32/rom/crc.h
  41. +5 −0 tools/sdk/include/esp32/rom/spi_flash.h
  42. +3 −3 tools/sdk/include/esp32/rom/uart.h
  43. +78 −88 tools/sdk/include/esp_event/esp_event.h
  44. +31 −1 tools/sdk/include/esp_http_client/esp_http_client.h
  45. +279 −25 tools/sdk/include/esp_http_server/esp_http_server.h
  46. +1 −0 tools/sdk/include/esp_https_ota/esp_https_ota.h
  47. +130 −0 tools/sdk/include/esp_https_server/esp_https_server.h
  48. +89 −0 tools/sdk/include/espcoredump/esp_core_dump.h
  49. +8 −1 tools/sdk/include/fatfs/ffconf.h
  50. +1 −1 tools/sdk/include/freemodbus/mbcontroller.h
  51. +6 −1 tools/sdk/include/freertos/freertos/FreeRTOSConfig.h
  52. +68 −0 tools/sdk/include/freertos/freertos/portmacro.h
  53. +3 −11 tools/sdk/include/idf_test/idf_performance.h
  54. +24 −20 tools/sdk/include/lwip/lwipopts.h
  55. +62 −14 tools/sdk/include/mbedtls/mbedtls/aes.h
  56. +39 −13 tools/sdk/include/mbedtls/mbedtls/aesni.h
  57. +5 −0 tools/sdk/include/mbedtls/mbedtls/arc4.h
  58. +71 −32 tools/sdk/include/mbedtls/mbedtls/aria.h
  59. +203 −114 tools/sdk/include/mbedtls/mbedtls/asn1write.h
  60. +9 −0 tools/sdk/include/mbedtls/mbedtls/base64.h
  61. +505 −311 tools/sdk/include/mbedtls/mbedtls/bignum.h
  62. +92 −49 tools/sdk/include/mbedtls/mbedtls/blowfish.h
  63. +37 −15 tools/sdk/include/mbedtls/mbedtls/bn_mul.h
  64. +138 −83 tools/sdk/include/mbedtls/mbedtls/camellia.h
  65. +78 −40 tools/sdk/include/mbedtls/mbedtls/ccm.h
  66. +196 −44 tools/sdk/include/mbedtls/mbedtls/certs.h
  67. +34 −20 tools/sdk/include/mbedtls/mbedtls/chacha20.h
  68. +43 −40 tools/sdk/include/mbedtls/mbedtls/chachapoly.h
  69. +15 −0 tools/sdk/include/mbedtls/mbedtls/check_config.h
  70. +147 −81 tools/sdk/include/mbedtls/mbedtls/cipher.h
  71. +7 −0 tools/sdk/include/mbedtls/mbedtls/cmac.h
  72. +6 −0 tools/sdk/include/mbedtls/mbedtls/compat-1.3.h
  73. +174 −35 tools/sdk/include/mbedtls/mbedtls/config.h
  74. +62 −12 tools/sdk/include/mbedtls/mbedtls/ctr_drbg.h
  75. +36 −0 tools/sdk/include/mbedtls/mbedtls/debug.h
  76. +6 −0 tools/sdk/include/mbedtls/mbedtls/des.h
  77. +103 −70 tools/sdk/include/mbedtls/mbedtls/dhm.h
  78. +226 −66 tools/sdk/include/mbedtls/mbedtls/ecdh.h
  79. +269 −63 tools/sdk/include/mbedtls/mbedtls/ecdsa.h
  80. +88 −60 tools/sdk/include/mbedtls/mbedtls/ecjpake.h
  81. +479 −111 tools/sdk/include/mbedtls/mbedtls/ecp.h
  82. +6 −0 tools/sdk/include/mbedtls/mbedtls/ecp_internal.h
  83. +13 −6 tools/sdk/include/mbedtls/mbedtls/error.h
  84. +71 −36 tools/sdk/include/mbedtls/mbedtls/gcm.h
  85. +6 −0 tools/sdk/include/mbedtls/mbedtls/havege.h
  86. +6 −0 tools/sdk/include/mbedtls/mbedtls/hkdf.h
  87. +35 −1 tools/sdk/include/mbedtls/mbedtls/hmac_drbg.h
  88. +2 −0 tools/sdk/include/mbedtls/mbedtls/md.h
  89. +5 −0 tools/sdk/include/mbedtls/mbedtls/md2.h
  90. +5 −0 tools/sdk/include/mbedtls/mbedtls/md4.h
  91. +5 −0 tools/sdk/include/mbedtls/mbedtls/md5.h
  92. +5 −0 tools/sdk/include/mbedtls/mbedtls/net.h
  93. +6 −0 tools/sdk/include/mbedtls/mbedtls/nist_kw.h
  94. +30 −12 tools/sdk/include/mbedtls/mbedtls/padlock.h
  95. +6 −0 tools/sdk/include/mbedtls/mbedtls/pem.h
  96. +172 −43 tools/sdk/include/mbedtls/mbedtls/pk.h
  97. +23 −0 tools/sdk/include/mbedtls/mbedtls/pk_internal.h
  98. +10 −0 tools/sdk/include/mbedtls/mbedtls/pkcs12.h
  99. +14 −0 tools/sdk/include/mbedtls/mbedtls/pkcs5.h
  100. +3 −0 tools/sdk/include/mbedtls/mbedtls/platform.h
  101. +84 −2 tools/sdk/include/mbedtls/mbedtls/platform_util.h
  102. +33 −22 tools/sdk/include/mbedtls/mbedtls/poly1305.h
  103. +6 −0 tools/sdk/include/mbedtls/mbedtls/ripemd160.h
  104. +369 −229 tools/sdk/include/mbedtls/mbedtls/rsa.h
  105. +47 −19 tools/sdk/include/mbedtls/mbedtls/sha1.h
  106. +59 −34 tools/sdk/include/mbedtls/mbedtls/sha256.h
  107. +62 −32 tools/sdk/include/mbedtls/mbedtls/sha512.h
  108. +153 −84 tools/sdk/include/mbedtls/mbedtls/ssl.h
  109. +6 −0 tools/sdk/include/mbedtls/mbedtls/ssl_cache.h
  110. +6 −0 tools/sdk/include/mbedtls/mbedtls/ssl_ciphersuites.h
  111. +6 −0 tools/sdk/include/mbedtls/mbedtls/ssl_cookie.h
  112. +26 −1 tools/sdk/include/mbedtls/mbedtls/ssl_internal.h
  113. +6 −0 tools/sdk/include/mbedtls/mbedtls/ssl_ticket.h
  114. +3 −0 tools/sdk/include/mbedtls/mbedtls/threading.h
  115. +5 −5 tools/sdk/include/mbedtls/mbedtls/version.h
  116. +4 −0 tools/sdk/include/mbedtls/mbedtls/x509.h
  117. +127 −12 tools/sdk/include/mbedtls/mbedtls/x509_crt.h
  118. +8 −0 tools/sdk/include/mbedtls/mbedtls/x509_csr.h
  119. +6 −0 tools/sdk/include/mbedtls/mbedtls/xtea.h
  120. +4 −124 tools/sdk/include/mqtt/mqtt_client.h
  121. +6 −11 tools/sdk/include/mqtt/mqtt_config.h
  122. +14 −0 tools/sdk/include/nvs_flash/nvs.h
  123. +17 −3 tools/sdk/include/pthread/esp_pthread.h
  124. +2 −0 tools/sdk/include/soc/soc/apb_ctrl_struct.h
  125. +2 −0 tools/sdk/include/soc/soc/can_struct.h
  126. +43 −10 tools/sdk/include/soc/soc/efuse_reg.h
  127. +2 −0 tools/sdk/include/soc/soc/gpio_sd_struct.h
  128. +2 −0 tools/sdk/include/soc/soc/gpio_struct.h
  129. +2 −0 tools/sdk/include/soc/soc/hinf_struct.h
  130. +2 −0 tools/sdk/include/soc/soc/host_struct.h
  131. +2 −0 tools/sdk/include/soc/soc/i2c_struct.h
  132. +2 −0 tools/sdk/include/soc/soc/i2s_struct.h
  133. +72 −32 tools/sdk/include/soc/soc/ledc_reg.h
  134. +2 −0 tools/sdk/include/soc/soc/ledc_struct.h
  135. +2 −0 tools/sdk/include/soc/soc/mcpwm_struct.h
  136. +2 −0 tools/sdk/include/soc/soc/pcnt_struct.h
  137. +434 −2 tools/sdk/include/soc/soc/rmt_reg.h
  138. +2 −0 tools/sdk/include/soc/soc/rmt_struct.h
  139. +2 −0 tools/sdk/include/soc/soc/rtc_cntl_struct.h
  140. +2 −0 tools/sdk/include/soc/soc/rtc_io_struct.h
  141. +2 −0 tools/sdk/include/soc/soc/sdmmc_struct.h
  142. +2 −0 tools/sdk/include/soc/soc/sens_struct.h
  143. +2 −0 tools/sdk/include/soc/soc/slc_struct.h
  144. +5 −0 tools/sdk/include/soc/soc/soc_memory_layout.h
  145. +2 −0 tools/sdk/include/soc/soc/spi_struct.h
  146. +2 −0 tools/sdk/include/soc/soc/syscon_struct.h
  147. +2 −0 tools/sdk/include/soc/soc/timer_group_struct.h
  148. +2 −0 tools/sdk/include/soc/soc/uart_struct.h
  149. +2 −0 tools/sdk/include/soc/soc/uhci_struct.h
  150. +1 −0 tools/sdk/include/spi_flash/esp_partition.h
  151. +344 −312 tools/sdk/include/tcpip_adapter/tcpip_adapter.h
  152. +66 −0 tools/sdk/include/tcpip_adapter/tcpip_adapter_internal.h
  153. +3 −0 tools/sdk/include/ulp/esp32/ulp.h
  154. +503 −0 tools/sdk/include/unity/unity.h
  155. +53 −0 tools/sdk/include/unity/unity_config.h
  156. +928 −0 tools/sdk/include/unity/unity_internals.h
  157. +174 −0 tools/sdk/include/unity/unity_test_runner.h
  158. +6 −0 tools/sdk/include/vfs/esp_vfs.h
  159. +553 −0 tools/sdk/include/wifi_provisioning/wifi_provisioning/manager.h
  160. +82 −0 tools/sdk/include/wifi_provisioning/wifi_provisioning/scheme_ble.h
  161. +34 −0 tools/sdk/include/wifi_provisioning/wifi_provisioning/scheme_console.h
  162. +34 −0 tools/sdk/include/wifi_provisioning/wifi_provisioning/scheme_softap.h
  163. +166 −0 tools/sdk/include/wifi_provisioning/wifi_provisioning/wifi_scan.h
  164. +7 −6 tools/sdk/include/wpa_supplicant/wpa2/eap_peer/eap_i.h
  165. +0 −343 tools/sdk/ld/esp32.common.ld
  166. +1 −1 tools/sdk/ld/esp32.ld
  167. +620 −0 tools/sdk/ld/esp32.project.ld
  168. +0 −143 tools/sdk/ld/esp32.spiram.rom-functions-dram.ld
  169. +0 −140 tools/sdk/ld/esp32.spiram.rom-functions-iram.ld
  170. +1 −1 tools/sdk/ld/esp32_out.ld
  171. +0 −4 tools/sdk/ld/wifi_iram.ld
  172. BIN tools/sdk/lib/libapp_trace.a
  173. BIN tools/sdk/lib/libapp_update.a
  174. BIN tools/sdk/lib/libasio.a
  175. BIN tools/sdk/lib/libbootloader_support.a
  176. BIN tools/sdk/lib/libbt.a
  177. BIN tools/sdk/lib/libbtdm_app.a
  178. BIN tools/sdk/lib/libcoap.a
  179. BIN tools/sdk/lib/libcoexist.a
  180. BIN tools/sdk/lib/libconsole.a
  181. BIN tools/sdk/lib/libcore.a
  182. BIN tools/sdk/lib/libcxx.a
  183. BIN tools/sdk/lib/libdriver.a
  184. BIN tools/sdk/lib/libefuse.a
  185. BIN tools/sdk/lib/libesp-tls.a
  186. BIN tools/sdk/lib/libesp32-camera.a
  187. BIN tools/sdk/lib/libesp32.a
  188. BIN tools/sdk/lib/libesp_adc_cal.a
  189. BIN tools/sdk/lib/libesp_event.a
  190. BIN tools/sdk/lib/libesp_http_client.a
  191. BIN tools/sdk/lib/libesp_http_server.a
  192. BIN tools/sdk/lib/libesp_https_ota.a
  193. BIN tools/sdk/lib/libesp_https_server.a
  194. BIN tools/sdk/lib/libesp_ringbuf.a
  195. BIN tools/sdk/lib/libespcoredump.a
  196. BIN tools/sdk/lib/libespnow.a
  197. BIN tools/sdk/lib/libethernet.a
  198. BIN tools/sdk/lib/libexpat.a
  199. BIN tools/sdk/lib/libface_detection.a
  200. BIN tools/sdk/lib/libface_recognition.a
  201. BIN tools/sdk/lib/libfatfs.a
  202. BIN tools/sdk/lib/libfb_gfx.a
  203. BIN tools/sdk/lib/libfreemodbus.a
  204. BIN tools/sdk/lib/libfreertos.a
  205. BIN tools/sdk/lib/libheap.a
  206. BIN tools/sdk/lib/libimage_util.a
  207. BIN tools/sdk/lib/libjsmn.a
  208. BIN tools/sdk/lib/libjson.a
  209. BIN tools/sdk/lib/liblibsodium.a
  210. BIN tools/sdk/lib/liblog.a
  211. BIN tools/sdk/lib/liblwip.a
  212. BIN tools/sdk/lib/libmbedtls.a
  213. BIN tools/sdk/lib/libmdns.a
  214. BIN tools/sdk/lib/libmesh.a
  215. BIN tools/sdk/lib/libmicro-ecc.a
  216. BIN tools/sdk/lib/libmqtt.a
  217. BIN tools/sdk/lib/libnet80211.a
  218. BIN tools/sdk/lib/libnewlib.a
  219. BIN tools/sdk/lib/libnghttp.a
  220. BIN tools/sdk/lib/libnvs_flash.a
  221. BIN tools/sdk/lib/libopenssl.a
  222. BIN tools/sdk/lib/libphy.a
  223. BIN tools/sdk/lib/libpp.a
  224. BIN tools/sdk/lib/libprotobuf-c.a
  225. BIN tools/sdk/lib/libprotocomm.a
  226. BIN tools/sdk/lib/libpthread.a
  227. BIN tools/sdk/lib/libsdmmc.a
  228. BIN tools/sdk/lib/libsmartconfig.a
  229. BIN tools/sdk/lib/libsmartconfig_ack.a
  230. BIN tools/sdk/lib/libsoc.a
  231. BIN tools/sdk/lib/libspi_flash.a
  232. BIN tools/sdk/lib/libspiffs.a
  233. BIN tools/sdk/lib/libtcp_transport.a
  234. BIN tools/sdk/lib/libtcpip_adapter.a
  235. BIN tools/sdk/lib/libulp.a
  236. BIN tools/sdk/lib/libunity.a
  237. BIN tools/sdk/lib/libvfs.a
  238. BIN tools/sdk/lib/libwear_levelling.a
  239. BIN tools/sdk/lib/libwifi_provisioning.a
  240. BIN tools/sdk/lib/libwpa.a
  241. BIN tools/sdk/lib/libwpa2.a
  242. BIN tools/sdk/lib/libwpa_supplicant.a
  243. BIN tools/sdk/lib/libwps.a
  244. BIN tools/sdk/lib/libxtensa-debug-module.a
  245. +62 −9 tools/sdk/sdkconfig
6 changes: 3 additions & 3 deletions platform.txt
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ compiler.warning_flags.all=-Wall -Werror=all -Wextra

compiler.path={runtime.tools.xtensa-esp32-elf-gcc.path}/bin/
compiler.sdk.path={runtime.platform.path}/tools/sdk
compiler.cpreprocessor.flags=-DESP_PLATFORM -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -DHAVE_CONFIG_H -DGCC_NOT_5_2_0=0 -DWITH_POSIX "-I{compiler.sdk.path}/include/config" "-I{compiler.sdk.path}/include/app_trace" "-I{compiler.sdk.path}/include/app_update" "-I{compiler.sdk.path}/include/asio" "-I{compiler.sdk.path}/include/bootloader_support" "-I{compiler.sdk.path}/include/bt" "-I{compiler.sdk.path}/include/coap" "-I{compiler.sdk.path}/include/console" "-I{compiler.sdk.path}/include/driver" "-I{compiler.sdk.path}/include/esp-tls" "-I{compiler.sdk.path}/include/esp32" "-I{compiler.sdk.path}/include/esp_adc_cal" "-I{compiler.sdk.path}/include/esp_event" "-I{compiler.sdk.path}/include/esp_http_client" "-I{compiler.sdk.path}/include/esp_http_server" "-I{compiler.sdk.path}/include/esp_https_ota" "-I{compiler.sdk.path}/include/esp_ringbuf" "-I{compiler.sdk.path}/include/ethernet" "-I{compiler.sdk.path}/include/expat" "-I{compiler.sdk.path}/include/fatfs" "-I{compiler.sdk.path}/include/freemodbus" "-I{compiler.sdk.path}/include/freertos" "-I{compiler.sdk.path}/include/heap" "-I{compiler.sdk.path}/include/idf_test" "-I{compiler.sdk.path}/include/jsmn" "-I{compiler.sdk.path}/include/json" "-I{compiler.sdk.path}/include/libsodium" "-I{compiler.sdk.path}/include/log" "-I{compiler.sdk.path}/include/lwip" "-I{compiler.sdk.path}/include/mbedtls" "-I{compiler.sdk.path}/include/mdns" "-I{compiler.sdk.path}/include/micro-ecc" "-I{compiler.sdk.path}/include/mqtt" "-I{compiler.sdk.path}/include/newlib" "-I{compiler.sdk.path}/include/nghttp" "-I{compiler.sdk.path}/include/nvs_flash" "-I{compiler.sdk.path}/include/openssl" "-I{compiler.sdk.path}/include/protobuf-c" "-I{compiler.sdk.path}/include/protocomm" "-I{compiler.sdk.path}/include/pthread" "-I{compiler.sdk.path}/include/sdmmc" "-I{compiler.sdk.path}/include/smartconfig_ack" "-I{compiler.sdk.path}/include/soc" "-I{compiler.sdk.path}/include/spi_flash" "-I{compiler.sdk.path}/include/spiffs" "-I{compiler.sdk.path}/include/tcp_transport" "-I{compiler.sdk.path}/include/tcpip_adapter" "-I{compiler.sdk.path}/include/ulp" "-I{compiler.sdk.path}/include/vfs" "-I{compiler.sdk.path}/include/wear_levelling" "-I{compiler.sdk.path}/include/wifi_provisioning" "-I{compiler.sdk.path}/include/wpa_supplicant" "-I{compiler.sdk.path}/include/xtensa-debug-module" "-I{compiler.sdk.path}/include/esp-face" "-I{compiler.sdk.path}/include/esp32-camera" "-I{compiler.sdk.path}/include/esp-face" "-I{compiler.sdk.path}/include/fb_gfx"
compiler.cpreprocessor.flags=-DESP_PLATFORM -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -DHAVE_CONFIG_H -DGCC_NOT_5_2_0=0 -DWITH_POSIX "-I{compiler.sdk.path}/include/config" "-I{compiler.sdk.path}/include/app_trace" "-I{compiler.sdk.path}/include/app_update" "-I{compiler.sdk.path}/include/asio" "-I{compiler.sdk.path}/include/bootloader_support" "-I{compiler.sdk.path}/include/bt" "-I{compiler.sdk.path}/include/coap" "-I{compiler.sdk.path}/include/console" "-I{compiler.sdk.path}/include/driver" "-I{compiler.sdk.path}/include/efuse" "-I{compiler.sdk.path}/include/esp-tls" "-I{compiler.sdk.path}/include/esp32" "-I{compiler.sdk.path}/include/esp_adc_cal" "-I{compiler.sdk.path}/include/esp_event" "-I{compiler.sdk.path}/include/esp_http_client" "-I{compiler.sdk.path}/include/esp_http_server" "-I{compiler.sdk.path}/include/esp_https_ota" "-I{compiler.sdk.path}/include/esp_https_server" "-I{compiler.sdk.path}/include/esp_ringbuf" "-I{compiler.sdk.path}/include/espcoredump" "-I{compiler.sdk.path}/include/ethernet" "-I{compiler.sdk.path}/include/expat" "-I{compiler.sdk.path}/include/fatfs" "-I{compiler.sdk.path}/include/freemodbus" "-I{compiler.sdk.path}/include/freertos" "-I{compiler.sdk.path}/include/heap" "-I{compiler.sdk.path}/include/idf_test" "-I{compiler.sdk.path}/include/jsmn" "-I{compiler.sdk.path}/include/json" "-I{compiler.sdk.path}/include/libsodium" "-I{compiler.sdk.path}/include/log" "-I{compiler.sdk.path}/include/lwip" "-I{compiler.sdk.path}/include/mbedtls" "-I{compiler.sdk.path}/include/mdns" "-I{compiler.sdk.path}/include/micro-ecc" "-I{compiler.sdk.path}/include/mqtt" "-I{compiler.sdk.path}/include/newlib" "-I{compiler.sdk.path}/include/nghttp" "-I{compiler.sdk.path}/include/nvs_flash" "-I{compiler.sdk.path}/include/openssl" "-I{compiler.sdk.path}/include/protobuf-c" "-I{compiler.sdk.path}/include/protocomm" "-I{compiler.sdk.path}/include/pthread" "-I{compiler.sdk.path}/include/sdmmc" "-I{compiler.sdk.path}/include/smartconfig_ack" "-I{compiler.sdk.path}/include/soc" "-I{compiler.sdk.path}/include/spi_flash" "-I{compiler.sdk.path}/include/spiffs" "-I{compiler.sdk.path}/include/tcp_transport" "-I{compiler.sdk.path}/include/tcpip_adapter" "-I{compiler.sdk.path}/include/ulp" "-I{compiler.sdk.path}/include/unity" "-I{compiler.sdk.path}/include/vfs" "-I{compiler.sdk.path}/include/wear_levelling" "-I{compiler.sdk.path}/include/wifi_provisioning" "-I{compiler.sdk.path}/include/wpa_supplicant" "-I{compiler.sdk.path}/include/xtensa-debug-module" "-I{compiler.sdk.path}/include/esp-face" "-I{compiler.sdk.path}/include/esp32-camera" "-I{compiler.sdk.path}/include/esp-face" "-I{compiler.sdk.path}/include/fb_gfx"

compiler.c.cmd=xtensa-esp32-elf-gcc
compiler.c.flags=-std=gnu99 -Os -g3 -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -Wpointer-arith {compiler.warning_flags} -Wno-maybe-uninitialized -Wno-unused-function -Wno-unused-but-set-variable -Wno-unused-variable -Wno-deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -Wno-old-style-declaration -MMD -c
@@ -34,8 +34,8 @@ compiler.S.cmd=xtensa-esp32-elf-gcc
compiler.S.flags=-c -g3 -x assembler-with-cpp -MMD -mlongcalls

compiler.c.elf.cmd=xtensa-esp32-elf-gcc
compiler.c.elf.flags=-nostdlib "-L{compiler.sdk.path}/lib" "-L{compiler.sdk.path}/ld" -T esp32_out.ld -T esp32.common.ld -T esp32.rom.ld -T esp32.peripherals.ld -T esp32.rom.libgcc.ld -T esp32.rom.spiram_incompatible_fns.ld -u ld_include_panic_highint_hdl -u call_user_start_cpu0 -Wl,--gc-sections -Wl,-static -Wl,--undefined=uxTopUsedPriority -u __cxa_guard_dummy -u __cxx_fatal_exception
compiler.c.elf.libs=-lgcc -lesp32 -lphy -lesp_http_client -lmbedtls -lrtc -lesp_http_server -lbtdm_app -lspiffs -lbootloader_support -lmdns -lnvs_flash -lfatfs -lpp -lnet80211 -ljsmn -lface_detection -llibsodium -lvfs -ldl_lib -llog -lfreertos -lcxx -lsmartconfig_ack -lxtensa-debug-module -lheap -ltcpip_adapter -lmqtt -lulp -lfd -lfb_gfx -lnghttp -lprotocomm -lsmartconfig -lm -lethernet -limage_util -lc_nano -lsoc -ltcp_transport -lc -lmicro-ecc -lface_recognition -ljson -lwpa_supplicant -lmesh -lesp_https_ota -lwpa2 -lexpat -llwip -lwear_levelling -lapp_update -ldriver -lbt -lespnow -lcoap -lasio -lnewlib -lconsole -lapp_trace -lesp32-camera -lhal -lprotobuf-c -lsdmmc -lcore -lpthread -lcoexist -lfreemodbus -lspi_flash -lesp-tls -lwpa -lwifi_provisioning -lwps -lesp_adc_cal -lesp_event -lopenssl -lesp_ringbuf -lfr -lstdc++
compiler.c.elf.flags=-nostdlib "-L{compiler.sdk.path}/lib" "-L{compiler.sdk.path}/ld" -T esp32_out.ld -T esp32.project.ld -T esp32.rom.ld -T esp32.peripherals.ld -T esp32.rom.libgcc.ld -T esp32.rom.spiram_incompatible_fns.ld -u ld_include_panic_highint_hdl -u call_user_start_cpu0 -Wl,--gc-sections -Wl,-static -Wl,--undefined=uxTopUsedPriority -u __cxa_guard_dummy -u __cxx_fatal_exception
compiler.c.elf.libs=-lgcc -lesp32 -lphy -lesp_http_client -lmbedtls -lrtc -lesp_http_server -lbtdm_app -lspiffs -lbootloader_support -lmdns -lnvs_flash -lfatfs -lpp -lnet80211 -ljsmn -lface_detection -llibsodium -lvfs -ldl_lib -llog -lfreertos -lcxx -lsmartconfig_ack -lxtensa-debug-module -lheap -ltcpip_adapter -lmqtt -lulp -lfd -lfb_gfx -lnghttp -lunity -lprotocomm -lespcoredump -lesp_https_server -lsmartconfig -lm -lethernet -limage_util -lc_nano -lsoc -ltcp_transport -lc -lmicro-ecc -lface_recognition -ljson -lwpa_supplicant -lmesh -lesp_https_ota -lwpa2 -lexpat -llwip -lwear_levelling -lapp_update -ldriver -lbt -lespnow -lcoap -lasio -lnewlib -lconsole -lapp_trace -lesp32-camera -lhal -lprotobuf-c -lsdmmc -lcore -lpthread -lcoexist -lfreemodbus -lspi_flash -lesp-tls -lwpa -lwifi_provisioning -lwps -lesp_adc_cal -lesp_event -lopenssl -lesp_ringbuf -lefuse -lfr -lstdc++

compiler.as.cmd=xtensa-esp32-elf-as

54 changes: 10 additions & 44 deletions tools/esptool.py
Original file line number Diff line number Diff line change
@@ -1018,11 +1018,6 @@ class ESP8266ROM(ESPLoader):

BOOTLOADER_FLASH_OFFSET = 0

MEMORY_MAP = [[0x3FF00000, 0x3FF00010, "DPORT"],
[0x3FFE8000, 0x40000000, "DRAM"],
[0x40100000, 0x40108000, "IRAM"],
[0x40201010, 0x402E1010, "IROM"]]

def get_efuses(self):
# Return the 128 bits of ESP8266 efuse as a single Python integer
return (self.read_reg(0x3ff0005c) << 96 |
@@ -1121,7 +1116,6 @@ class ESP32ROM(ESPLoader):
"""
CHIP_NAME = "ESP32"
IMAGE_CHIP_ID = 0
IS_STUB = False

DATE_REG_VALUE = 0x15122500
@@ -1158,22 +1152,6 @@ class ESP32ROM(ESPLoader):

OVERRIDE_VDDSDIO_CHOICES = ["1.8V", "1.9V", "OFF"]

MEMORY_MAP = [[0x3F400000, 0x3F800000, "DROM"],
[0x3F800000, 0x3FC00000, "EXTRAM_DATA"],
[0x3FF80000, 0x3FF82000, "RTC_DRAM"],
[0x3FF90000, 0x40000000, "BYTE_ACCESSIBLE"],
[0x3FFAE000, 0x40000000, "DRAM"],
[0x3FFAE000, 0x40000000, "DMA"],
[0x3FFE0000, 0x3FFFFFFC, "DIRAM_DRAM"],
[0x40000000, 0x40070000, "IROM"],
[0x40070000, 0x40078000, "CACHE_PRO"],
[0x40078000, 0x40080000, "CACHE_APP"],
[0x40080000, 0x400A0000, "IRAM"],
[0x400A0000, 0x400BFFFC, "DIRAM_IRAM"],
[0x400C0000, 0x400C2000, "RTC_IRAM"],
[0x400D0000, 0x40400000, "IROM"],
[0x50000000, 0x50002000, "RTC_DATA"]]

""" Try to read the BLOCK1 (encryption key) and check if it is valid """

def is_flash_encryption_key_valid(self):
@@ -1714,7 +1692,7 @@ class ESP32FirmwareImage(BaseFirmwareImage):
# to be set to this value so ROM bootloader will skip it.
WP_PIN_DISABLED = 0xEE

EXTENDED_HEADER_STRUCT_FMT = "<BBBBHB" + ("B" * 8) + "B"
EXTENDED_HEADER_STRUCT_FMT = "B" * 16

IROM_ALIGN = 65536

@@ -1732,7 +1710,6 @@ def __init__(self, load_file=None):
self.cs_drv = 0
self.hd_drv = 0
self.wp_drv = 0
self.min_rev = 0

self.append_digest = True

@@ -1902,20 +1879,14 @@ def split_byte(n):
self.d_drv, self.cs_drv = split_byte(fields[2])
self.hd_drv, self.wp_drv = split_byte(fields[3])

chip_id = fields[4]
if chip_id != self.ROM_LOADER.IMAGE_CHIP_ID:
print("Unexpected chip id in image. Expected %d but value was %d. Is this image for a different chip model?" % (self.ROM_LOADER.IMAGE_CHIP_ID, chip_id))

# reserved fields in the middle should all be zero
if any(f for f in fields[6:-1] if f != 0):
print("Warning: some reserved header fields have non-zero values. This image may be from a newer esptool.py?")

append_digest = fields[-1] # last byte is append_digest
if append_digest in [0, 1]:
self.append_digest = (append_digest == 1)
if fields[15] in [0, 1]:
self.append_digest = (fields[15] == 1)
else:
raise RuntimeError("Invalid value for append_digest field (0x%02x). Should be 0 or 1.", append_digest)
raise RuntimeError("Invalid value for append_digest field (0x%02x). Should be 0 or 1.", fields[15])

# remaining fields in the middle should all be zero
if any(f for f in fields[4:15] if f != 0):
print("Warning: some reserved header fields have non-zero values. This image may be from a newer esptool.py?")

def save_extended_header(self, save_file):
def join_byte(ln,hn):
@@ -1926,10 +1897,8 @@ def join_byte(ln,hn):
fields = [self.wp_pin,
join_byte(self.clk_drv, self.q_drv),
join_byte(self.d_drv, self.cs_drv),
join_byte(self.hd_drv, self.wp_drv),
self.ROM_LOADER.IMAGE_CHIP_ID,
self.min_rev]
fields += [0] * 8 # padding
join_byte(self.hd_drv, self.wp_drv)]
fields += [0] * 11
fields += [append_digest]

packed = struct.pack(self.EXTENDED_HEADER_STRUCT_FMT, *fields)
@@ -2432,8 +2401,7 @@ def image_info(args):
idx = 0
for seg in image.segments:
idx += 1
seg_name = ", ".join([seg_range[2] for seg_range in image.ROM_LOADER.MEMORY_MAP if seg_range[0] <= seg.addr < seg_range[1]])
print('Segment %d: %r [%s]' % (idx, seg, seg_name))
print('Segment %d: %r' % (idx, seg))
calc_checksum = image.calculate_checksum()
print('Checksum: %02x (%s)' % (image.checksum,
'valid' if image.checksum == calc_checksum else 'invalid - calculated %02x' % calc_checksum))
@@ -2471,7 +2439,6 @@ def elf2image(args):
if args.chip == 'esp32':
image = ESP32FirmwareImage()
image.secure_pad = args.secure_pad
image.min_rev = int(args.min_rev)
elif args.version == '1': # ESP8266
image = ESP8266ROMFirmwareImage()
else:
@@ -2770,7 +2737,6 @@ def add_spi_flash_subparsers(parent, is_elf2image):
parser_elf2image.add_argument('input', help='Input ELF file')
parser_elf2image.add_argument('--output', '-o', help='Output filename prefix (for version 1 image), or filename (for version 2 single image)', type=str)
parser_elf2image.add_argument('--version', '-e', help='Output image version', choices=['1','2'], default='1')
parser_elf2image.add_argument('--min-rev', '-r', help='Minimum chip revision', choices=['0','1','2','3'], default='0')
parser_elf2image.add_argument('--secure-pad', action='store_true', help='Pad image so once signed it will end on a 64KB boundary. For ESP32 images only.')
parser_elf2image.add_argument('--elf-sha256-offset', help='If set, insert SHA256 hash (32 bytes) of the input ELF file at specified offset in the binary.',
type=arg_auto_int, default=None)
Loading